summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 17:05:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 17:05:47 +0300
commitf99569872f391ee0090348bf58d4a2a43c549eda (patch)
treed7196f30c7106a0816a13746d9ca06bad7ab0ea3 /src/gui/widgets/widget.h
parent95d7e3775c24aad327e8aa13ec401da45be5c7f5 (diff)
downloadmanaverse-f99569872f391ee0090348bf58d4a2a43c549eda.tar.gz
manaverse-f99569872f391ee0090348bf58d4a2a43c549eda.tar.bz2
manaverse-f99569872f391ee0090348bf58d4a2a43c549eda.tar.xz
manaverse-f99569872f391ee0090348bf58d4a2a43c549eda.zip
Add basic support for draw controls method without batching (safeDraw).
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index 8191754e5..86e54510f 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -122,6 +122,9 @@ class Widget notfinal : public Widget2
*/
virtual void draw(Graphics* graphics) = 0;
+ virtual void safeDraw(Graphics* graphics)
+ { draw(graphics); }
+
/**
* Called when a widget is given a chance to draw a frame around itself.
* The frame is not considered a part of the widget, it only allows a frame