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:
2022-09-27 23:58:23 +02:00
committed by vanhofen
parent 34d7dbf81b
commit 07a5a9d528
2 changed files with 8 additions and 0 deletions

View File

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

View File

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