CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csKeyboardAccelerator Class Reference
[Keyboard accelerator]

A keyboard accelerator is a invisible component which monitors all events and if it sees a keyboard event which matches one of the predefined combinations it emmits a corresponding event. More...

#include <csws/cskeyacc.h>

Inheritance diagram for csKeyboardAccelerator:

csComponent List of all members.

Public Member Functions

 csKeyboardAccelerator (csComponent *iParent)
 Create keyboard accelerator object.
virtual ~csKeyboardAccelerator ()
 Destroy keyboard accelerator object.
void Event (int iKey, int iShifts, csEvent &iEv)
 Insert a key->event conversion table element.
void Command (int iKey, int iShifts, int iCommand, void *iInfo=0)
 Insert a key->command event conversion table element.
void Broadcast (int iKey, int iShifts, int iCommand, void *iInfo=0)
 Insert a key->broadcast event conversion table element.
virtual bool PostHandleEvent (iEvent &Event)
 The "core" function.

Detailed Description

A keyboard accelerator is a invisible component which monitors all events and if it sees a keyboard event which matches one of the predefined combinations it emmits a corresponding event.

Definition at line 44 of file cskeyacc.h.


Constructor & Destructor Documentation

csKeyboardAccelerator::csKeyboardAccelerator csComponent iParent  ) 
 

Create keyboard accelerator object.

virtual csKeyboardAccelerator::~csKeyboardAccelerator  )  [virtual]
 

Destroy keyboard accelerator object.


Member Function Documentation

void csKeyboardAccelerator::Broadcast int  iKey,
int  iShifts,
int  iCommand,
void *  iInfo = 0
 

Insert a key->broadcast event conversion table element.

void csKeyboardAccelerator::Command int  iKey,
int  iShifts,
int  iCommand,
void *  iInfo = 0
 

Insert a key->command event conversion table element.

void csKeyboardAccelerator::Event int  iKey,
int  iShifts,
csEvent iEv
 

Insert a key->event conversion table element.

virtual bool csKeyboardAccelerator::PostHandleEvent iEvent Event  )  [virtual]
 

The "core" function.

Reimplemented from csComponent.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1