aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorMax Horn2002-07-27 00:36:09 +0000
committerMax Horn2002-07-27 00:36:09 +0000
commit95ca2ea04349e79629e8a34c803331cbae5f9b95 (patch)
treead986ce5f32ef642ce35cbed899862a519b88eed /gui/widget.h
parentc318fed6338fd232deff621141f58789ffbbad89 (diff)
downloadscummvm-rg350-95ca2ea04349e79629e8a34c803331cbae5f9b95.tar.gz
scummvm-rg350-95ca2ea04349e79629e8a34c803331cbae5f9b95.tar.bz2
scummvm-rg350-95ca2ea04349e79629e8a34c803331cbae5f9b95.zip
added support for right aligned text; made use of that in the sound dialog; less redrawing in the sound dialog
svn-id: r4649
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h8
1 files changed, 4 insertions, 4 deletions
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);