docs
Loading...
Searching...
No Matches
ULEditableState

#include <Ultralight/CAPI/CAPI_Editor.h>

Overview

The conditions that decide whether an input method should be active.

Reported through the callback you set with ulViewSetChangeEditableStateCallback(). An input method or on-screen keyboard should be active when both view_has_focus and is_mutable are true.

Note
This is reported when focus moves, not when the focused element moves or resizes. To follow the caret, use ulEditorGetCaretBounds().

Public Attributes

ULEditableType type
 The kind of element that holds keyboard focus.
bool is_mutable
 Whether or not the focused element accepts typed text (false for a read-only or disabled text control, and always false when type is kEditableType_None or kEditableType_Other).
bool view_has_focus
 Whether or not the View itself has input focus (see ulViewFocus() and ulViewUnfocus()).
ULInputMode input_mode
 The focused element's inputmode hint.
ULEnterKeyHint enter_key_hint
 The focused element's enterkeyhint.
ULRect bounds
 The focused element's bounds in viewport CSS pixels (the same space as ulViewFireMouseEvent()).

Member Data Documentation

◆ bounds

ULRect bounds

The focused element's bounds in viewport CSS pixels (the same space as ulViewFireMouseEvent()).

All-zero when no element has focus.

◆ enter_key_hint

ULEnterKeyHint enter_key_hint

The focused element's enterkeyhint.

◆ input_mode

ULInputMode input_mode

The focused element's inputmode hint.

◆ is_mutable

bool is_mutable

Whether or not the focused element accepts typed text (false for a read-only or disabled text control, and always false when type is kEditableType_None or kEditableType_Other).

◆ type

The kind of element that holds keyboard focus.

◆ view_has_focus

bool view_has_focus

Whether or not the View itself has input focus (see ulViewFocus() and ulViewUnfocus()).


The documentation for this struct was generated from the following file: