Expand description
A text input widget from iced widgets plus some added details.
Re-exports§
Modules§
Structs§
- Appearance
- The appearance of a text input.
- State
- The state of a
TextInput. - Text
Input - A field that can be filled with text.
- Text
Input String - A string which can be sent to the clipboard or drag-and-dropped.
Traits§
- Style
Sheet - A set of rules that dictate the style of a text input.
Functions§
- draw
- Draws the
TextInputwith the givenRenderer, overriding itsValueif provided. - editable_
input - A text label which can transform into a text input on activation.
- focus
- Produces a
Taskthat focuses theTextInputwith the givenId. - inline_
input - Creates a new inline
TextInput. - layout
- Computes the layout of a
TextInput. - mouse_
interaction - Computes the current
mouse::Interactionof theTextInput. - move_
cursor_ to - Produces a
Taskthat moves the cursor of theTextInputwith the givenIdto the provided position. - move_
cursor_ to_ end - Produces a
Taskthat moves the cursor of theTextInputwith the givenIdto the end. - move_
cursor_ to_ front - Produces a
Taskthat moves the cursor of theTextInputwith the givenIdto the front. - search_
input - Creates a new search
TextInput. - secure_
input - Creates a new secure
TextInput. - select_
all - Produces a
Taskthat selects all the content of theTextInputwith the givenId. - text_
input - Creates a new
TextInput. - update
- Processes an
Eventand updates theStateof aTextInputaccordingly.