diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-10 16:27:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-10 16:55:22 +0300 |
commit | f6482585eb8d9fd514b38dd214d83acd3985dc76 (patch) | |
tree | b70094dd1886f2a842364c9f2940b7b81acace79 /src/gui/widgets/scrollarea.h | |
parent | 9b84665e4d2a3c069179cde38f32ce023b37542a (diff) | |
download | mv-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.gz mv-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.bz2 mv-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.xz mv-f6482585eb8d9fd514b38dd214d83acd3985dc76.zip |
Add theme option to hide scrollbar buttons.
Also improve scrollbar speed.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r-- | src/gui/widgets/scrollarea.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 58df259ba..3a552ee75 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -120,10 +120,28 @@ class ScrollArea final : public gcn::ScrollArea, void mouseReleased(gcn::MouseEvent& event) override; + void mouseDragged(gcn::MouseEvent &event); + void widgetResized(const gcn::Event &event) override; void widgetMoved(const gcn::Event &event) override; + gcn::Rectangle getVerticalBarDimension() const; + + gcn::Rectangle getHorizontalBarDimension() const; + + gcn::Rectangle getVerticalMarkerDimension(); + + gcn::Rectangle getHorizontalMarkerDimension(); + + gcn::Rectangle getUpButtonDimension() const; + + gcn::Rectangle getDownButtonDimension() const; + + gcn::Rectangle getLeftButtonDimension() const; + + gcn::Rectangle getRightButtonDimension() const; + protected: enum BUTTON_DIR { @@ -155,6 +173,7 @@ class ScrollArea final : public gcn::ScrollArea, static int instances; static float mAlpha; + static bool mShowButtons; static ImageRect background; static ImageRect vMarker; static ImageRect vMarkerHi; |