summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-10 16:27:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-10 16:55:22 +0300
commitf6482585eb8d9fd514b38dd214d83acd3985dc76 (patch)
treeb70094dd1886f2a842364c9f2940b7b81acace79 /src/gui/widgets/scrollarea.h
parent9b84665e4d2a3c069179cde38f32ce023b37542a (diff)
downloadplus-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.gz
plus-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.bz2
plus-f6482585eb8d9fd514b38dd214d83acd3985dc76.tar.xz
plus-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.h19
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;