CComponentsForm: add member hideCCItems()

In case of items with cached background it is useful to have
possibility to restore their background. (eg. items are painted
outside of form).
This commit is contained in:
2017-04-27 09:27:45 +02:00
parent 71606d0860
commit 19fc8c6d3b
3 changed files with 17 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);
///hides item, arg: no_restore see hideCCItem()
void hide(){disableClock(); CComponents::hide();}
void hide(){disableClock(); CComponentsForm::hide();}
///erase current screen without restore of background, it's similar to paintBackgroundBoxRel() from CFrameBuffer
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);