Skip to main content

menu_model

Function menu_model 

Source
pub fn menu_model(has_native_app_menu: bool) -> Vec<MenuSection>
Expand description

Build the menu model.

has_native_app_menu is true when the platform provides a separate application menu that already carries Quit and Preferences (macOS). When it is false those two commands are folded into File and Edit, which is what Windows and Linux expect — and what the in-app egui menu always needs, since it is the only menu wherever it is drawn.