17 #ifndef GZ_GUI_GUIEVENTS_HH_
18 #define GZ_GUI_GUIEVENTS_HH_
26 #include <gz/common/KeyEvent.hh>
27 #include <gz/common/MouseEvent.hh>
28 #include <gz/math/Vector2.hh>
29 #include <gz/math/Vector3.hh>
30 #include <gz/msgs/world_control.pb.h>
31 #include <gz/utils/ImplPtr.hh>
33 #include "gz/gui/Export.hh"
35 namespace gz::gui::events
50 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser);
80 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 1);
84 GZ_UTILS_IMPL_PTR(dataPtr)
97 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 2);
105 GZ_UTILS_IMPL_PTR(dataPtr)
117 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 3);
125 GZ_UTILS_IMPL_PTR(dataPtr)
138 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 4);
147 GZ_UTILS_IMPL_PTR(dataPtr)
161 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 5);
169 GZ_UTILS_IMPL_PTR(dataPtr)
183 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 6);
191 GZ_UTILS_IMPL_PTR(dataPtr)
205 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 7);
209 public:
bool MenuEnabled()
const;
213 GZ_UTILS_IMPL_PTR(dataPtr)
225 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 8);
229 public: common::KeyEvent Key()
const;
233 GZ_UTILS_IMPL_PTR(dataPtr)
245 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 9);
249 public: common::KeyEvent Key()
const;
253 GZ_UTILS_IMPL_PTR(dataPtr)
266 const common::MouseEvent &_mouse);
269 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 10);
272 public:
const common::MouseEvent &Mouse()
const;
276 GZ_UTILS_IMPL_PTR(dataPtr)
289 const common::MouseEvent &_mouse);
292 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 11);
295 public:
const common::MouseEvent &Mouse()
const;
299 GZ_UTILS_IMPL_PTR(dataPtr)
309 public:
explicit BlockOrbit(
const bool &_block);
312 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 12);
317 public:
bool Block()
const;
321 GZ_UTILS_IMPL_PTR(dataPtr)
330 public:
explicit HoverOnScene(
const common::MouseEvent &_mouse);
333 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 13);
338 public: common::MouseEvent Mouse()
const;
342 GZ_UTILS_IMPL_PTR(dataPtr)
353 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 14);
361 GZ_UTILS_IMPL_PTR(dataPtr)
383 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 15);
387 GZ_UTILS_IMPL_PTR(dataPtr)
396 public:
explicit ScrollOnScene(
const common::MouseEvent &_mouse);
399 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 16);
402 public:
const common::MouseEvent &Mouse()
const;
406 GZ_UTILS_IMPL_PTR(dataPtr)
415 public:
explicit DragOnScene(
const common::MouseEvent &_mouse);
418 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 17);
423 public: common::MouseEvent Mouse()
const;
427 GZ_UTILS_IMPL_PTR(dataPtr)
437 const common::MouseEvent &_mouse);
440 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 18);
443 public:
const common::MouseEvent &Mouse()
const;
447 GZ_UTILS_IMPL_PTR(dataPtr)
455 public:
explicit WorldControl(
const msgs::WorldControl &_worldControl);
458 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 19);
462 public:
const msgs::WorldControl &WorldControlInfo()
const;
466 GZ_UTILS_IMPL_PTR(dataPtr)
478 static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 20);
482 GZ_UTILS_IMPL_PTR(dataPtr)
486 #endif // GZ_GUI_GUIEVENTS_HH_