CComponentsForm: add some usefull slots/signal to help paint backgrounds

Requried to paint form items only on changed contents and on repaint


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c8aa90e01
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-01-24 23:27:44 +01:00
committed by Michael Liebmann
parent 5011d32cd2
commit 7550c7276c
5 changed files with 46 additions and 34 deletions

View File

@@ -65,6 +65,11 @@ class CComponentsForm : public CComponentsItem
const fb_pixel_t& color_body,
const fb_pixel_t& color_shadow);
///force repaint of all possible text items
void forceItemsPaint(bool force);
///slot for background paint event, reserved for forceItemsPaint()
sigc::slot0<void> sl_repaint;
public:
CComponentsForm( const int x_pos = 0, const int y_pos = 0, const int w = 800, const int h = 600,
CComponentsForm *parent = NULL,