OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions
MouseEvent Class Reference

#include <mouse_event.hh>

Public Types

enum  Button { LeftButton = Qt::LeftButton, RightButton = Qt::RightButton, MiddleButton = Qt::MidButton }
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

Detailed Description

Definition at line 32 of file mouse_event.hh.


Member Typedef Documentation

typedef int Buttons

Definition at line 39 of file mouse_event.hh.


Member Enumeration Documentation

enum Button
Enumerator:
LeftButton 
RightButton 
MiddleButton 

Definition at line 34 of file mouse_event.hh.


Constructor & Destructor Documentation

MouseEvent ( Buttons  buttons,
const QPoint &  from,
const QPoint &  to,
Qt::KeyboardModifiers  modifiers 
)

Member Function Documentation

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

The documentation for this class was generated from the following file: