MouseEvent.hh
Go to the documentation of this file.
41 NO_BUTTON = 0x0,
44 LEFT = 0x1,
47 MIDDLE = 0x2,
51 };
70 };
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
void SetScroll(const ignition::math::Vector2i &_scroll)
Set the scroll position.
ignition::math::Vector2i Pos() const
Get mouse pointer position on the screen.
void SetMoveScale(const float _scale)
Set the scaling factor.
void SetPrevPos(const int _x, const int _y)
Set the previous position.
void SetPressPos(const ignition::math::Vector2i &_pos)
Set the position of button press.
EventType
Mouse event types enumeration.
Definition: MouseEvent.hh:55
void SetPos(const ignition::math::Vector2i &_pos)
Set mouse pointer position on the screen.
void SetShift(const bool _shift) const
Set the shift key press flag.
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.
void SetPrevPos(const ignition::math::Vector2i &_pos)
Set the previous position.
void SetPos(const int _x, const int _y)
Set mouse pointer position on the screen.
MouseEvent & operator=(const MouseEvent &_other)
Assignment operator.
ignition::math::Vector2i PrevPos() const
Get the previous position.
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.
ignition::math::Vector2i PressPos() const
Get the position of button press.
MouseButton
Standard mouse buttons enumeration.
Definition: MouseEvent.hh:39
MouseEvent::MouseButton Button() const
Get the button which caused this event.
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.
Forward declarations for the common classes.