Binding Class Reference
[GUI]

Maps a combination of keys or buttons to a command. More...

#include <Binding.hpp>

List of all members.

Public Member Functions

 Binding (const Combo &combo, int command)
 Binding (const Combo &combo, int command, float arg)
 Binding (const Combo &combo, int command, GLuint *arg)
float getArgument () const
Combo & getCombo ()
int getCommand () const
bool hasArgument () const
string toString () const

Static Protected Member Functions

static void load ()

Static Protected Attributes

static map< int, string > names
static bool loaded = false

Private Attributes

bool hasArg
Combo combo
int command
unsigned int * argi
float argf

Detailed Description

Maps a combination of keys or buttons to a command.


Constructor & Destructor Documentation

Binding ( const Combo &  combo,
int  command 
)

Creates a binding for a command with no argument.

Binding ( const Combo &  combo,
int  command,
float  argument 
)

Creates a binding for a command with a floating-point argument.

Binding ( const Combo &  combo,
int  command,
GLuint *  argument 
)

Creates a binding for a command with an unsigned integer argument.


Member Function Documentation

float getArgument (  )  const

Returns the value of the binding's argument.

void load (  )  [inline, static, protected]

Initializes the formatted names of triggers.

string toString (  )  const
Returns:
String comprised of the modifier and string

The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:35 2010 for Gander by  doxygen 1.6.3