Skip to main content

bar_end

Function bar_end 

Source
pub fn bar_end(ui: &mut Ui, app: &AppHandle, menu: &MenuId) -> f32
Expand description

Draws a menu’s command items as icon buttons at the end of a bar (the shell’s menu bar draws MENU_BAR_END there), in the menu’s order: each the command’s icon (its icon_on while its checked clause holds, the button then drawn selected), its title and first key binding in the tooltip. An item whose command does not apply (its when) is left out, not greyed: a bar’s end shows what can be done. A command without an icon shows its title. Laid out from the end: call it in a right-to-left Ui. Returns the width it took.