mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsHeader: add missing paramters to kill methode
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user