summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 20:37:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-17 21:17:12 +0300
commit5eeef71adcafe98dade6cc9d0c47a5260528592d (patch)
tree30ca22dab5e97016f64fc8bda2583b3e2b037f4b /src/gui/widgets/button.h
parent9d5edb66388911525652534a08b5db4968b6c555 (diff)
downloadmv-5eeef71adcafe98dade6cc9d0c47a5260528592d.tar.gz
mv-5eeef71adcafe98dade6cc9d0c47a5260528592d.tar.bz2
mv-5eeef71adcafe98dade6cc9d0c47a5260528592d.tar.xz
mv-5eeef71adcafe98dade6cc9d0c47a5260528592d.zip
Fix button defenition in button class.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index aa951ff7e..2ba91822b 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -135,11 +135,20 @@ class Button final : public gcn::Button,
bool isPressed2() const A_WARN_UNUSED;
+ enum
+ {
+ BUTTON_STANDARD = 0, // 0
+ BUTTON_HIGHLIGHTED, // 1
+ BUTTON_PRESSED, // 2
+ BUTTON_DISABLED, // 3
+ BUTTON_COUNT // 4 - Must be last.
+ };
+
private:
void init();
- static Skin *button[4]; /**< Button state graphics */
- static int mInstances; /**< Number of button instances */
+ static Skin *button[BUTTON_COUNT]; /**< Button state graphics */
+ static int mInstances; /**< Number of button instances */
static float mAlpha;
std::string mDescription;