Support Forum       G3D Web Page     
Public Types | Public Member Functions | Static Public Member Functions | List of all members
G3D::GEventType Class Reference

Event code enumerations. More...

Public Types

enum  Value {
  NONE = 0,
  ACTIVE,
  KEY_DOWN,
  KEY_UP,
  MOUSE_MOTION,
  MOUSE_BUTTON_DOWN,
  MOUSE_BUTTON_UP,
  JOY_AXIS_MOTION,
  JOY_BALL_MOTION,
  JOY_HAT_MOTION,
  JOY_BUTTON_DOWN,
  JOY_BUTTON_UP,
  QUIT,
  SYSWMEVENT,
  EVENT_RESERVEDA,
  EVENT_RESERVEDB,
  VIDEO_RESIZE,
  VIDEO_EXPOSE,
  EVENT_RESERVED2,
  EVENT_RESERVED3,
  EVENT_RESERVED4,
  EVENT_RESERVED5,
  EVENT_RESERVED6,
  CHAR_INPUT,
  GUI_DOWN,
  GUI_UP,
  GUI_ACTION,
  GUI_CHANGE,
  GUI_CANCEL,
  GUI_KEY_FOCUS,
  GUI_CLOSE,
  FILE_DROP,
  MOUSE_SCROLL_2D,
  MOUSE_BUTTON_CLICK,
  KEY_REPEAT,
  FOCUS,
  NUMEVENTS
}
 

Public Member Functions

 GEventType (const G3D::String &x)
 
 GEventType (char v)
 
 GEventType (int v)
 
 GEventType (const G3D::Any &a)
 
 GEventType ()
 
 GEventType (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
bool isGuiEvent () const
 False for GUI_CLOSE, which is a GuiCloseEvent. More...
 
 operator int () const
 
bool operator!= (const GEventType other) const
 
bool operator!= (const GEventType ::Value other) const
 
GEventType operator+ (const int x) const
 
GEventTypeoperator++ ()
 
GEventTypeoperator+= (const int x)
 
GEventType operator- (const int x) const
 
GEventTypeoperator-- ()
 
GEventTypeoperator-= (const int x)
 
bool operator< (const GEventType other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const GEventType other) const
 
GEventTypeoperator= (const G3D::Any &a)
 
bool operator== (const GEventType ::Value other) const
 
bool operator== (const GEventType other) const
 
bool operator> (const GEventType other) const
 
bool operator> (const Value other) const
 
bool operator>= (const GEventType other) const
 
bool operator>= (const Value other) const
 
void serialize (G3D::BinaryOutput &b) const
 
G3D::Any toAny () const
 
const char * toString () const
 

Static Public Member Functions

static const char * classname ()
 
static int count ()
 
static Value nthValue (int n)
 

Detailed Description

Event code enumerations.

Member Enumeration Documentation

◆ Value

Enumerator
NONE 
ACTIVE 

Unused (do not remove)

KEY_DOWN 

Application loses/gains visibility.

Deprecated:
.

Use FOCUS

KEY_UP 

Keys pressed.

MOUSE_MOTION 

Keys released.

MOUSE_BUTTON_DOWN 

Mouse moved.

MOUSE_BUTTON_UP 

Mouse button pressed.

JOY_AXIS_MOTION 

Mouse button released.

JOY_BALL_MOTION 

Joystick axis motion.

JOY_HAT_MOTION 

Joystick trackball motion.

JOY_BUTTON_DOWN 

Joystick hat position change.

JOY_BUTTON_UP 

Joystick button pressed.

QUIT 

Joystick button released.

SYSWMEVENT 

User-requested quit.

EVENT_RESERVEDA 

System specific event.

EVENT_RESERVEDB 

Reserved for future use.

VIDEO_RESIZE 

Reserved for future use.

VIDEO_EXPOSE 

User resized video mode.

EVENT_RESERVED2 

Screen needs to be redrawn.

EVENT_RESERVED3 

Reserved for future use.

EVENT_RESERVED4 

Reserved for future use.

EVENT_RESERVED5 

Reserved for future use.

EVENT_RESERVED6 

Reserved for future use.

CHAR_INPUT 

Reserved for future use.

GUI_DOWN 

Character input (usually simultaneous with a KEY_DOWN)

GUI_UP 

GuiControl button, etc.

pressed.

GUI_ACTION 

GuiControl button, etc.

released.

GUI_CHANGE 

Commit action: Button fire, enter pressed in a text box, slider released, menu selecion.

GUI_CANCEL 

Continuous changing (e.g., typing in text box, slider dragged.)

GUI_KEY_FOCUS 

Esc pressed in a text box or menu.

GUI_CLOSE 

GuiControl gains or loses key focus.

FILE_DROP 

GuiWindow close button pressed.

MOUSE_SCROLL_2D 

Signifies that files have been dropped onto the program.

Call OSWindow.getDroppedFilenames to receive the actual data.

MOUSE_BUTTON_CLICK 

A 2D scroll event has occured.

KEY_REPEAT 

A 2D button click (in addition to mouse released event).

Uses MouseButtonEvent.

FOCUS 

Operating system virtual key press from the key being held down.

This is not fired on the physical key press.

NUMEVENTS 

Application gains or loses keyboard focus.

This last event is only for bounding internal arrays It is the number of bits in the event mask datatype – uint32

Constructor & Destructor Documentation

◆ GEventType() [1/6]

G3D::GEventType::GEventType ( const G3D::String x)
inlineexplicit

◆ GEventType() [2/6]

G3D::GEventType::GEventType ( const G3D::Any a)
inlineexplicit

◆ GEventType() [3/6]

G3D::GEventType::GEventType ( char  v)
inlineexplicit

◆ GEventType() [4/6]

G3D::GEventType::GEventType ( )
inline

◆ GEventType() [5/6]

G3D::GEventType::GEventType ( const Value  v)
inline

◆ GEventType() [6/6]

G3D::GEventType::GEventType ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

static const char* G3D::GEventType::classname ( )
inlinestatic

◆ count()

static int G3D::GEventType::count ( )
inlinestatic

◆ deserialize()

void G3D::GEventType::deserialize ( G3D::BinaryInput b)
inline

◆ hashCode()

unsigned int G3D::GEventType::hashCode ( ) const
inline

◆ isGuiEvent()

bool G3D::GEventType::isGuiEvent ( ) const
inline

False for GUI_CLOSE, which is a GuiCloseEvent.

◆ nthValue()

static Value G3D::GEventType::nthValue ( int  n)
inlinestatic

◆ operator int()

G3D::GEventType::operator int ( ) const
inline

◆ operator!=() [1/2]

bool G3D::GEventType::operator!= ( const GEventType  other) const
inline

◆ operator!=() [2/2]

bool G3D::GEventType::operator!= ( const GEventType ::Value  other) const
inline

◆ operator+()

GEventType G3D::GEventType::operator+ ( const int  x) const
inline

◆ operator++()

GEventType& G3D::GEventType::operator++ ( )
inline

◆ operator+=()

GEventType& G3D::GEventType::operator+= ( const int  x)
inline

◆ operator-()

GEventType G3D::GEventType::operator- ( const int  x) const
inline

◆ operator--()

GEventType& G3D::GEventType::operator-- ( )
inline

◆ operator-=()

GEventType& G3D::GEventType::operator-= ( const int  x)
inline

◆ operator<() [1/2]

bool G3D::GEventType::operator< ( const Value  other) const
inline

◆ operator<() [2/2]

bool G3D::GEventType::operator< ( const GEventType  other) const
inline

◆ operator<=() [1/2]

bool G3D::GEventType::operator<= ( const Value  other) const
inline

◆ operator<=() [2/2]

bool G3D::GEventType::operator<= ( const GEventType  other) const
inline

◆ operator=()

GEventType& G3D::GEventType::operator= ( const G3D::Any a)
inline

◆ operator==() [1/2]

bool G3D::GEventType::operator== ( const GEventType  other) const
inline

◆ operator==() [2/2]

bool G3D::GEventType::operator== ( const GEventType ::Value  other) const
inline

◆ operator>() [1/2]

bool G3D::GEventType::operator> ( const GEventType  other) const
inline

◆ operator>() [2/2]

bool G3D::GEventType::operator> ( const Value  other) const
inline

◆ operator>=() [1/2]

bool G3D::GEventType::operator>= ( const Value  other) const
inline

◆ operator>=() [2/2]

bool G3D::GEventType::operator>= ( const GEventType  other) const
inline

◆ serialize()

void G3D::GEventType::serialize ( G3D::BinaryOutput b) const
inline

◆ toAny()

G3D::Any G3D::GEventType::toAny ( ) const
inline

◆ toString()

const char* G3D::GEventType::toString ( ) const
inline

documentation generated on Wed Nov 24 2021 08:01:56 using doxygen 1.8.15