17 #ifndef _GAZEBO_MOUSEEVENT_HH_
18 #define _GAZEBO_MOUSEEVENT_HH_
20 #include <ignition/math/Vector2.hh>
28 class MouseEventPrivate;
80 public: ignition::math::Vector2i Pos()
const;
84 public:
void SetPos(
const ignition::math::Vector2i &_pos);
89 public:
void SetPos(
const int _x,
const int _y);
93 public: ignition::math::Vector2i PrevPos()
const;
97 public:
void SetPrevPos(
const ignition::math::Vector2i &_pos);
102 public:
void SetPrevPos(
const int _x,
const int _y);
106 public: ignition::math::Vector2i PressPos()
const;
110 public:
void SetPressPos(
const ignition::math::Vector2i &_pos);
115 public:
void SetPressPos(
const int _x,
const int _y);
119 public: ignition::math::Vector2i Scroll()
const;
123 public:
void SetScroll(
const ignition::math::Vector2i &_scroll);
128 public:
void SetScroll(
const int _x,
const int _y);
132 public:
float MoveScale()
const;
136 public:
void SetMoveScale(
const float _scale);
141 public:
bool Dragging()
const;
145 public:
void SetDragging(
const bool _dragging);
149 public: EventType Type()
const;
153 public:
void SetType(
const EventType _type)
const;
166 public:
unsigned int Buttons()
const;
171 public:
void SetButtons(
const unsigned int &_buttons);
175 public:
bool Shift()
const;
179 public:
void SetShift(
const bool _shift)
const;
183 public:
bool Alt()
const;
187 public:
void SetAlt(
const bool _alt);
191 public:
bool Control()
const;
195 public:
void SetControl(
const bool _control)
const;
Move event.
Definition: MouseEvent.hh:60
Generic description of a mouse event.
Definition: MouseEvent.hh:35
MouseButton
Standard mouse buttons enumeration.
Definition: MouseEvent.hh:38
Press event.
Definition: MouseEvent.hh:63
EventType
Mouse event types enumeration.
Definition: MouseEvent.hh:54
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
Release event.
Definition: MouseEvent.hh:66
Definition: MouseEventPrivate.hh:29
No event.
Definition: MouseEvent.hh:57