mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
cc_item: add signsl OnBeforePaintInit()
Origin commit data
------------------
Branch: ni/coolstream
Commit: c01e61dd03
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-01-15 (Sat, 15 Jan 2022)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -67,6 +67,8 @@ void CComponentsItem::initParent(CComponentsForm* parent)
|
||||
// If backround is not required, it's possible to override this with variable paint_bg=false, use doPaintBg(true/false) to set this!
|
||||
void CComponentsItem::paintInit(const bool &do_save_bg)
|
||||
{
|
||||
OnBeforePaintInit();
|
||||
|
||||
if (cc_parent)
|
||||
{ //use defined background color and background images in dependency of focus mode
|
||||
if (cc_parent->hasFocus()){
|
||||
|
@@ -161,6 +161,9 @@ class CComponentsItem : public CComponents
|
||||
void setHeightP(const uint8_t& h_percent);
|
||||
///set item width, parameter as uint8_t, as percent value related to current width of parent form or screen
|
||||
void setWidthP(const uint8_t& w_percent);
|
||||
|
||||
///signal on before init fb layers, called before init fb layers inside paintInit()
|
||||
sigc::signal<void> OnBeforePaintInit;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user