pub fn bar_within(ui: &mut Ui, app: &AppHandle, menu: &MenuId, reserve: f32)Expand description
Draws a menu as a bar of menu buttons, keeping reserve points free
at its end (what the bar shows after its menus).
The menus that fit stay in the bar, from the start; the others become
submenus of a “…” entry (Icon::More), with their titles and their
when clauses. When no menu fits besides it, the whole menu is one
entry (Icon::Menu). Each label is measured once, again only when
the language, the kit or the scale changes.
Each menu has an access key: the first letter of its label not taken
by a menu before it. Alt and that letter open the menu, in the bar or
inside “…”, and the letter is underlined while Alt is held; F10 opens
the first menu, as on Windows and in Qt and GTK. A key binding on the
same keys wins. The arrows then go through the menu. Where each menu went,
and its access key, is bar_layout (the menu_bar debug
collector).