mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
CComponentsText: declare function getTextFromFile() as static
Is usable as standalone member too.
This commit is contained in:
@@ -146,7 +146,7 @@ class CComponentsText : public CComponentsItem, public CBox
|
|||||||
///set text directly from a textfile, path as string is required
|
///set text directly from a textfile, path as string is required
|
||||||
virtual bool setTextFromFile(const std::string& path_to_textfile, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL, const fb_pixel_t& color_text = 0, const int& style = FONT_STYLE_REGULAR);
|
virtual bool setTextFromFile(const std::string& path_to_textfile, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL, const fb_pixel_t& color_text = 0, const int& style = FONT_STYLE_REGULAR);
|
||||||
///get text directly from a textfile, path as string is required
|
///get text directly from a textfile, path as string is required
|
||||||
virtual std::string getTextFromFile(const std::string& path_to_textfile);
|
static std::string getTextFromFile(const std::string& path_to_textfile);
|
||||||
///returns current text content of text/label object as std::string
|
///returns current text content of text/label object as std::string
|
||||||
virtual std::string getText(){return ct_text;};
|
virtual std::string getText(){return ct_text;};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user