Home · API Reference · Modules |
Public Slots | |
void | startOrientationAngleChange (Maliit::OrientationAngle newOrientationAngle) |
void | setOrientationAngle (Maliit::OrientationAngle newOrientationAngle) |
void | setArea (const QRect &newRegion) |
Signals | |
void | areaChanged (const QRect ®ion) |
void | orientationAngleAboutToChange (Maliit::OrientationAngle orientationAngle) |
void | orientationAngleChanged (Maliit::OrientationAngle orientationAngle) |
void | keyPress (const QKeyEvent &) |
void | keyRelease (const QKeyEvent &) |
void | languageChanged (const QString &language) |
Public Member Functions | |
QWidget * | widget () const |
QRect | area () const |
Maliit::OrientationAngle | orientationAngle () const |
const QString & | language () const |
Static Public Member Functions | |
static InputMethod * | instance () |
Listen to device orientation, language and raw key events.
QRect Maliit::InputMethod::area | ( | ) | const |
Get current input method area.
|
signal |
Emitted when input method area is changed.
region | new input method area |
|
static |
Get singleton instance.
Example of using the singleton InputMethod instance:
|
signal |
Can be emitted by input method to notify about raw key press event it receives.
|
signal |
Can be emitted by input method to notify about raw key release event it receives.
const QString & Maliit::InputMethod::language | ( | ) | const |
Current language of active input method.
|
signal |
Emitted on input method language change.
OrientationAngle Maliit::InputMethod::orientationAngle | ( | ) | const |
Get the orientation of application's active window.
|
signal |
This signal is emitted before the orientation angle of the application's active window is changed.
orientationAngle | New orientation angle which is about to change. |
|
signal |
This signal is emitted when the orientation angle of application's active window is changed.
orientationAngle | new orientation angle |
|
slot |
Set input method area to newRegion.
|
slot |
Set the orientation angle of application's active window to newOrientationAngle.
|
slot |
Application's active window start to rotate to newOrientationAngle.
QWidget * Maliit::InputMethod::widget | ( | ) | const |
Get the input method widget.
If the "MaliitDirect" input-context plugin is in use, the Maliit Server will be hosted inside the application process, and the input method widget be available here. The application may then reparent the widget into its widget hierarchy to make use of the input method. Handling of show and hide is still done by Maliit, and the application should follow the areaChanged() signal to track the size of the IM, just as in the server-hosted case.
If the input-context plugin in use is not "MaliitDirect", this method will return 0
Copyright © 2011 Nokia Corporation | Maliit |