mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
cc_signals: add signals for kill()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 07e5aa72bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-09-27 (Tue, 27 Sep 2022)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -754,6 +754,7 @@ void CCDraw::hide()
|
||||
//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*/)
|
||||
{
|
||||
OnBeforeKill();
|
||||
int layers = fblayer_type;
|
||||
|
||||
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;
|
||||
is_painted = false;
|
||||
|
||||
OnAfterKill();
|
||||
}
|
||||
|
||||
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()
|
||||
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
|
||||
sigc::signal<void> OnSelect;
|
||||
};
|
||||
|
Reference in New Issue
Block a user