OpenStructure
|
#include <mouse_event.hh>
Public Types | |
enum | Button { LeftButton =Qt::LeftButton, RightButton =Qt::RightButton, MiddleButton =Qt::MiddleButton } |
typedef int | Buttons |
Public Member Functions | |
MouseEvent (Buttons buttons, const QPoint &from, const QPoint &to, Qt::KeyboardModifiers modifiers) | |
QPoint | GetDelta () const |
QPoint | GetLastPos () const |
QPoint | GetPos () const |
Buttons | GetButtons () const |
bool | IsShiftPressed () const |
bool | IsMetaPressed () const |
bool | IsControlPressed () const |
Definition at line 32 of file mouse_event.hh.
typedef int Buttons |
Definition at line 39 of file mouse_event.hh.
enum Button |
Enumerator | |
---|---|
LeftButton | |
RightButton | |
MiddleButton |
Definition at line 34 of file mouse_event.hh.
MouseEvent | ( | Buttons | buttons, |
const QPoint & | from, | ||
const QPoint & | to, | ||
Qt::KeyboardModifiers | modifiers | ||
) |
Buttons GetButtons | ( | ) | const |
QPoint GetDelta | ( | ) | const |
direction of mouse movement
QPoint GetLastPos | ( | ) | const |
QPoint GetPos | ( | ) | const |
bool IsControlPressed | ( | ) | const |
bool IsMetaPressed | ( | ) | const |
bool IsShiftPressed | ( | ) | const |