Function cosmic::iced::widget::button::update

source ยท
pub fn update<'a, Message>(
    _id: Id,
    event: Event,
    layout: Layout<'_>,
    cursor: Cursor,
    shell: &mut Shell<'_, Message>,
    on_press: &Option<Message>,
    state: impl FnOnce() -> &'a mut State,
) -> Status
where Message: Clone,
Expand description

Processes the given Event and updates the State of a Button accordingly.