|
Ultralight C++ API 2.0.0
|
#include <Ultralight/Editor.h>
The conditions that decide whether an input method should be active.
Reported through EditorListener::OnChangeEditableState(). An input method or on-screen keyboard should be active when both view_has_focus and is_mutable are true.
Public Attributes | |
| EditableType | type = EditableType::None |
| The kind of element that holds keyboard focus. | |
| bool | is_mutable = false |
| Whether or not the focused element accepts typed text (false for a read-only or disabled text control, and always false when type is None or Other). | |
| bool | view_has_focus = false |
| Whether or not the View itself has input focus (see View::Focus() and View::Unfocus()). | |
| InputMode | input_mode = InputMode::Unspecified |
| The focused element's inputmode hint. | |
| EnterKeyHint | enter_key_hint = EnterKeyHint::Unspecified |
| The focused element's enterkeyhint. | |
| Rect | bounds = { 0.0f, 0.0f, 0.0f, 0.0f } |
| The focused element's bounds in viewport CSS pixels (the same space as View::FireMouseEvent()). | |
| Rect bounds = { 0.0f, 0.0f, 0.0f, 0.0f } |
The focused element's bounds in viewport CSS pixels (the same space as View::FireMouseEvent()).
All-zero when no element has focus.
| EnterKeyHint enter_key_hint = EnterKeyHint::Unspecified |
The focused element's enterkeyhint.
| InputMode input_mode = InputMode::Unspecified |
The focused element's inputmode hint.
| bool is_mutable = false |
Whether or not the focused element accepts typed text (false for a read-only or disabled text control, and always false when type is None or Other).
| EditableType type = EditableType::None |
The kind of element that holds keyboard focus.
| bool view_has_focus = false |
Whether or not the View itself has input focus (see View::Focus() and View::Unfocus()).