comparison Framework/Viewport/IViewport.h @ 726:4f2416d519b4

moving layers, widgets and loaders to Deprecated namespace
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 11:43:25 +0200
parents f0008c55e5f7
children
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
26 #include "../Messages/IObservable.h" 26 #include "../Messages/IObservable.h"
27 27
28 #include <Core/Images/ImageAccessor.h> 28 #include <Core/Images/ImageAccessor.h>
29 #include "../Viewport/IMouseTracker.h" // only to get the "Touch" definition 29 #include "../Viewport/IMouseTracker.h" // only to get the "Touch" definition
30 30
31 namespace OrthancStone 31 namespace Deprecated
32 { 32 {
33 class IWidget; // Forward declaration 33 class IWidget; // Forward declaration
34 34
35 class IViewport : public IObservable 35 class IViewport : public OrthancStone::IObservable
36 { 36 {
37 public: 37 public:
38 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, ViewportChangedMessage, IViewport); 38 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, ViewportChangedMessage, IViewport);
39 39
40 IViewport(MessageBroker& broker) : 40 IViewport(OrthancStone::MessageBroker& broker) :
41 IObservable(broker) 41 IObservable(broker)
42 { 42 {
43 } 43 }
44 44
45 virtual ~IViewport() 45 virtual ~IViewport()
54 unsigned int height) = 0; 54 unsigned int height) = 0;
55 55
56 // The function returns "true" iff. a new frame was rendered 56 // The function returns "true" iff. a new frame was rendered
57 virtual bool Render(Orthanc::ImageAccessor& surface) = 0; 57 virtual bool Render(Orthanc::ImageAccessor& surface) = 0;
58 58
59 virtual void MouseDown(MouseButton button, 59 virtual void MouseDown(OrthancStone::MouseButton button,
60 int x, 60 int x,
61 int y, 61 int y,
62 KeyboardModifiers modifiers, 62 OrthancStone::KeyboardModifiers modifiers,
63 const std::vector<Touch>& touches) = 0; 63 const std::vector<Touch>& touches) = 0;
64 64
65 virtual void MouseUp() = 0; 65 virtual void MouseUp() = 0;
66 66
67 virtual void MouseMove(int x, 67 virtual void MouseMove(int x,
70 70
71 virtual void MouseEnter() = 0; 71 virtual void MouseEnter() = 0;
72 72
73 virtual void MouseLeave() = 0; 73 virtual void MouseLeave() = 0;
74 74
75 virtual void MouseWheel(MouseWheelDirection direction, 75 virtual void MouseWheel(OrthancStone::MouseWheelDirection direction,
76 int x, 76 int x,
77 int y, 77 int y,
78 KeyboardModifiers modifiers) = 0; 78 OrthancStone::KeyboardModifiers modifiers) = 0;
79 79
80 virtual void KeyPressed(KeyboardKeys key, 80 virtual void KeyPressed(OrthancStone::KeyboardKeys key,
81 char keyChar, 81 char keyChar,
82 KeyboardModifiers modifiers) = 0; 82 OrthancStone::KeyboardModifiers modifiers) = 0;
83 83
84 virtual bool HasAnimation() = 0; 84 virtual bool HasAnimation() = 0;
85 85
86 virtual void DoAnimation() = 0; 86 virtual void DoAnimation() = 0;
87 87