summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h10
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