diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-14 17:39:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-14 20:37:31 +0300 |
commit | 9fc07b15f1b051eecd662802162772804dc77b8e (patch) | |
tree | d100d50693fc19edb32d01b9189603bdd3254bd2 /src/gui/widgets/button.h | |
parent | 78ae06d2c7b565afe67c5032c872d68a74ea210a (diff) | |
download | mv-9fc07b15f1b051eecd662802162772804dc77b8e.tar.gz mv-9fc07b15f1b051eecd662802162772804dc77b8e.tar.bz2 mv-9fc07b15f1b051eecd662802162772804dc77b8e.tar.xz mv-9fc07b15f1b051eecd662802162772804dc77b8e.zip |
Rename class InventoryFilter to RadioGroup.
Add WidgetGroup and TabStrip classes for grouping controls.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index 8e4cdd9e6..c2d8b0b52 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -103,6 +103,12 @@ class Button : public gcn::Button, public gcn::WidgetListener int getTag() const { return mTag; } + void setStick(bool b) + { mStick = b; } + + void setPressed(bool b) + { mPressed = b; } + void widgetResized(const gcn::Event &event); void widgetMoved(const gcn::Event &event); @@ -117,6 +123,8 @@ class Button : public gcn::Button, public gcn::WidgetListener void keyReleased(gcn::KeyEvent &keyEvent); + bool isPressed2(); + private: void init(); @@ -138,6 +146,8 @@ class Button : public gcn::Button, public gcn::WidgetListener ImageSet *mImageSet; int mImageWidth; int mImageHeight; + bool mStick; + bool mPressed; }; #endif |