#include <Pt/Forms/InputMethod.h>
Extension for platform or custom text entry. More...
Inherited by DefaultInputMethod.
Public Member Functions | |
| InputMethod () | |
| Creates an inactive input method. | |
| virtual | ~InputMethod () |
| Destructor. | |
| bool | isVisible () const |
| Returns true when the method is showing UI. | |
| Window * | activeWindow () |
| Returns the method's active window, or 0. | |
| void | begin (Control &control) |
| Begins a session for control. More... | |
| void | finish () |
| Ends the current session. | |
| Widget * | receiver () const |
| Returns the current receiver, or 0. | |
| void | sendEvent (const KeyEvent &ev) |
| Sends ev to the current receiver. | |
Protected Member Functions | |
| virtual void | onBegin ()=0 |
| Starts the platform or custom text-entry session. | |
| virtual void | onFinish ()=0 |
| Finishes the platform or custom text-entry session. | |
| virtual Window * | onActiveWindow ()=0 |
| Returns the active text-entry window, or 0. | |
An input method begins and finishes a session for a Control, may provide an active window, and sends KeyEvent objects to its current receiver. The caller does not own the receiver. Derive from this class only to implement a text-entry interface; ordinary controls use the method installed on Application.
| void begin | ( | Control & | control | ) |
The control remains owned by its caller.