mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsExtTextForm: add methode to get current font
Default font is generated by class it self, so it is useful to have access to current font if is required by implemenations.
This commit is contained in:
@@ -133,6 +133,9 @@ class CComponentsExtTextForm : public CComponentsForm, public CCTextScreen
|
|||||||
///sets the text modes (mainly text alignment) to the label and text object, see /gui/widget/textbox.h for possible modes
|
///sets the text modes (mainly text alignment) to the label and text object, see /gui/widget/textbox.h for possible modes
|
||||||
void setTextModes(const int& label_mode, const int& text_mode);
|
void setTextModes(const int& label_mode, const int& text_mode);
|
||||||
|
|
||||||
|
///return current font
|
||||||
|
Font* getFont(){return ccx_font;}
|
||||||
|
|
||||||
///paint this item/form
|
///paint this item/form
|
||||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user