OpenStructure
Public Types | Public Member Functions
MouseEvent Class Reference

#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
 

Detailed Description

Definition at line 32 of file mouse_event.hh.

Member Typedef Documentation

◆ Buttons

typedef int Buttons

Definition at line 39 of file mouse_event.hh.

Member Enumeration Documentation

◆ Button

enum Button
Enumerator
LeftButton 
RightButton 
MiddleButton 

Definition at line 34 of file mouse_event.hh.

Constructor & Destructor Documentation

◆ MouseEvent()

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

Member Function Documentation

◆ GetButtons()

Buttons GetButtons ( ) const

◆ GetDelta()

QPoint GetDelta ( ) const

direction of mouse movement

◆ GetLastPos()

QPoint GetLastPos ( ) const

◆ GetPos()

QPoint GetPos ( ) const

◆ IsControlPressed()

bool IsControlPressed ( ) const

◆ IsMetaPressed()

bool IsMetaPressed ( ) const

◆ IsShiftPressed()

bool IsShiftPressed ( ) const

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