class TEikVirtualCursor |
Provides support for the virtual cursor's state within an application.
There is one instance of this object per CEikonEnv.
Public Member Functions | |
---|---|
TEikVirtualCursor() | |
IMPORT_C TState | CursorState(CCoeEnv &) |
void | HandleAppToForeground(CCoeEnv &) |
IMPORT_C void | SetCursorStateL(TState, CCoeEnv &) |
Private Member Functions | |
---|---|
TEikVirtualCursor(const TEikVirtualCursor &) | |
void | SwitchOffEmulationAndBitmap(CCoeEnv &) |
void | SwitchOnEmulationAndBitmap(CCoeEnv &) |
Public Member Enumerations | |
---|---|
enum | TState { EOff = 0, EOn, ESuspended } |
Private Attributes | |
---|---|
TState | iState |
TEikVirtualCursor | ( | const TEikVirtualCursor & | ) | [private, inline] |
Constructor.
Sets the cursor's state to ESuspended so that the call to switch off the virtual cursor will succeed when the application starts. Required due to the efficient implementation of SetCursorState().
const TEikVirtualCursor & |
void | SwitchOffEmulationAndBitmap | ( | CCoeEnv & | aEnv | ) | [private] |
CCoeEnv & aEnv |
void | SwitchOnEmulationAndBitmap | ( | CCoeEnv & | aEnv | ) | [private] |
CCoeEnv & aEnv |
Specifies the virtual cursor's state.
The state may be on, off or suspended. The suspended state is for use by applications that wish to temporarily disable the cursor, but do not want to switch it off completely. For example, an editor control which when focused needs to capture arrow keys would disable the virtual cursor when it gains focus, and enable it when unfocused.
EOff = 0 |
Sets the virtual cursor off. |
EOn |
Sets the virtual cursor on. |
ESuspended |
Sets the virtual cursor as suspended. |