CComponentsHeader: add missing paramters to kill methode

This commit is contained in:
2017-01-24 22:56:18 +01:00
committed by M. Liebmann
parent 17a84f0e75
commit ba9284fba7
2 changed files with 12 additions and 1 deletions

View File

@@ -577,3 +577,14 @@ bool CComponentsHeader::enableColBodyGradient(const int& enable_mode, const fb_p
return CComponentsForm::enableColBodyGradient(enable_mode, sec_color, dir); return CComponentsForm::enableColBodyGradient(enable_mode, sec_color, dir);
} }
void CComponentsHeader::kill(const fb_pixel_t& bg_color, const int& corner_radius, const int& fblayer_type /*fbdata_type*/, bool disable_clock)
{
if (disable_clock)
disableClock();
int rad = corner_radius;
if (corner_radius == -1)
rad = corner_rad;
CComponentsForm::kill(bg_color, rad, fblayer_type);
}

View File

@@ -269,7 +269,7 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
///hides item, arg: no_restore see hideCCItem() ///hides item, arg: no_restore see hideCCItem()
void hide(){disableClock(); CComponents::hide();} void hide(){disableClock(); CComponents::hide();}
///erase current screen without restore of background, it's similar to paintBackgroundBoxRel() from CFrameBuffer ///erase current screen without restore of background, it's similar to paintBackgroundBoxRel() from CFrameBuffer
virtual void kill(){disableClock(); CComponentsForm::kill();} void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1, const int& fblayer_type = CC_FBDATA_TYPES, bool disable_clock = true);
///set color gradient on/off, returns true if gradient mode was changed ///set color gradient on/off, returns true if gradient mode was changed
virtual bool enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color = 255 /*=COL_BACKGROUND*/, const int& direction = -1); virtual bool enableColBodyGradient(const int& enable_mode, const fb_pixel_t& sec_color = 255 /*=COL_BACKGROUND*/, const int& direction = -1);