mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CComponents: cc_base.h: expand override of is_painted variable
Value of is_painted is modified temporarily till next paint of item Not sure whether this is sufficiently or has bad side effects?
This commit is contained in:
@@ -212,8 +212,8 @@ class CComponents
|
|||||||
virtual void doPaintBg(bool do_paint){paint_bg = do_paint;};
|
virtual void doPaintBg(bool do_paint){paint_bg = do_paint;};
|
||||||
|
|
||||||
///allow/disalows paint of item and its contents, but initialize of other properties are not touched
|
///allow/disalows paint of item and its contents, but initialize of other properties are not touched
|
||||||
///this can be understood as a counterpart to isPainted(), but before paint
|
///this can be understood as a counterpart to isPainted(), but before paint and value of is_painted is modified temporarily till next paint of item //TODO: is this sufficiently?
|
||||||
virtual void allowPaint(bool allow){cc_allow_paint = allow;};
|
virtual void allowPaint(bool allow){cc_allow_paint = allow; is_painted = cc_allow_paint ? false : true;};
|
||||||
///returns visibility mode
|
///returns visibility mode
|
||||||
virtual bool paintAllowed(){return cc_allow_paint;};
|
virtual bool paintAllowed(){return cc_allow_paint;};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user