Module text_input

Source
Expand description

A text input widget from iced widgets plus some added details.

Re-exports§

pub use crate::theme::TextInput as Style;
pub use super::cursor::Cursor;
pub use super::value::Value;

Modules§

cursor
Track the cursor of a text input.
editor
value

Structs§

Appearance
The appearance of a text input.
State
The state of a TextInput.
TextInput
A field that can be filled with text.
TextInputString
A string which can be sent to the clipboard or drag-and-dropped.

Traits§

StyleSheet
A set of rules that dictate the style of a text input.

Functions§

draw
Draws the TextInput with the given Renderer, overriding its Value if provided.
editable_input
A text label which can transform into a text input on activation.
focus
Produces a Task that focuses the TextInput with the given Id.
inline_input
Creates a new inline TextInput.
layout
Computes the layout of a TextInput.
mouse_interaction
Computes the current mouse::Interaction of the TextInput.
move_cursor_to
Produces a Task that moves the cursor of the TextInput with the given Id to the provided position.
move_cursor_to_end
Produces a Task that moves the cursor of the TextInput with the given Id to the end.
move_cursor_to_front
Produces a Task that moves the cursor of the TextInput with the given Id to the front.
search_input
Creates a new search TextInput.
secure_input
Creates a new secure TextInput.
select_all
Produces a Task that selects all the content of the TextInput with the given Id.
text_input
Creates a new TextInput.
update
Processes an Event and updates the State of a TextInput accordingly.