summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-26 20:17:08 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-26 20:17:08 +0300
commit2ca54be098398e50bb9aa482f78d1f302e372fd5 (patch)
tree83058cae8148cadaef2922b32618b27b3b6fc316 /src/gui/widgets/scrollarea.h
parenta1cd5307497bfc754f157a3e22bfa98fc126137a (diff)
downloadplus-2ca54be098398e50bb9aa482f78d1f302e372fd5.tar.gz
plus-2ca54be098398e50bb9aa482f78d1f302e372fd5.tar.bz2
plus-2ca54be098398e50bb9aa482f78d1f302e372fd5.tar.xz
plus-2ca54be098398e50bb9aa482f78d1f302e372fd5.zip
Add ability to scrolling in scrollareas like chat by mouse draging.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r--src/gui/widgets/scrollarea.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h
index 095010f3c..56e21c58c 100644
--- a/src/gui/widgets/scrollarea.h
+++ b/src/gui/widgets/scrollarea.h
@@ -112,6 +112,10 @@ class ScrollArea : public gcn::ScrollArea, public gcn::WidgetListener
*/
void mouseExited(gcn::MouseEvent& event);
+ void mousePressed(gcn::MouseEvent& event);
+
+ void mouseReleased(gcn::MouseEvent& event);
+
void widgetResized(const gcn::Event &event);
void widgetMoved(const gcn::Event &event);
@@ -148,6 +152,7 @@ class ScrollArea : public gcn::ScrollArea, public gcn::WidgetListener
static Image *buttons[4][2];
int mX, mY;
+ int mClickX, mClickY;
bool mHasMouse;
bool mOpaque;
GraphicsVertexes *mVertexes;