UI_HotkeyHelper Class Reference

#include <UI_HotkeyHelper.h>

List of all members.

Classes

struct  Entry

Public Member Functions

 UI_HotkeyHelper (UI_Object *client)
 Default constructor.
 UI_HotkeyHelper (UI_Object *client, const Entry *hotkey_entries)
 Construct using an array of hotkey entries terminated by NULL mySymbol.
virtual ~UI_HotkeyHelper ()
 Destructor.
void addHotkeys (const Entry *hotkey_entries)
 Adds an array of hotkey entries terminated by NULL mySymbol.
void addHotkey (const Entry &entry)
 Add a single hotkey entry.
void removeHotkey (const char *symbol)
 Remove a hotkey entry.
bool processHotkey (UI_Event *event)
bool willProcessHotkey (UI_Event *event)
 Will we handle the given UI hotkey symbol?


Detailed Description

The UI_HotkeyHelper class allows one to maintain a table of hotkeys and their associated handler functions (of type UI_HotkeyMethod) so that we can easily perform functions like dispatching hotkey handlers as well as testing to see if a hotkey is going to be handled without invoking the handler.

Definition at line 38 of file UI_HotkeyHelper.h.


Constructor & Destructor Documentation

UI_HotkeyHelper::UI_HotkeyHelper ( UI_Object client  ) 

Default constructor.

UI_HotkeyHelper::UI_HotkeyHelper ( UI_Object client,
const Entry hotkey_entries 
)

Construct using an array of hotkey entries terminated by NULL mySymbol.

virtual UI_HotkeyHelper::~UI_HotkeyHelper (  )  [virtual]

Destructor.


Member Function Documentation

void UI_HotkeyHelper::addHotkey ( const Entry entry  ) 

Add a single hotkey entry.

void UI_HotkeyHelper::addHotkeys ( const Entry hotkey_entries  ) 

Adds an array of hotkey entries terminated by NULL mySymbol.

bool UI_HotkeyHelper::processHotkey ( UI_Event event  ) 

Invoke the handler for the given UI hotkey event. Returns true if consumed, false otherwise.

void UI_HotkeyHelper::removeHotkey ( const char *  symbol  ) 

Remove a hotkey entry.

bool UI_HotkeyHelper::willProcessHotkey ( UI_Event event  ) 

Will we handle the given UI hotkey symbol?


The documentation for this class was generated from the following file:

Generated on Fri May 25 00:10:45 2012 for HDK by  doxygen 1.5.9