Skip to main content

act

Function act 

Source
pub fn act(
    ui: &mut Ui,
    act: &Act<'_>,
    palette: &Palette,
    _style: &WidgetStyle,
) -> Response
Expand description

A control.

The key the description named is drawn beside the label where there is one, which is Act::key finally being read by a second renderer: it was written for a terminal, and a desktop app has keys too.

A disabled control is drawn and does not answer, through State::suppresses_interaction rather than a second reading of what disabled means, and it takes Palette::content_muted because that is the intent State::Disabled resolves to. egui is told through add_enabled, so its own focus walk skips it: a control that is drawn and not reachable is exactly what disabled means on every host, and here the host already has the machinery.