From e6f6e5df8f97caf7ba2f009336efda4c760ed193 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 15 Jul 2002 12:59:56 +0000 Subject: allow static text/button widgets in NewGUI to be drawn centred svn-id: r4551 --- gui/widget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/widget.h') 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); -- cgit v1.2.3