@@ -151,7 +151,7 @@ namespace ignition
151151 };
152152
153153 // / \brief Event which is called to broadcast the 3D coordinates of a
154- // / user's left click within the scene.
154+ // / user's releasing the left button within the scene.
155155 // / \sa LeftClickOnScene
156156 class IGNITION_GUI_VISIBLE LeftClickToScene : public QEvent
157157 {
@@ -173,7 +173,7 @@ namespace ignition
173173 };
174174
175175 // / \brief Event which is called to broadcast the 3D coordinates of a
176- // / user's right click within the scene.
176+ // / user's releasing the right button within the scene.
177177 // / \sa RightClickOnScene
178178 class IGNITION_GUI_VISIBLE RightClickToScene : public QEvent
179179 {
@@ -257,7 +257,7 @@ namespace ignition
257257 };
258258
259259 // / \brief Event which is called to broadcast information about left
260- // / mouse clicks on the scene.
260+ // / mouse releases on the scene.
261261 // / For the 3D coordinates of that point on the scene, see
262262 // / `LeftClickToScene`.
263263 // / \sa LeftClickToScene
@@ -280,7 +280,7 @@ namespace ignition
280280 };
281281
282282 // / \brief Event which is called to broadcast information about right
283- // / mouse clicks on the scene.
283+ // / mouse releases on the scene.
284284 // / For the 3D coordinates of that point on the scene, see
285285 // / `RightClickToScene`.
286286 // / \sa RightClickToScene
@@ -329,8 +329,7 @@ namespace ignition
329329 class IGNITION_GUI_VISIBLE HoverOnScene : public QEvent
330330 {
331331 // / \brief Constructor
332- // / \param[in] _point The point at which the mouse is hovering within
333- // / the scene
332+ // / \param[in] _mouse The hover mouse event on the scene
334333 public: explicit HoverOnScene (const common::MouseEvent &_mouse);
335334
336335 // / \brief Unique type for this event.
@@ -390,6 +389,66 @@ namespace ignition
390389 // / \brief Private data pointer
391390 IGN_UTILS_IMPL_PTR (dataPtr)
392391 };
392+
393+ // / \brief Event which is called to broadcast information about mouse
394+ // / scrolls on the scene.
395+ class IGNITION_GUI_VISIBLE ScrollOnScene : public QEvent
396+ {
397+ // / \brief Constructor
398+ // / \param[in] _mouse The scroll mouse event on the scene
399+ public: explicit ScrollOnScene (const common::MouseEvent &_mouse);
400+
401+ // / \brief Unique type for this event.
402+ static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 16 );
403+
404+ // / \brief Return the scroll mouse event
405+ public: const common::MouseEvent &Mouse () const ;
406+
407+ // / \internal
408+ // / \brief Private data pointer
409+ IGN_UTILS_IMPL_PTR (dataPtr)
410+ };
411+
412+ // / \brief Event which is called to broadcast information about mouse
413+ // / drags on the scene.
414+ class IGNITION_GUI_VISIBLE DragOnScene : public QEvent
415+ {
416+ // / \brief Constructor
417+ // / \param[in] _mouse The drag mouse event on the scene
418+ public: explicit DragOnScene (const common::MouseEvent &_mouse);
419+
420+ // / \brief Unique type for this event.
421+ static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 17 );
422+
423+ // / \brief Get the point within the scene over which the user is
424+ // / dragging.
425+ // / \return The 2D point
426+ public: common::MouseEvent Mouse () const ;
427+
428+ // / \internal
429+ // / \brief Private data pointer
430+ IGN_UTILS_IMPL_PTR (dataPtr)
431+ };
432+
433+ // / \brief Event which is called to broadcast information about mouse
434+ // / presses on the scene, with right, left or middle buttons.
435+ class IGNITION_GUI_VISIBLE MousePressOnScene : public QEvent
436+ {
437+ // / \brief Constructor
438+ // / \param[in] _mouse The mouse event on the scene
439+ public: MousePressOnScene(
440+ const common::MouseEvent &_mouse);
441+
442+ // / \brief Unique type for this event.
443+ static const QEvent::Type kType = QEvent::Type(QEvent::MaxUser - 18 );
444+
445+ // / \brief Return the button press mouse event
446+ public: const common::MouseEvent &Mouse () const ;
447+
448+ // / \internal
449+ // / \brief Private data pointer
450+ IGN_UTILS_IMPL_PTR (dataPtr)
451+ };
393452 }
394453 }
395454}
0 commit comments