CComponentsText: add extended setColorAll() methode into text class

Doeas the same like setColorAll() of CCDraw but additional for text color


Origin commit data
------------------
Branch: ni/coolstream
Commit: e45ea4abfb
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-26 (Fri, 26 Feb 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-02-26 14:55:38 +01:00
parent 6380e4d402
commit 638fdce55f

View File

@@ -132,6 +132,13 @@ class CComponentsText : public CCTextScreen, public CComponentsItem, public CBox
virtual inline void setTextFont(Font* font_text){ct_font = font_text;};
///set text color
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
virtual inline fb_pixel_t getTextColor(){return ct_col_text;};
///set text alignment, also see textbox.h for possible alignment modes