Trait pilka_winit::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

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

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

Implementors