mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
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).
Origin commit data
------------------
Branch: ni/coolstream
Commit: 19fc8c6d3b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-27 (Thu, 27 Apr 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -81,6 +81,16 @@ class CComponentsForm : public CComponentsItem
|
||||
///NOTE: Items always have parent bindings to "this" and use the parent background color as default! Set parameter 'ignore_parent=true' to ignore parent background color!
|
||||
virtual void killCCItems(const fb_pixel_t& bg_color, bool ignore_parent);
|
||||
|
||||
/**
|
||||
Removes possible contained items and finally removes
|
||||
current form from screen and
|
||||
restores last displayed background before form was painted.
|
||||
*/
|
||||
void hide(){hideCCItems(); CCDraw::hide();}
|
||||
|
||||
///restore background for all items inside form,
|
||||
void hideCCItems();
|
||||
|
||||
///add an item to form collection, returns id
|
||||
virtual int addCCItem(CComponentsItem* cc_Item);
|
||||
///add items from a vector to form collection, returns size/count of items
|
||||
|
Reference in New Issue
Block a user