summaryrefslogtreecommitdiff
path: root/src/interface/ScrollPanel.h
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-14 18:34:00 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-14 18:34:00 (GMT)
commit05fc39e40faa817cdbf3e50de94d28a5ef9349dc (patch)
tree449557cc23018e9b0257786fd4ccab75ca94e5d1 /src/interface/ScrollPanel.h
parent002743ef085b21789e02505c30d5186c043d92b5 (diff)
downloadpowder-05fc39e40faa817cdbf3e50de94d28a5ef9349dc.zip
powder-05fc39e40faa817cdbf3e50de94d28a5ef9349dc.tar.gz
a working scrollbar in the save preview. Also, fix the bug where you couldn't go back up a page when there weren't enough comments to fill a page
Diffstat (limited to 'src/interface/ScrollPanel.h')
-rw-r--r--src/interface/ScrollPanel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface/ScrollPanel.h b/src/interface/ScrollPanel.h
index fc54b31..c26c420 100644
--- a/src/interface/ScrollPanel.h
+++ b/src/interface/ScrollPanel.h
@@ -13,6 +13,10 @@ namespace ui
float offsetY;
float yScrollVel;
float xScrollVel;
+ bool isMouseInsideScrollbar;
+ bool scrollbarSelected;
+ int scrollbarInitialYOffset;
+ int scrollbarInitialYClick;
public:
ScrollPanel(Point position, Point size);
@@ -21,5 +25,8 @@ namespace ui
virtual void Draw(const Point& screenPos);
virtual void XTick(float dt);
virtual void XOnMouseWheelInside(int localx, int localy, int d);
+ virtual void XOnMouseClick(int localx, int localy, unsigned int button);
+ virtual void XOnMouseUp(int x, int y, unsigned int button);
+ virtual void XOnMouseMoved(int localx, int localy, int dx, int dy);
};
} \ No newline at end of file