aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorMax Horn2008-12-27 14:36:28 +0000
committerMax Horn2008-12-27 14:36:28 +0000
commitf26f85ee96625003edc08b370e6f3a08505a075d (patch)
tree0421e28baf30b298c96e58ba55a4e7f5b23f77b7 /gui/widget.h
parent69f4b7a38388c444d2911d07a3636a65dd1a4d20 (diff)
downloadscummvm-rg350-f26f85ee96625003edc08b370e6f3a08505a075d.tar.gz
scummvm-rg350-f26f85ee96625003edc08b370e6f3a08505a075d.tar.bz2
scummvm-rg350-f26f85ee96625003edc08b370e6f3a08505a075d.zip
GUI: Added Widget::setVisible convenience wrapper
svn-id: r35572
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h
index 6fc4113ca6..6140e03a26 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -122,8 +122,10 @@ public:
void clearFlags(int flags);
int getFlags() const { return _flags; }
- void setEnabled(bool e) { if (e) setFlags(WIDGET_ENABLED); else clearFlags(WIDGET_ENABLED); }
+ void setEnabled(bool e);
bool isEnabled() const;
+
+ void setVisible(bool e);
bool isVisible() const;
protected: