mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
CComponentsText: add extended setColorAll() methode into text class
Doeas the same like setColorAll() of CCDraw but additional for text color
This commit is contained in:
@@ -132,6 +132,13 @@ class CComponentsText : public CCTextScreen, public CComponentsItem, public CBox
|
|||||||
virtual inline void setTextFont(Font* font_text){ct_font = font_text;};
|
virtual inline void setTextFont(Font* font_text){ct_font = font_text;};
|
||||||
///set text color
|
///set text color
|
||||||
virtual void setTextColor(const fb_pixel_t& color_text);
|
virtual void setTextColor(const fb_pixel_t& color_text);
|
||||||
|
///set all basic framebuffer element colors at once
|
||||||
|
///Note: Possible color values are defined in "gui/color.h" and "gui/customcolor.h"
|
||||||
|
virtual void setColorAll(fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0, fb_pixel_t color_text = COL_MENUCONTENT_TEXT)
|
||||||
|
{
|
||||||
|
CCDraw::setColorAll(color_frame, color_body, color_shadow);
|
||||||
|
setTextColor(color_text);
|
||||||
|
};
|
||||||
///get text color
|
///get text color
|
||||||
virtual inline fb_pixel_t getTextColor(){return ct_col_text;};
|
virtual inline fb_pixel_t getTextColor(){return ct_col_text;};
|
||||||
///set text alignment, also see textbox.h for possible alignment modes
|
///set text alignment, also see textbox.h for possible alignment modes
|
||||||
|
Reference in New Issue
Block a user