Mercurial > hg > orthanc-stone
comparison Framework/Viewport/WidgetViewport.h @ 457:3b4df9925db6 am-touch-events
added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 24 Jan 2019 16:42:27 +0100 |
parents | b70e9be013e4 |
children | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
456:b70fcc134ba4 | 457:3b4df9925db6 |
---|---|
57 virtual bool Render(Orthanc::ImageAccessor& surface); | 57 virtual bool Render(Orthanc::ImageAccessor& surface); |
58 | 58 |
59 virtual void MouseDown(MouseButton button, | 59 virtual void MouseDown(MouseButton button, |
60 int x, | 60 int x, |
61 int y, | 61 int y, |
62 KeyboardModifiers modifiers); | 62 KeyboardModifiers modifiers, |
63 const std::vector<Touch>& displayTouches); | |
63 | 64 |
64 virtual void MouseUp(); | 65 virtual void MouseUp(); |
65 | 66 |
66 virtual void MouseMove(int x, | 67 virtual void MouseMove(int x, |
67 int y); | 68 int y, |
69 const std::vector<Touch>& displayTouches); | |
68 | 70 |
69 virtual void MouseEnter(); | 71 virtual void MouseEnter(); |
70 | 72 |
71 virtual void MouseLeave(); | 73 virtual void MouseLeave(); |
74 | |
75 virtual void TouchStart(const std::vector<Touch>& touches); | |
76 | |
77 virtual void TouchMove(const std::vector<Touch>& touches); | |
78 | |
79 virtual void TouchEnd(const std::vector<Touch>& touches); | |
72 | 80 |
73 virtual void MouseWheel(MouseWheelDirection direction, | 81 virtual void MouseWheel(MouseWheelDirection direction, |
74 int x, | 82 int x, |
75 int y, | 83 int y, |
76 KeyboardModifiers modifiers); | 84 KeyboardModifiers modifiers); |