pub struct MacOSPlatformOptions {
pub show_in_dock: bool,
pub disable_default_application_menu_items: bool,
pub disable_native_menus: bool,
pub disable_set_process_name: bool,
pub disable_ferro_app_delegate: bool,
}Expand description
OSX front-end options.
Fields§
§show_in_dock: boolDetermines whether to show your application in the dock when it runs. The default value is true.
By default, items like Quit, Hide are added to the OSX Application Menu. You can prevent those items from being added with this property. The default value is false.
Gets or sets a value indicating whether the native macOS menu bar will be enabled for the application.
disable_set_process_name: boolGets or sets a value indicating whether the native macOS should set
[NSProcessInfo setProcessName] in runtime.
disable_ferro_app_delegate: boolGets or sets a value indicating whether the backend can install its own AppDelegate. Disabling this can be useful in some scenarios like when running as a plugin inside an existing macOS application.
Trait Implementations§
Source§impl Clone for MacOSPlatformOptions
impl Clone for MacOSPlatformOptions
Source§impl Debug for MacOSPlatformOptions
impl Debug for MacOSPlatformOptions
Source§impl Default for MacOSPlatformOptions
impl Default for MacOSPlatformOptions
impl Eq for MacOSPlatformOptions
Source§impl PartialEq for MacOSPlatformOptions
impl PartialEq for MacOSPlatformOptions
impl StructuralPartialEq for MacOSPlatformOptions
Auto Trait Implementations§
impl Freeze for MacOSPlatformOptions
impl RefUnwindSafe for MacOSPlatformOptions
impl Send for MacOSPlatformOptions
impl Sync for MacOSPlatformOptions
impl Unpin for MacOSPlatformOptions
impl UnsafeUnpin for MacOSPlatformOptions
impl UnwindSafe for MacOSPlatformOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more