Function cosmic::widget::text_input::update

source ยท
pub fn update<'a, Message>(
    event: Event,
    text_layout: Layout<'_>,
    trailing_icon_layout: Option<Layout<'_>>,
    cursor: Cursor,
    clipboard: &mut dyn Clipboard,
    shell: &mut Shell<'_, Message>,
    value: &mut Value,
    size: f32,
    font: <Renderer as Renderer>::Font,
    is_secure: bool,
    is_editable: bool,
    on_input: Option<&dyn Fn(String) -> Message>,
    on_paste: Option<&dyn Fn(String) -> Message>,
    on_submit: &Option<Message>,
    on_toggle_edit: Option<&dyn Fn(bool) -> Message>,
    state: impl FnOnce() -> &'a mut State,
    on_start_dnd_source: Option<&dyn Fn(State) -> Message>,
    dnd_icon: bool,
    on_dnd_command_produced: Option<&dyn Fn(DnDCommand) -> Message>,
    surface_ids: Option<(Id, Id)>,
    line_height: LineHeight,
    layout: Layout<'_>,
) -> Status
where Message: Clone,
Expand description

Processes an Event and updates the State of a TextInput accordingly.