comparison Applications/Generic/GuiAdapter.cpp @ 1371:f15529add7b0 broker

operator << for GuiAdapterMouseEvent
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 20 Apr 2020 16:21:09 +0200
parents 28eb7106ef44
children
comparison
equal deleted inserted replaced
1370:28eb7106ef44 1371:f15529add7b0
42 std::ostream& os, const GuiAdapterKeyboardEvent& event) 42 std::ostream& os, const GuiAdapterKeyboardEvent& event)
43 { 43 {
44 os << "sym: " << event.sym << " (" << (int)(event.sym[0]) << ") ctrl: " << event.ctrlKey << ", " << 44 os << "sym: " << event.sym << " (" << (int)(event.sym[0]) << ") ctrl: " << event.ctrlKey << ", " <<
45 "shift: " << event.shiftKey << ", " << 45 "shift: " << event.shiftKey << ", " <<
46 "alt: " << event.altKey; 46 "alt: " << event.altKey;
47 return os;
48 }
49
50 std::ostream& operator<<(
51 std::ostream& os, const GuiAdapterMouseEvent& event)
52 {
53 os << "targetX: " << event.targetX << " targetY: " << event.targetY << " button: " << event.button
54 << "ctrlKey: " << event.ctrlKey << "shiftKey: " << event.shiftKey << "altKey: " << event.altKey;
55
47 return os; 56 return os;
48 } 57 }
49 58
50 #if ORTHANC_ENABLE_WASM == 1 59 #if ORTHANC_ENABLE_WASM == 1
51 void GuiAdapter::Run(GuiAdapterRunFunc /*func*/, void* /*cookie*/) 60 void GuiAdapter::Run(GuiAdapterRunFunc /*func*/, void* /*cookie*/)