mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-14 17:03:40 +02:00
components: use const bool& parameter in paint methodes
This commit is contained in:
@@ -96,7 +96,7 @@ class CComponentsText : public CCTextScreen, public CComponentsItem
|
||||
void initCBox();
|
||||
|
||||
///paint CCItem backckrond (if paint_bg=true), apply initCCText() and send paint() to the CTextBox object
|
||||
void paintText(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void paintText(const bool &do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
public:
|
||||
enum {
|
||||
FONT_STYLE_REGULAR = 0,
|
||||
@@ -136,7 +136,7 @@ class CComponentsText : public CCTextScreen, public CComponentsItem
|
||||
///remove textbox from screen
|
||||
void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1, const int& fblayer_type = CC_FBDATA_TYPES);
|
||||
///paint text box, parameter do_save_bg: default = true, causes fill of backckrond pixel buffer
|
||||
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
void paint(const bool &do_save_bg = CC_SAVE_SCREEN_YES);
|
||||
|
||||
///send options for text font (size and type), color and mode (allignment)
|
||||
void setTextFont(Font* font_text);
|
||||
|
Reference in New Issue
Block a user