Skip to main content

is_input

Function is_input 

Source
pub fn is_input(role: Role) -> bool
Available on crate feature egui only.
Expand description

Is this a role a user reaches by name: something to click, toggle, pick from, drag, or type into?

A widget with such a role and no accessible name cannot be found by a screen reader, nor by a test that looks it up by label.

The match is exhaustive, so a new Role has to be sorted in here.