Skip to main content

ActiveEventLoopExtMacOS

Trait ActiveEventLoopExtMacOS 

Source
pub trait ActiveEventLoopExtMacOS {
    // Required methods
    fn hide_application(&self);
    fn hide_other_applications(&self);
    fn set_allows_automatic_window_tabbing(&self, enabled: bool);
    fn allows_automatic_window_tabbing(&self) -> bool;
}
Expand description

Additional methods on ActiveEventLoop that are specific to macOS.

Required Methods§

Source

fn hide_application(&self)

Hide the entire application. In most applications this is typically triggered with Command-H.

Source

fn hide_other_applications(&self)

Hide the other applications. In most applications this is typically triggered with Command+Option-H.

Source

fn set_allows_automatic_window_tabbing(&self, enabled: bool)

Set whether the system can automatically organize windows into tabs.

https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing

Source

fn allows_automatic_window_tabbing(&self) -> bool

Returns whether the system can automatically organize windows into tabs.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ActiveEventLoopExtMacOS for dyn ActiveEventLoop + '_

Implementors§