mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
CCDraw: Add function for cleanup gradient background
Origin commit data
------------------
Branch: ni/coolstream
Commit: bf0f63467d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -142,6 +142,8 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
||||
///sub: get gradient data evaluted with current parameters
|
||||
gradientData_t* getGradientData();
|
||||
|
||||
bool gradientBgCleanUp;
|
||||
|
||||
///rendering of framebuffer elements at once,
|
||||
///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(),
|
||||
///parameter do_save_bg=true, saves background of element to pixel buffer, this can be restore with hide()
|
||||
@@ -315,6 +317,9 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
||||
///erase or paint over rendered objects without restore of background, it's similar to paintBackgroundBoxRel() known
|
||||
///from CFrameBuffer but with possiblity to define color, default color is COL_BACKGROUND_PLUS_0 (empty background)
|
||||
virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1);
|
||||
|
||||
virtual void enableGradientBgCleanUp(bool enable = true) { gradientBgCleanUp = enable; };
|
||||
virtual void disableGradientBgCleanUp(){ enableGradientBgCleanUp(false); };
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user