Skip to main content

AttachedMenu

Trait AttachedMenu 

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

A tray icon’s menu the system opens by itself.

Required Methods§

Source

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

Replaces the menu whole; [] takes it away. A choice reaches the app as TrayIconEvent::MenuSelected.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§