diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-26 20:51:30 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-26 20:51:30 (GMT) |
| commit | f8ca8af387b8611c18ca7c5357efd19c8bc28941 (patch) | |
| tree | fe790e2abede326949bb299b564ba8e75a979ecf /src/interface/ScrollPanel.h | |
| parent | 121e7c772cfc7b3e1305a03144264fc5b66564c2 (diff) | |
| download | powder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.zip powder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.tar.gz | |
Scroll Panel
Diffstat (limited to 'src/interface/ScrollPanel.h')
| -rw-r--r-- | src/interface/ScrollPanel.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/interface/ScrollPanel.h b/src/interface/ScrollPanel.h new file mode 100644 index 0000000..ae2a4ce --- /dev/null +++ b/src/interface/ScrollPanel.h @@ -0,0 +1,25 @@ +#pragma once + +#include "Panel.h" + +namespace ui +{ + class ScrollPanel: public Panel + { + protected: + int scrollBarWidth; + Point maxOffset; + float offsetX; + float offsetY; + float yScrollVel; + float xScrollVel; + public: + ScrollPanel(Point position, Point size); + + int GetScrollLimit(); + + virtual void XDraw(const Point& screenPos); + virtual void XTick(float dt); + virtual void XOnMouseWheelInside(int localx, int localy, int d); + }; +}
\ No newline at end of file |
