diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-01 17:49:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-01 22:58:18 +0300 |
commit | 1400bf32a5de7864c1461e82da75645d93eed579 (patch) | |
tree | 75c523e3109844198bf40c00cb78d9acc2cd269f /src/gui/widgets/scrollarea.h | |
parent | 04916c1b451e4400a496ae210b3faa10154c65ac (diff) | |
download | manaplus-1400bf32a5de7864c1461e82da75645d93eed579.tar.gz manaplus-1400bf32a5de7864c1461e82da75645d93eed579.tar.bz2 manaplus-1400bf32a5de7864c1461e82da75645d93eed579.tar.xz manaplus-1400bf32a5de7864c1461e82da75645d93eed579.zip |
Add batch drawing to scrollarea.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r-- | src/gui/widgets/scrollarea.h | 13 |
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; |