Mercurial > hg > orthanc-stone
diff Applications/Generic/GuiAdapter.h @ 879:12b591d5d63c am-dev
some Qt integration (wip)
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 05 Jul 2019 14:52:43 +0200 |
parents | e3c56d4f863f |
children | 9953f16c304d |
line wrap: on
line diff
--- a/Applications/Generic/GuiAdapter.h Wed Jul 03 10:26:51 2019 +0200 +++ b/Applications/Generic/GuiAdapter.h Fri Jul 05 14:52:43 2019 +0200 @@ -67,6 +67,14 @@ }; + enum GuiAdapterMouseButtonType + { + GUIADAPTER_MOUSEBUTTON_LEFT = 0, + GUIADAPTER_MOUSEBUTTON_MIDDLE = 1, + GUIADAPTER_MOUSEBUTTON_RIGHT = 2 + }; + + enum GuiAdapterMouseEventType { GUIADAPTER_EVENT_MOUSEDOWN = 1973, @@ -137,6 +145,14 @@ //long canvasX; //long canvasY; //long padding; + + public: + GuiAdapterMouseEvent() + : ctrlKey(false), + shiftKey(false), + altKey(false) + { + } }; struct GuiAdapterWheelEvent { @@ -157,7 +173,7 @@ bool altKey; }; - std::ostream& operator<<(std::ostream& os, const GuiAdapterKeyboardEvent& event); + std::ostream& operator<<(std::ostream& os, const GuiAdapterKeyboardEvent& event); /* Mousedown event trigger when either the left or right (or middle) mouse is pressed