Go to the documentation of this file.
17 #ifndef GZ_COMMON_MOUSEEVENT_HH_
18 #define GZ_COMMON_MOUSEEVENT_HH_
21 #include <gz/math/Vector2.hh>
23 #include <gz/common/events/Export.hh>
31 class MouseEventPrivate;
84 public: gz::math::Vector2i Pos()
const;
88 public:
void SetPos(
const gz::math::Vector2i &_pos);
93 public:
void SetPos(
const int _x,
const int _y);
97 public: gz::math::Vector2i PrevPos()
const;
101 public:
void SetPrevPos(
const gz::math::Vector2i &_pos);
106 public:
void SetPrevPos(
const int _x,
const int _y);
110 public: gz::math::Vector2i PressPos()
const;
114 public:
void SetPressPos(
const gz::math::Vector2i &_pos);
119 public:
void SetPressPos(
const int _x,
const int _y);
123 public: gz::math::Vector2i Scroll()
const;
127 public:
void SetScroll(
const gz::math::Vector2i &_scroll);
132 public:
void SetScroll(
const int _x,
const int _y);
136 public:
float MoveScale()
const;
140 public:
void SetMoveScale(
const float _scale);
145 public:
bool Dragging()
const;
149 public:
void SetDragging(
const bool _dragging);
153 public: EventType Type()
const;
157 public:
void SetType(
const EventType _type)
const;
170 public:
unsigned int Buttons()
const;
175 public:
void SetButtons(
const unsigned int &_buttons);
179 public:
bool Shift()
const;
183 public:
void SetShift(
const bool _shift)
const;
187 public:
bool Alt()
const;
191 public:
void SetAlt(
const bool _alt);
195 public:
bool Control()
const;
199 public:
void SetControl(
const bool _control)
const;
Forward declarations for the common classes.
#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
@ NO_EVENT
No event.
Definition: gz/common/MouseEvent.hh:57
MouseButton
Standard mouse buttons enumeration.
Definition: gz/common/MouseEvent.hh:38
@ RELEASE
Release event.
Definition: gz/common/MouseEvent.hh:66
EventType
Mouse event types enumeration.
Definition: gz/common/MouseEvent.hh:54
@ PRESS
Press event.
Definition: gz/common/MouseEvent.hh:63
Generic description of a mouse event.
Definition: gz/common/MouseEvent.hh:35
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68
@ MOVE
Move event.
Definition: gz/common/MouseEvent.hh:60