mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CCDraw: add signals into paintFbItems()
This commit is contained in:
@@ -26,7 +26,6 @@
|
|||||||
#define __CC_BASE__
|
#define __CC_BASE__
|
||||||
|
|
||||||
#include "cc_types.h"
|
#include "cc_types.h"
|
||||||
#include "cc_signals.h"
|
|
||||||
#include "cc_draw.h"
|
#include "cc_draw.h"
|
||||||
|
|
||||||
/// Basic component class.
|
/// Basic component class.
|
||||||
@@ -34,7 +33,7 @@
|
|||||||
Basic attributes and member functions for component sub classes
|
Basic attributes and member functions for component sub classes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CComponents : public CComponentsSignals, public CCDraw
|
class CComponents : public CCDraw
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@@ -465,6 +465,9 @@ void CCDraw::enablePaintCache(bool enable)
|
|||||||
//paint framebuffer layers
|
//paint framebuffer layers
|
||||||
void CCDraw::paintFbItems(bool do_save_bg)
|
void CCDraw::paintFbItems(bool do_save_bg)
|
||||||
{
|
{
|
||||||
|
//pick up signal if filled
|
||||||
|
OnBeforePaintLayers();
|
||||||
|
|
||||||
//first modify background handling
|
//first modify background handling
|
||||||
enableSaveBg(do_save_bg);
|
enableSaveBg(do_save_bg);
|
||||||
|
|
||||||
@@ -609,6 +612,8 @@ void CCDraw::paintFbItems(bool do_save_bg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//pick up signal if filled
|
||||||
|
OnAfterPaintLayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#define __CC_DRAW__
|
#define __CC_DRAW__
|
||||||
|
|
||||||
#include "cc_types.h"
|
#include "cc_types.h"
|
||||||
|
#include "cc_signals.h"
|
||||||
#include <driver/colorgradient.h>
|
#include <driver/colorgradient.h>
|
||||||
#include <driver/fade.h>
|
#include <driver/fade.h>
|
||||||
#include <gui/color.h>
|
#include <gui/color.h>
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
Basic paint attributes and member functions for component classes
|
Basic paint attributes and member functions for component classes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CCDraw : public COSDFader
|
class CCDraw : public COSDFader, public CComponentsSignals
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
///pixel buffer handling, returns pixel buffer depends of given parameters
|
///pixel buffer handling, returns pixel buffer depends of given parameters
|
||||||
@@ -294,6 +295,11 @@ class CCDraw : public COSDFader
|
|||||||
///paint item, same like paint(CC_SAVE_SCREEN_NO) but without any argument
|
///paint item, same like paint(CC_SAVE_SCREEN_NO) but without any argument
|
||||||
virtual void paint0(){paint(CC_SAVE_SCREEN_NO);}
|
virtual void paint0(){paint(CC_SAVE_SCREEN_NO);}
|
||||||
|
|
||||||
|
///signal on before paint fb layers, called inside paintFbItems()
|
||||||
|
sigc::signal<void> OnBeforePaintLayers;
|
||||||
|
///signal on after paint fb layers, called inside paintFbItems()
|
||||||
|
sigc::signal<void> OnAfterPaintLayers;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Removes current item from screen and
|
Removes current item from screen and
|
||||||
restore last displayed background before item was painted and
|
restore last displayed background before item was painted and
|
||||||
|
Reference in New Issue
Block a user