Skip to main content

DockMenu

Trait DockMenu 

Source
pub trait DockMenu {
    // Required method
    fn set_menu(&self, menu: &[MenuEntry]);
}
Expand description

The menu of the app’s Dock icon: macOS’s.

Required Methods§

Source

fn set_menu(&self, menu: &[MenuEntry])

Replaces the menu whole; the system shows it above its own items. A choice reaches the app as EmbedderClient::dock_menu_selected(id).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§