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

Enumeration of valid key modifier codes (often used ORed together) More...

Public Types

enum  Value {
  NONE = 0x0000,
  LSHIFT = 0x0001,
  RSHIFT = 0x0002,
  LCTRL = 0x0040,
  RCTRL = 0x0080,
  LALT = 0x0100,
  RALT = 0x0200,
  LMETA = 0x0400,
  RMETA = 0x0800,
  NUM = 0x1000,
  CAPS = 0x2000,
  MODE = 0x4000,
  RESERVED = 0x8000,
  CTRL = LCTRL | RCTRL,
  SHIFT = LSHIFT | RSHIFT,
  ALT = LALT | RALT,
  META = LMETA | RMETA
}
 

Public Member Functions

 GKeyMod (const G3D::String &x)
 
 GKeyMod (char v)
 
 GKeyMod (int v)
 
 GKeyMod (const G3D::Any &a)
 
 GKeyMod ()
 
 GKeyMod (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
bool operator!= (const GKeyMod ::Value other) const
 
bool operator!= (const GKeyMod other) const
 
GKeyMod operator+ (const int x) const
 
GKeyModoperator++ ()
 
GKeyModoperator+= (const int x)
 
GKeyMod operator- (const int x) const
 
GKeyModoperator-- ()
 
GKeyModoperator-= (const int x)
 
bool operator< (const GKeyMod other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const GKeyMod other) const
 
GKeyModoperator= (const G3D::Any &a)
 
bool operator== (const GKeyMod ::Value other) const
 
bool operator== (const GKeyMod other) const
 
bool operator> (const GKeyMod other) const
 
bool operator> (const Value other) const
 
bool operator>= (const GKeyMod 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

Enumeration of valid key modifier codes (often used ORed together)

Member Enumeration Documentation

◆ Value

Enumerator
NONE 
LSHIFT 
RSHIFT 
LCTRL 
RCTRL 
LALT 
RALT 
LMETA 
RMETA 
NUM 
CAPS 
MODE 
RESERVED 
CTRL 
SHIFT 
ALT 
META 

Constructor & Destructor Documentation

◆ GKeyMod() [1/6]

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

◆ GKeyMod() [2/6]

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

◆ GKeyMod() [3/6]

G3D::GKeyMod::GKeyMod ( char  v)
inlineexplicit

◆ GKeyMod() [4/6]

G3D::GKeyMod::GKeyMod ( )
inline

◆ GKeyMod() [5/6]

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

◆ GKeyMod() [6/6]

G3D::GKeyMod::GKeyMod ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

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

◆ count()

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

◆ deserialize()

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

◆ hashCode()

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

◆ nthValue()

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

◆ operator int()

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

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator+()

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

◆ operator++()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator--()

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

◆ operator-=()

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator<=() [1/2]

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

◆ operator<=() [2/2]

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

◆ operator=()

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>() [1/2]

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

◆ operator>() [2/2]

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

◆ operator>=() [1/2]

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

◆ operator>=() [2/2]

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

◆ serialize()

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

◆ toAny()

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

◆ toString()

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

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