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/config.hh>
24 #include <gz/common/events/Export.hh>
32 class MouseEventPrivate;
94 public:
void SetPos(
const int _x,
const int _y);
107 public:
void SetPrevPos(
const int _x,
const int _y);
120 public:
void SetPressPos(
const int _x,
const int _y);
133 public:
void SetScroll(
const int _x,
const int _y);
137 public:
float MoveScale()
const;
141 public:
void SetMoveScale(
const float _scale);
146 public:
bool Dragging()
const;
150 public:
void SetDragging(
const bool _dragging);
154 public: EventType Type()
const;
158 public:
void SetType(
const EventType _type)
const;
171 public:
unsigned int Buttons()
const;
176 public:
void SetButtons(
const unsigned int &_buttons);
180 public:
bool Shift()
const;
184 public:
void SetShift(
const bool _shift)
const;
188 public:
bool Alt()
const;
192 public:
void SetAlt(
const bool _alt);
196 public:
bool Control()
const;
200 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:58
MouseButton
Standard mouse buttons enumeration.
Definition: gz/common/MouseEvent.hh:39
@ RELEASE
Release event.
Definition: gz/common/MouseEvent.hh:67
EventType
Mouse event types enumeration.
Definition: gz/common/MouseEvent.hh:55
@ PRESS
Press event.
Definition: gz/common/MouseEvent.hh:64
Generic description of a mouse event.
Definition: gz/common/MouseEvent.hh:36
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68
@ MOVE
Move event.
Definition: gz/common/MouseEvent.hh:61