Expand description
Single line text input widget Single-line text input widget with cursor, placeholder, and two-way data binding.
The main entry point is [TextInput], which holds the editable state
([TextInputState]) together with per-platform default styles. Call
[TextInput::dom()] to obtain a renderable [Dom] node.
For higher-level text-input management (IME, clipboard, undo) see
layout/src/managers/text_input.rs.
Structs§
- OnText
Input Return - Return value from a text-input callback indicating whether the framework should update and whether the input was valid.
- Text
Input - Single-line text input widget with platform-native styling.
- Text
Input OnFocus Lost - Text
Input OnFocus Lost Callback - Text
Input OnText Input - Text
Input OnText Input Callback - Text
Input OnVirtual KeyDown - Text
Input OnVirtual KeyDown Callback - Text
Input Selection Range - Text
Input State - Editable state of a text input (text buffer, cursor position, selection).
- Text
Input State Wrapper TextInputStatetogether with optional user callbacks and cursor animation state.
Enums§
- Option
Text Input OnFocus Lost - Option
Text Input OnText Input - Option
Text Input OnVirtual KeyDown - Option
Text Input Selection - Text
Input Selection - Text
Input Valid - Whether the text input accepted or rejected the most recent edit.
Statics§
- TEXT_
INPUT_ ON_ FOCUS_ LOST_ INVOKER - Process-global slot for this callback kind’s host-side invoker.
- TEXT_
INPUT_ ON_ TEXT_ INPUT_ INVOKER - Process-global slot for this callback kind’s host-side invoker.
- TEXT_
INPUT_ ON_ VIRTUAL_ KEY_ DOWN_ INVOKER - Process-global slot for this callback kind’s host-side invoker.
Functions§
- AzApp_
setText Input OnFocus Lost Callback Invoker - Register the host-side invoker for this callback kind.
- AzApp_
setText Input OnText Input Callback Invoker - Register the host-side invoker for this callback kind.
- AzApp_
setText Input OnVirtual KeyDown Callback Invoker - Register the host-side invoker for this callback kind.
- AzText
Input OnFocus Lost Callback_ create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle. - AzText
Input OnText Input Callback_ create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle. - AzText
Input OnVirtual KeyDown Callback_ create From Host Handle - C-ABI export wrapping
<Wrapper>::create_from_host_handle.
Type Aliases§
- AzText
Input OnFocus Lost Callback Invoker - Pointer-arg variant of this callback kind’s typedef.
- AzText
Input OnText Input Callback Invoker - Pointer-arg variant of this callback kind’s typedef.
- AzText
Input OnVirtual KeyDown Callback Invoker - Pointer-arg variant of this callback kind’s typedef.
- Text
Input OnFocus Lost Callback Type - Text
Input OnText Input Callback Type - Text
Input OnVirtual KeyDown Callback Type