gz/common/MouseEvent.hh
Go to the documentation of this file.
42 NO_BUTTON = 0x0,
45 LEFT = 0x1,
48 MIDDLE = 0x2,
52 };
71 };
Generic description of a mouse event.
Definition: gz/common/MouseEvent.hh:37
void SetMoveScale(const float _scale)
Set the scaling factor.
void SetPrevPos(const math::Vector2i &_pos)
Set the previous position.
void SetPrevPos(const int _x, const int _y)
Set the previous position.
EventType
Mouse event types enumeration.
Definition: gz/common/MouseEvent.hh:56
void SetShift(const bool _shift) const
Set the shift key press flag.
void SetPos(const math::Vector2i &_pos)
Set mouse pointer position on the screen.
void SetPressPos(const int _x, const int _y)
Set the position of button press.
void SetButton(const MouseEvent::MouseButton _button) const
Set the button which caused the event.
void SetControl(const bool _control) const
Set the control key press flag.
math::Vector2i PressPos() const
Get the position of button press.
void SetPos(const int _x, const int _y)
Set mouse pointer position on the screen.
void SetPressPos(const math::Vector2i &_pos)
Set the position of button press.
MouseEvent & operator=(const MouseEvent &_other)
Assignment operator.
void SetDragging(const bool _dragging)
Set the flag for mouse drag motion.
unsigned int Buttons() const
Get the state of the buttons when the event was generated.
MouseButton
Standard mouse buttons enumeration.
Definition: gz/common/MouseEvent.hh:40
MouseEvent::MouseButton Button() const
Get the button which caused this event.
math::Vector2i Pos() const
Get mouse pointer position on the screen.
void SetButtons(const unsigned int &_buttons)
Set the state of the buttons when the event was generated.
void SetScroll(const int _x, const int _y)
Set the scroll position.
void SetScroll(const math::Vector2i &_scroll)
Set the scroll position.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: gz/common/SuppressWarning.hh:65
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68
Forward declarations for the common classes.