summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emotepage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/emotepage.h')
-rw-r--r--src/gui/widgets/emotepage.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/emotepage.h b/src/gui/widgets/emotepage.h
index 0c2582318..f553fa750 100644
--- a/src/gui/widgets/emotepage.h
+++ b/src/gui/widgets/emotepage.h
@@ -25,12 +25,14 @@
#include <guichan/mouselistener.hpp>
#include <guichan/widget.hpp>
+#include <guichan/widgetlistener.hpp>
#include "localconsts.h"
class EmotePage final : public gcn::Widget,
public Widget2,
- public gcn::MouseListener
+ public gcn::MouseListener,
+ public gcn::WidgetListener
{
public:
explicit EmotePage(const Widget2 *const widget);
@@ -45,6 +47,10 @@ class EmotePage final : public gcn::Widget,
int getIndexFromGrid(const int x, const int y) const;
+ void widgetResized(const gcn::Event &event A_UNUSED);
+
+ void widgetMoved(const gcn::Event &event A_UNUSED);
+
void resetAction();
int getSelectedIndex()
@@ -52,7 +58,9 @@ class EmotePage final : public gcn::Widget,
private:
ImageSet *mEmotes;
+ ImageCollection *mVertexes;
int mSelectedIndex;
+ bool mRedraw;
};
#endif // GUI_WIDGETS_EMOTEPAGE_H