TDME2 1.9.121
Public Types | Public Member Functions | Private Attributes | List of all members
GUIMouseEvent Class Referencefinal

GUI mouse event. More...

#include <tdme/gui/events/GUIMouseEvent.h>

Collaboration diagram for GUIMouseEvent:
Collaboration graph

Public Types

enum  GUIMouseEventType {
  MOUSEEVENT_NONE , MOUSEEVENT_WHEEL_MOVED , MOUSEEVENT_PRESSED , MOUSEEVENT_RELEASED ,
  MOUSEEVENT_MOVED , MOUSEEVENT_DRAGGED
}
 

Public Member Functions

 ~GUIMouseEvent ()
 Destructor. More...
 
int64_t getTime ()
 
void setTime (int64_t time)
 Set time. More...
 
GUIMouseEventType getType ()
 
void setType (GUIMouseEventType type)
 Set type. More...
 
int getXUnscaled ()
 
void setXUnscaled (int xUnscaled)
 Set x unscaled. More...
 
int getYUnscaled ()
 
void setYUnscaled (int yUnscaled)
 Set y unscaled. More...
 
int getX ()
 
void setX (int x)
 Set x. More...
 
int getY ()
 
void setY (int y)
 Set y. More...
 
int getButton ()
 
void setButton (int button)
 Set button. More...
 
float getWheelX ()
 
void setWheelX (float wheelX)
 Set up wheel x. More...
 
float getWheelY ()
 
void setWheelY (float wheelY)
 Set up wheel y. More...
 
float getWheelZ ()
 
void setWheelZ (float wheelZ)
 Set up wheel z. More...
 
bool isMetaDown ()
 
void setMetaDown (bool metaDown)
 Set meta down. More...
 
bool isControlDown ()
 
void setControlDown (bool controlDown)
 Set control down. More...
 
bool isAltDown ()
 
void setAltDown (bool altDown)
 Set alt down. More...
 
bool isShiftDown ()
 
void setShiftDown (bool shiftDown)
 Set shift down. More...
 
bool isProcessed ()
 
void setProcessed (bool processed)
 Set processed. More...
 
 GUIMouseEvent ()
 Public constructor. More...
 

Private Attributes

int64_t time
 
GUIMouseEventType type { MOUSEEVENT_NONE }
 
int xUnscaled
 
int yUnscaled
 
int x
 
int y
 
int button
 
float wheelX
 
float wheelY
 
float wheelZ
 
bool metaDown
 
bool controlDown
 
bool altDown
 
bool shiftDown
 
bool processed
 

Detailed Description

GUI mouse event.

Author
Andreas Drewke
Version
$Id$

Definition at line 12 of file GUIMouseEvent.h.

Member Enumeration Documentation

◆ GUIMouseEventType

Enumerator
MOUSEEVENT_NONE 
MOUSEEVENT_WHEEL_MOVED 
MOUSEEVENT_PRESSED 
MOUSEEVENT_RELEASED 
MOUSEEVENT_MOVED 
MOUSEEVENT_DRAGGED 

Definition at line 15 of file GUIMouseEvent.h.

Constructor & Destructor Documentation

◆ ~GUIMouseEvent()

Destructor.

Definition at line 25 of file GUIMouseEvent.cpp.

◆ GUIMouseEvent()

Public constructor.

Definition at line 6 of file GUIMouseEvent.cpp.

Member Function Documentation

◆ getButton()

int getButton ( )
inline
Returns
button

Definition at line 140 of file GUIMouseEvent.h.

◆ getTime()

int64_t getTime ( )
inline
Returns
time in milliseconds

Definition at line 50 of file GUIMouseEvent.h.

◆ getType()

GUIMouseEventType getType ( )
inline
Returns
type

Definition at line 65 of file GUIMouseEvent.h.

◆ getWheelX()

float getWheelX ( )
inline
Returns
wheel x

Definition at line 155 of file GUIMouseEvent.h.

◆ getWheelY()

float getWheelY ( )
inline
Returns
wheel y

Definition at line 170 of file GUIMouseEvent.h.

◆ getWheelZ()

float getWheelZ ( )
inline
Returns
wheel z

Definition at line 185 of file GUIMouseEvent.h.

◆ getX()

int getX ( )
inline
Returns
x

Definition at line 110 of file GUIMouseEvent.h.

◆ getXUnscaled()

int getXUnscaled ( )
inline
Returns
x unscaled

Definition at line 80 of file GUIMouseEvent.h.

◆ getY()

int getY ( )
inline
Returns
y

Definition at line 125 of file GUIMouseEvent.h.

◆ getYUnscaled()

int getYUnscaled ( )
inline
Returns
y unscaled

Definition at line 95 of file GUIMouseEvent.h.

◆ isAltDown()

bool isAltDown ( )
inline
Returns
is alt down

Definition at line 230 of file GUIMouseEvent.h.

◆ isControlDown()

bool isControlDown ( )
inline
Returns
control down

Definition at line 215 of file GUIMouseEvent.h.

◆ isMetaDown()

bool isMetaDown ( )
inline
Returns
is meta down

Definition at line 200 of file GUIMouseEvent.h.

◆ isProcessed()

bool isProcessed ( )
inline
Returns
processed

Definition at line 260 of file GUIMouseEvent.h.

◆ isShiftDown()

bool isShiftDown ( )
inline
Returns
is shift down

Definition at line 245 of file GUIMouseEvent.h.

◆ setAltDown()

void setAltDown ( bool  altDown)
inline

Set alt down.

Parameters
altDownalt down

Definition at line 238 of file GUIMouseEvent.h.

◆ setButton()

void setButton ( int  button)
inline

Set button.

Parameters
buttonbutton

Definition at line 148 of file GUIMouseEvent.h.

◆ setControlDown()

void setControlDown ( bool  controlDown)
inline

Set control down.

Parameters
controlDowncontrol down

Definition at line 223 of file GUIMouseEvent.h.

◆ setMetaDown()

void setMetaDown ( bool  metaDown)
inline

Set meta down.

Parameters
metaDownmeta down

Definition at line 208 of file GUIMouseEvent.h.

◆ setProcessed()

void setProcessed ( bool  processed)
inline

Set processed.

Parameters
processedprocessed

Definition at line 268 of file GUIMouseEvent.h.

◆ setShiftDown()

void setShiftDown ( bool  shiftDown)
inline

Set shift down.

Parameters
shiftDownshiftDown

Definition at line 253 of file GUIMouseEvent.h.

◆ setTime()

void setTime ( int64_t  time)
inline

Set time.

Parameters
timetime

Definition at line 58 of file GUIMouseEvent.h.

◆ setType()

void setType ( GUIMouseEventType  type)
inline

Set type.

Parameters
typetype

Definition at line 73 of file GUIMouseEvent.h.

◆ setWheelX()

void setWheelX ( float  wheelX)
inline

Set up wheel x.

Parameters
wheelXwheel x

Definition at line 163 of file GUIMouseEvent.h.

◆ setWheelY()

void setWheelY ( float  wheelY)
inline

Set up wheel y.

Parameters
wheelYwheel y

Definition at line 178 of file GUIMouseEvent.h.

◆ setWheelZ()

void setWheelZ ( float  wheelZ)
inline

Set up wheel z.

Parameters
wheelZwheel z

Definition at line 193 of file GUIMouseEvent.h.

◆ setX()

void setX ( int  x)
inline

Set x.

Parameters
xx

Definition at line 118 of file GUIMouseEvent.h.

◆ setXUnscaled()

void setXUnscaled ( int  xUnscaled)
inline

Set x unscaled.

Parameters
xx unscaled

Definition at line 88 of file GUIMouseEvent.h.

◆ setY()

void setY ( int  y)
inline

Set y.

Parameters
yy

Definition at line 133 of file GUIMouseEvent.h.

◆ setYUnscaled()

void setYUnscaled ( int  yUnscaled)
inline

Set y unscaled.

Parameters
yy unscaled

Definition at line 103 of file GUIMouseEvent.h.

Member Data Documentation

◆ altDown

bool altDown
private

Definition at line 37 of file GUIMouseEvent.h.

◆ button

int button
private

Definition at line 31 of file GUIMouseEvent.h.

◆ controlDown

bool controlDown
private

Definition at line 36 of file GUIMouseEvent.h.

◆ metaDown

bool metaDown
private

Definition at line 35 of file GUIMouseEvent.h.

◆ processed

bool processed
private

Definition at line 39 of file GUIMouseEvent.h.

◆ shiftDown

bool shiftDown
private

Definition at line 38 of file GUIMouseEvent.h.

◆ time

int64_t time
private

Definition at line 25 of file GUIMouseEvent.h.

◆ type

Definition at line 26 of file GUIMouseEvent.h.

◆ wheelX

float wheelX
private

Definition at line 32 of file GUIMouseEvent.h.

◆ wheelY

float wheelY
private

Definition at line 33 of file GUIMouseEvent.h.

◆ wheelZ

float wheelZ
private

Definition at line 34 of file GUIMouseEvent.h.

◆ x

int x
private

Definition at line 29 of file GUIMouseEvent.h.

◆ xUnscaled

int xUnscaled
private

Definition at line 27 of file GUIMouseEvent.h.

◆ y

int y
private

Definition at line 30 of file GUIMouseEvent.h.

◆ yUnscaled

int yUnscaled
private

Definition at line 28 of file GUIMouseEvent.h.


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