From 70da0bae8b4f11bf4d2fcf12c2f1aa770fe1d4d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Dec 2012 21:37:21 +0300 Subject: Add batch drawing to shortcuts windows. --- src/gui/widgets/shortcutcontainer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/widgets/shortcutcontainer.h') diff --git a/src/gui/widgets/shortcutcontainer.h b/src/gui/widgets/shortcutcontainer.h index 7cb51cbc5..568dc451b 100644 --- a/src/gui/widgets/shortcutcontainer.h +++ b/src/gui/widgets/shortcutcontainer.h @@ -30,6 +30,7 @@ #include class Image; +class ImageCollection; /** * A generic shortcut container. @@ -66,6 +67,8 @@ class ShortcutContainer : public gcn::Widget, */ virtual void widgetResized(const gcn::Event &event) override; + virtual void widgetMoved(const gcn::Event& event) override; + /** * Handles mouse when dragged. */ @@ -90,6 +93,11 @@ class ShortcutContainer : public gcn::Widget, int getBoxHeight() const A_WARN_UNUSED { return mBoxHeight; } + void drawBackground(Graphics *g); + + void setRedraw(bool b) + { mRedraw = true; } + protected: /** * Gets the index from the grid provided the point is in an item box. @@ -109,6 +117,8 @@ class ShortcutContainer : public gcn::Widget, int mBoxHeight; int mCursorPosX, mCursorPosY; int mGridWidth, mGridHeight; + ImageCollection *mVertexes; + bool mRedraw; }; #endif -- cgit v1.2.3-70-g09d2