summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-06 11:31:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-06 11:31:24 +0300
commit20ad155838f202584cb261ff8a33fd458a04d83f (patch)
tree7744905ed6c10e1b46b1c59223637324ba0174be /src/gui/widgets/widget.h
parentcc6a796f11bdbce53b60c0992020c569f74dd9ce (diff)
downloadmanaverse-20ad155838f202584cb261ff8a33fd458a04d83f.tar.gz
manaverse-20ad155838f202584cb261ff8a33fd458a04d83f.tar.bz2
manaverse-20ad155838f202584cb261ff8a33fd458a04d83f.tar.xz
manaverse-20ad155838f202584cb261ff8a33fd458a04d83f.zip
Move redraw flag from widgets into base widget.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index 86b203666..46245ea2b 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -1018,6 +1018,9 @@ class Widget : public Widget2
bool isMouseConsume() const A_WARN_UNUSED
{ return mMouseConsume; }
+ void setRedraw(const bool b)
+ { mRedraw = b; }
+
protected:
/**
* Distributes an action event to all action listeners
@@ -1230,6 +1233,8 @@ class Widget : public Widget2
bool mMouseConsume;
+ bool mRedraw;
+
/**
* Holds the global font used by the widget.
*/