Skip to main content

menu_role

Function menu_role 

Source
pub fn menu_role(role: MenuRole) -> MenuEntry
Expand description

A standard/system command (MenuRole::Copy, MenuRole::Quit, …) rendered with the platform’s NATIVE item — correct label, default shortcut, focus-targeting, and automatic enable/disable — so default menu items (Edit ▸ Cut/Copy/Paste, the app’s Quit/About) work without re-implementation.

Day API ↩ Guides· daybrite.dev