CComponentsText: expand setTextColor() methode

apply color value direct in text box object


Origin commit data
------------------
Commit: 4a0975eb90
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-24 (Sat, 24 Jan 2015)
This commit is contained in:
2015-01-24 22:48:01 +01:00
parent 8c743e9dff
commit bdcc52feba
2 changed files with 9 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class CComponentsText : public CComponentsItem, public CBox
///send options for text font (size and type), color and mode (allignment)
virtual inline void setTextFont(Font* font_text){ct_font = font_text;};
///set text color
virtual inline void setTextColor(fb_pixel_t color_text){ ct_col_text = color_text;};
virtual void setTextColor(const fb_pixel_t& 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