pub struct MacOSWindowConfig { /* private fields */ }Expand description
Mac-OS specific window configuration properties, accessible via WindowConfig::with_mac_os_config( FnMut( MacOsWindowConfig ) )
See the winit docs for further information.
Implementations§
Source§impl MacOSWindowConfig
impl MacOSWindowConfig
Sourcepub fn movable_by_window_background(self, val: bool) -> Self
pub fn movable_by_window_background(self, val: bool) -> Self
Allow the window to be moved by dragging its background.
Sourcepub fn transparent_title_bar(self, val: bool) -> Self
pub fn transparent_title_bar(self, val: bool) -> Self
Make the titlebar’s transparency (does nothing on some versions of macOS).
Sourcepub fn hide_titlebar(self, val: bool) -> Self
pub fn hide_titlebar(self, val: bool) -> Self
Hides the title bar.
Sourcepub fn hide_title(self, val: bool) -> Self
pub fn hide_title(self, val: bool) -> Self
Hides the title.
Hides the title bar buttons.
Sourcepub fn full_size_content_view(self, val: bool) -> Self
pub fn full_size_content_view(self, val: bool) -> Self
Make the window content use the full size of the window, including the title bar area.
Sourcepub fn unified_titlebar(self, val: bool) -> Self
pub fn unified_titlebar(self, val: bool) -> Self
unify the titlebar
Sourcepub fn traffic_lights_offset(self, x_y_offset: (f64, f64)) -> Self
pub fn traffic_lights_offset(self, x_y_offset: (f64, f64)) -> Self
Specify the position of the close / minimize / full screen buttons on macOS
Sourcepub fn accept_first_mouse(self, val: bool) -> Self
pub fn accept_first_mouse(self, val: bool) -> Self
Specify that this window should be sent an event for the initial click in it when it was previously inactive, rather than treating that click is only activating the window and not forwarding it to application code.
Sourcepub fn tabbing_identifier(self, val: impl Into<String>) -> Self
pub fn tabbing_identifier(self, val: impl Into<String>) -> Self
Give this window an identifier when tabbing between windows.
Sourcepub fn interpret_option_as_alt(self, val: MacOsOptionAsAlt) -> Self
pub fn interpret_option_as_alt(self, val: MacOsOptionAsAlt) -> Self
Specify how the window will treat Option keys on the Mac keyboard -
as a compose key for additional characters, or as a modifier key.
Sourcepub fn enable_shadow(self, val: bool) -> Self
pub fn enable_shadow(self, val: bool) -> Self
Set whether the window should have a shadow.
Sourcepub fn disallow_high_dpi(self, val: bool) -> Self
pub fn disallow_high_dpi(self, val: bool) -> Self
Set whether the window’s coordinate space and painting should be scaled for the display or pixel-accurate.
Trait Implementations§
Source§impl Clone for MacOSWindowConfig
impl Clone for MacOSWindowConfig
Source§fn clone(&self) -> MacOSWindowConfig
fn clone(&self) -> MacOSWindowConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MacOSWindowConfig
impl Debug for MacOSWindowConfig
Source§impl Default for MacOSWindowConfig
impl Default for MacOSWindowConfig
Source§fn default() -> MacOSWindowConfig
fn default() -> MacOSWindowConfig
Auto Trait Implementations§
impl Freeze for MacOSWindowConfig
impl RefUnwindSafe for MacOSWindowConfig
impl Send for MacOSWindowConfig
impl Sync for MacOSWindowConfig
impl Unpin for MacOSWindowConfig
impl UnwindSafe for MacOSWindowConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more