summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r--src/gui/widgets/scrollarea.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h
index c018763d9..e86442fba 100644
--- a/src/gui/widgets/scrollarea.h
+++ b/src/gui/widgets/scrollarea.h
@@ -30,8 +30,8 @@
#include "localconsts.h"
-class GraphicsVertexes;
class Image;
+class ImageCollection;
class ImageRect;
/**
@@ -140,6 +140,7 @@ class ScrollArea final : public gcn::ScrollArea,
void init(std::string skinName);
void drawButton(gcn::Graphics *const graphics, const BUTTON_DIR dir);
+ void calcButton(gcn::Graphics *const graphics, const BUTTON_DIR dir);
void drawUpButton(gcn::Graphics *const graphics) override;
void drawDownButton(gcn::Graphics *const graphics) override;
void drawLeftButton(gcn::Graphics *const graphics) override;
@@ -149,6 +150,13 @@ class ScrollArea final : public gcn::ScrollArea,
void drawVMarker(gcn::Graphics *const graphics) override;
void drawHMarker(gcn::Graphics *const graphics) override;
+ void calcVBar(gcn::Graphics *const graphics);
+ void calcHBar(gcn::Graphics *const graphics);
+ void calcVMarker(gcn::Graphics *const graphics);
+ void calcHMarker(gcn::Graphics *const graphics);
+
+ void updateCalcFlag(gcn::Graphics *const graphics);
+
static int instances;
static float mAlpha;
static ImageRect background;
@@ -162,7 +170,8 @@ class ScrollArea final : public gcn::ScrollArea,
int mClickX, mClickY;
bool mHasMouse;
bool mOpaque;
- GraphicsVertexes *mVertexes;
+ ImageCollection *mVertexes;
+ ImageCollection *mVertexes2;
bool mRedraw;
int mXOffset;
int mYOffset;