pub trait ApplicationExt {
    fn hide(&self);
    fn hide_others(&self);
    fn set_menu(&self, menu: Menu);
}
Expand description

macOS specific extensions to Application

Required Methods§

Hide the application this window belongs to. (cmd+H)

Hide all other applications. (cmd+opt+H)

Sets the global application menu, on platforms where there is one.

On platforms with no global application menu, this has no effect.

Implementors§