From 95ca2ea04349e79629e8a34c803331cbae5f9b95 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Jul 2002 00:36:09 +0000 Subject: added support for right aligned text; made use of that in the sound dialog; less redrawing in the sound dialog svn-id: r4649 --- gui/widget.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gui/widget.h') diff --git a/gui/widget.h b/gui/widget.h index 53f2194b8f..83df0e6735 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -118,15 +118,15 @@ protected: class StaticTextWidget : public Widget { protected: char *_label; - bool _centred; + int _align; public: - StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, bool centred = false); + StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, int align); ~StaticTextWidget(); void setValue(int value); void setLabel(const char *label); const char *getLabel() const { return _label; } - void setCentred(bool centred) { _centred = centred; } - bool isCentred() const { return _centred; } + void setAlign(int align) { _align = align; } + int getAlign() const { return _align; } protected: void drawWidget(bool hilite); -- cgit v1.2.3