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/scrollarea.h | |
parent | 5c578f9d64bfcc0dbd81d9c6bad549a65bd1ad32 (diff) | |
download | mana-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.gz mana-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.bz2 mana-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.tar.xz mana-1eda598ab8d34e8d2fd3ecf990fcb64d49f518f8.zip |
patch for #813, adds mouse over highlight for
radio buttons, tabs, checkboxes, slider and scrollbars
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r-- | src/gui/widgets/scrollarea.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 700de32b..8fd92b5f 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -83,6 +83,21 @@ class ScrollArea : public gcn::ScrollArea */ bool isOpaque() const { return mOpaque; } + /** + * Called when the mouse moves in the widget area. + */ + void mouseMoved(gcn::MouseEvent& event); + + /** + * 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); + protected: enum BUTTON_DIR { UP, @@ -110,8 +125,11 @@ class ScrollArea : public gcn::ScrollArea static float mAlpha; static ImageRect background; static ImageRect vMarker; + static ImageRect vMarkerHi; static Image *buttons[4][2]; + int mX,mY; + bool mHasMouse; bool mOpaque; }; |