aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorMax Horn2002-07-08 22:11:47 +0000
committerMax Horn2002-07-08 22:11:47 +0000
commit0a9baabbdc173f772c4278b1f5c90f59121d4ee9 (patch)
treec09de90e88d5062603d71f59399192a71ff56e17 /gui/widget.h
parent5fa2ab9e006e041e78b966ec5baa42872e69114f (diff)
downloadscummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.tar.gz
scummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.tar.bz2
scummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.zip
replaced clearArea with the more general fillArea; added get/setValue methods to SliderWidget; changed look of SliderWidget a little bit; optimized drawing of SliderWidget
svn-id: r4500
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h
index b89d0b00bc..651b86a12d 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -122,9 +122,12 @@ protected:
/* SliderWidget */
class SliderWidget : public ButtonWidget {
protected:
- int _value;
+ uint8 _value, _old_value;
public:
SliderWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd = 0, uint8 hotkey = 0);
+ void setValue(uint8 value) { _value = value; }
+ uint8 getValue() { return _value; }
+
void handleMouseMoved(int x, int y, int button);
protected: