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

General keyboard/mouse state definitions used by GEvent. More...

Public Types

enum  Value {
  RELEASED = 0,
  PRESSED = 1
}
 

Public Member Functions

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

General keyboard/mouse state definitions used by GEvent.

Member Enumeration Documentation

◆ Value

Enumerator
RELEASED 
PRESSED 

Constructor & Destructor Documentation

◆ GButtonState() [1/6]

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

◆ GButtonState() [2/6]

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

◆ GButtonState() [3/6]

G3D::GButtonState::GButtonState ( char  v)
inlineexplicit

◆ GButtonState() [4/6]

G3D::GButtonState::GButtonState ( )
inline

◆ GButtonState() [5/6]

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

◆ GButtonState() [6/6]

G3D::GButtonState::GButtonState ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

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

◆ count()

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

◆ deserialize()

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

◆ hashCode()

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

◆ nthValue()

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

◆ operator int()

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

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator+()

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

◆ operator++()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator--()

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

◆ operator-=()

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator<=() [1/2]

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

◆ operator<=() [2/2]

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

◆ operator=()

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>() [1/2]

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

◆ operator>() [2/2]

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

◆ operator>=() [1/2]

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

◆ operator>=() [2/2]

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

◆ serialize()

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

◆ toAny()

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

◆ toString()

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

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