components: use const bool& parameter in paint methodes

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 7783b755d0
commit d86dcd36a7
43 changed files with 61 additions and 60 deletions

View File

@@ -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);