Trait winit::platform::macos::EventLoopExtMacOS[][src]

pub trait EventLoopExtMacOS {
    fn set_activation_policy(&mut self, activation_policy: ActivationPolicy);
fn enable_default_menu_creation(&mut self, enable: bool); }

Required methods

fn set_activation_policy(&mut self, activation_policy: ActivationPolicy)[src]

Expand description

Sets the activation policy for the application. It is set to NSApplicationActivationPolicyRegular by default.

This function only takes effect if it’s called before calling run or run_return

fn enable_default_menu_creation(&mut self, enable: bool)[src]

Expand description

Used to prevent a default menubar menu from getting created

The default menu creation is enabled by default.

This function only takes effect if it’s called before calling run or run_return

Loading content...

Implementors

impl<T> EventLoopExtMacOS for EventLoop<T>[src]

fn set_activation_policy(&mut self, activation_policy: ActivationPolicy)[src]

fn enable_default_menu_creation(&mut self, enable: bool)[src]

Loading content...