CComponentsForm: add methode killCCItems()

This methode is an equivalent version of CComponentsItem::kill() and
allows to erase all items inside of a container at once.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 581b9c7701
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-05 (Thu, 05 Jun 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-06-05 15:29:04 +02:00
committed by vanhofen
parent af84eac9f0
commit fabc259990
2 changed files with 12 additions and 0 deletions

View File

@@ -362,3 +362,10 @@ void CComponentsForm::hide(bool no_restore)
//hide body
hideCCItem(no_restore);
}
//erase or paint over rendered objects
void CComponentsForm::killCCItems(const fb_pixel_t& bg_color, bool ignore_parent)
{
for(size_t i=0; i<v_cc_items.size(); i++)
v_cc_items[i]->kill(bg_color, ignore_parent);
}