# HG changeset patch # User Benjamin Golinvaux # Date 1587392469 -7200 # Node ID f15529add7b0dced41984c0c1c1b97b1077961be # Parent 28eb7106ef4468edb7e362fae4d1fafee73dbc04 operator << for GuiAdapterMouseEvent diff -r 28eb7106ef44 -r f15529add7b0 Applications/Generic/GuiAdapter.cpp --- a/Applications/Generic/GuiAdapter.cpp Mon Apr 20 13:08:43 2020 +0200 +++ b/Applications/Generic/GuiAdapter.cpp Mon Apr 20 16:21:09 2020 +0200 @@ -47,6 +47,15 @@ return os; } + std::ostream& operator<<( + std::ostream& os, const GuiAdapterMouseEvent& event) + { + os << "targetX: " << event.targetX << " targetY: " << event.targetY << " button: " << event.button + << "ctrlKey: " << event.ctrlKey << "shiftKey: " << event.shiftKey << "altKey: " << event.altKey; + + return os; + } + #if ORTHANC_ENABLE_WASM == 1 void GuiAdapter::Run(GuiAdapterRunFunc /*func*/, void* /*cookie*/) { diff -r 28eb7106ef44 -r f15529add7b0 Applications/Generic/GuiAdapter.h --- a/Applications/Generic/GuiAdapter.h Mon Apr 20 13:08:43 2020 +0200 +++ b/Applications/Generic/GuiAdapter.h Mon Apr 20 16:21:09 2020 +0200 @@ -202,6 +202,7 @@ }; std::ostream& operator<<(std::ostream& os, const GuiAdapterKeyboardEvent& event); + std::ostream& operator<<(std::ostream& os, const GuiAdapterMouseEvent& event); /* Mousedown event trigger when either the left or right (or middle) mouse is pressed