|
MoSync 3.3
|
A C++ wrapper for the text input system. More...
#include <MAUtil/CharInput.h>
Public Types | |
| enum | CharMode { LOWERCASE = 0, UPPERCASE = 1, NUMBERS = 2 } |
Public Member Functions | |
| bool | isCharInputListener (CharInputListener *listener) |
| void | addCharInputListener (CharInputListener *listener) |
| void | removeCharInputListener (CharInputListener *listener) |
| virtual void | keyPressEvent (int keyCode, int nativeCode) |
| virtual void | keyReleaseEvent (int keyCode, int nativeCode) |
| virtual void | charEvent (uint character) |
| void | runTimerEvent () |
| void | forceDeployment () |
| void | setMode (CharMode charMode) |
| CharMode | getMode () const |
| void | setQwerty (bool on) |
| bool | getQwerty () const |
| virtual void | keyPressEvent (int keyCode) |
| virtual void | keyReleaseEvent (int keyCode) |
Static Public Member Functions | |
| static CharInput & | getCharInput () |
A C++ wrapper for the text input system.
This can only be used together with the Moblet system as it depends on functionality in Environment (key input and timers).
This class is a singleton. Retrieve its instance with getCharInput().
| bool MAUtil::CharInput::isCharInputListener | ( | CharInputListener * | listener | ) |
is a CharInputListener?
| void MAUtil::CharInput::addCharInputListener | ( | CharInputListener * | listener | ) |
Add a CharInputListener to the system.
| void MAUtil::CharInput::removeCharInputListener | ( | CharInputListener * | listener | ) |
Remove a CharInputListener from the system.
| virtual void MAUtil::CharInput::keyPressEvent | ( | int | keyCode, |
| int | nativeCode | ||
| ) | [virtual] |
Inherited function from class Keylistener, updates the system.
Reimplemented from MAUtil::KeyListener.
| virtual void MAUtil::CharInput::keyReleaseEvent | ( | int | keyCode, |
| int | nativeCode | ||
| ) | [virtual] |
Inherited function from class Keylistener, updates the system.
Reimplemented from MAUtil::KeyListener.
| virtual void MAUtil::CharInput::charEvent | ( | uint | character | ) | [virtual] |
Inherited function from class Keylistener, updates the system.
Reimplemented from MAUtil::KeyListener.
| void MAUtil::CharInput::runTimerEvent | ( | ) | [virtual] |
Inherited function from class TimerListener, updates the system.
Implements MAUtil::TimerListener.
| static CharInput& MAUtil::CharInput::getCharInput | ( | ) | [static] |
Get the charinput singleton. (only one instance can exist).
| void MAUtil::CharInput::forceDeployment | ( | ) |
Force deployment of the currently selected character.
| void MAUtil::CharInput::setMode | ( | CharMode | charMode | ) |
Set the character input mode.
| CharMode MAUtil::CharInput::getMode | ( | ) | const |
Get the character input mode.
| void MAUtil::CharInput::setQwerty | ( | bool | on | ) |
In standard mode, only the 0-9, # and * keys are used. This is suitable for devices with such keypads.
In qwerty mode, all keys are used. This is suitable for devices with qwerty keyboards.
| bool MAUtil::CharInput::getQwerty | ( | ) | const |
Get the qwerty mode.
| virtual void MAUtil::KeyListener::keyPressEvent | ( | int | keyCode | ) | [inline, virtual, inherited] |
| virtual void MAUtil::KeyListener::keyReleaseEvent | ( | int | keyCode | ) | [inline, virtual, inherited] |