rat_widget::button

Function handle_events

Source
pub fn handle_events(
    state: &mut ButtonState,
    focus: bool,
    event: &Event,
) -> ButtonOutcome
Expand description

Handle all events. Text events are only processed if focus is true. Mouse events are processed if they are in range.