diff options
author | Max Horn | 2002-07-15 12:59:56 +0000 |
---|---|---|
committer | Max Horn | 2002-07-15 12:59:56 +0000 |
commit | e6f6e5df8f97caf7ba2f009336efda4c760ed193 (patch) | |
tree | 9eb83388adbcda403d7263e1bad2e06aaef81be7 /gui/widget.h | |
parent | 272c391eb04b51a088e43fcbae37a84c39d8ff35 (diff) | |
download | scummvm-rg350-e6f6e5df8f97caf7ba2f009336efda4c760ed193.tar.gz scummvm-rg350-e6f6e5df8f97caf7ba2f009336efda4c760ed193.tar.bz2 scummvm-rg350-e6f6e5df8f97caf7ba2f009336efda4c760ed193.zip |
allow static text/button widgets in NewGUI to be drawn centred
svn-id: r4551
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/widget.h b/gui/widget.h index 8d2f49e164..4b72df1b42 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -112,11 +112,14 @@ protected: class StaticTextWidget : public Widget { protected: char *_label; + bool _centred; public: StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text); ~StaticTextWidget(); void setLabel(const char *label); const char *getLabel() const { return _label; } + void setCentred(bool centred) { _centred = centred; } + bool isCentred() const { return _centred; } protected: void drawWidget(bool hilite); |