summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-16 11:37:34 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-07-16 11:37:34 +0000
commitd9aa17b843253b05278e10f804a48ab036fb6119 (patch)
tree1f495c38d3484eaad3d7d97816c518e1466f3fc9 /src/gui/scrollarea.h
parenteb1fcf549a7a165624189276fd30af01a42ec0cb (diff)
downloadmana-d9aa17b843253b05278e10f804a48ab036fb6119.tar.gz
mana-d9aa17b843253b05278e10f804a48ab036fb6119.tar.bz2
mana-d9aa17b843253b05278e10f804a48ab036fb6119.tar.xz
mana-d9aa17b843253b05278e10f804a48ab036fb6119.zip
Added generic Scrollarea::drawButton function that is called by the specific ones
Diffstat (limited to 'src/gui/scrollarea.h')
-rw-r--r--src/gui/scrollarea.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/scrollarea.h b/src/gui/scrollarea.h
index 20de2255..54f41690 100644
--- a/src/gui/scrollarea.h
+++ b/src/gui/scrollarea.h
@@ -76,11 +76,19 @@ class ScrollArea : public gcn::ScrollArea {
bool isOpaque();
protected:
+ enum BUTTON_DIR {
+ UP,
+ DOWN,
+ LEFT,
+ RIGHT,
+ };
+
/**
* Initializes the scroll area.
*/
void init();
+ void drawButton(gcn::Graphics *graphics, BUTTON_DIR dir);
void drawUpButton(gcn::Graphics *graphics);
void drawDownButton(gcn::Graphics *graphics);
void drawLeftButton(gcn::Graphics *graphics);
@@ -93,10 +101,7 @@ class ScrollArea : public gcn::ScrollArea {
static int instances;
static ImageRect background;
static ImageRect vMarker;
- static Image *hscroll_left_default, *hscroll_right_default;
- static Image *vscroll_down_default, *vscroll_up_default;
- static Image *hscroll_left_pressed, *hscroll_right_pressed;
- static Image *vscroll_down_pressed, *vscroll_up_pressed;
+ static Image *buttons[4][2];
bool opaque;
};