mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
cc_signals: add signals for kill()
This commit is contained in:
@@ -754,6 +754,7 @@ void CCDraw::hide()
|
|||||||
//erase or paint over rendered objects
|
//erase or paint over rendered objects
|
||||||
void CCDraw::kill(const fb_pixel_t& bg_color, const int& corner_radius, const int& fblayer_type /*fbdata_type*/)
|
void CCDraw::kill(const fb_pixel_t& bg_color, const int& corner_radius, const int& fblayer_type /*fbdata_type*/)
|
||||||
{
|
{
|
||||||
|
OnBeforeKill();
|
||||||
int layers = fblayer_type;
|
int layers = fblayer_type;
|
||||||
|
|
||||||
if (fblayer_type & ~CC_FBDATA_TYPES)
|
if (fblayer_type & ~CC_FBDATA_TYPES)
|
||||||
@@ -800,6 +801,8 @@ void CCDraw::kill(const fb_pixel_t& bg_color, const int& corner_radius, const in
|
|||||||
|
|
||||||
firstPaint = true;
|
firstPaint = true;
|
||||||
is_painted = false;
|
is_painted = false;
|
||||||
|
|
||||||
|
OnAfterKill();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCDraw::killShadow(const fb_pixel_t& bg_color, const int& corner_radius)
|
void CCDraw::killShadow(const fb_pixel_t& bg_color, const int& corner_radius)
|
||||||
|
@@ -126,6 +126,11 @@ class CComponentsSignals : public sigc::trackable
|
|||||||
///signal on after execute hide()
|
///signal on after execute hide()
|
||||||
sigc::signal<void> OnAfterHide;
|
sigc::signal<void> OnAfterHide;
|
||||||
|
|
||||||
|
///signal on before execute kill()
|
||||||
|
sigc::signal<void> OnBeforeKill;
|
||||||
|
///signal on after execute kill()
|
||||||
|
sigc::signal<void> OnAfterKill;
|
||||||
|
|
||||||
///signal on CComponentsForm::setSelectedItem() is completed
|
///signal on CComponentsForm::setSelectedItem() is completed
|
||||||
sigc::signal<void> OnSelect;
|
sigc::signal<void> OnSelect;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user