diff options
author | Maximilian Philipps <Turmfalke2007@web.de> | 2009-08-02 20:15:38 +0200 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-08-05 15:19:32 -0400 |
commit | 1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8 (patch) | |
tree | 098001f83da97cc77cb234dc40bc23dae6d8fe95 /src/gui/widgets/checkbox.h | |
parent | 5c578f9d64bfcc0dbd81d9c6bad549a65bd1ad32 (diff) | |
download | mana-client-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.gz mana-client-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.bz2 mana-client-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.xz mana-client-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.zip |
patch for #813, adds mouse over highlight for
radio buttons, tabs, checkboxes, slider and scrollbars
Diffstat (limited to 'src/gui/widgets/checkbox.h')
-rw-r--r-- | src/gui/widgets/checkbox.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h index 303782b0..7a7c8674 100644 --- a/src/gui/widgets/checkbox.h +++ b/src/gui/widgets/checkbox.h @@ -24,6 +24,7 @@ #include <guichan/widgets/checkbox.hpp> + class Image; /** @@ -54,13 +55,26 @@ class CheckBox : public gcn::CheckBox */ void drawBox(gcn::Graphics* graphics); + /** + * Called when the mouse enteres the widget area. + */ + void mouseEntered(gcn::MouseEvent& event); + + /** + * Called when the mouse leaves the widget area. + */ + void mouseExited(gcn::MouseEvent& event); + private: static int instances; static float mAlpha; + bool mHasMouse; static Image *checkBoxNormal; static Image *checkBoxChecked; static Image *checkBoxDisabled; static Image *checkBoxDisabledChecked; + static Image *checkBoxNormalHi; + static Image *checkBoxCheckedHi; }; #endif |