pub trait WindowBuilderExtMacOS: WindowBuilderPrivate {
// Required methods
fn with_movable_by_window_background(
self,
movable_by_window_background: bool,
) -> WindowBuilder;
fn with_titlebar_transparent(
self,
titlebar_transparent: bool,
) -> WindowBuilder;
fn with_title_hidden(self, title_hidden: bool) -> WindowBuilder;
fn with_titlebar_hidden(self, titlebar_hidden: bool) -> WindowBuilder;
fn with_titlebar_buttons_hidden(
self,
titlebar_buttons_hidden: bool,
) -> WindowBuilder;
fn with_fullsize_content_view(
self,
fullsize_content_view: bool,
) -> WindowBuilder;
fn with_disallow_hidpi(self, disallow_hidpi: bool) -> WindowBuilder;
fn with_has_shadow(self, has_shadow: bool) -> WindowBuilder;
fn with_accepts_first_mouse(
self,
accepts_first_mouse: bool,
) -> WindowBuilder;
fn with_option_as_alt(self, option_as_alt: OptionAsAlt) -> WindowBuilder;
}Expand description
Additional methods on WindowBuilder that are specific to MacOS.
Note: Properties dealing with the titlebar will be overwritten by the WindowBuilder::with_decorations method:
with_titlebar_transparentwith_title_hiddenwith_titlebar_hiddenwith_titlebar_buttons_hiddenwith_fullsize_content_view
Required Methods§
Sourcefn with_movable_by_window_background(
self,
movable_by_window_background: bool,
) -> WindowBuilder
fn with_movable_by_window_background( self, movable_by_window_background: bool, ) -> WindowBuilder
Enables click-and-drag behavior for the entire window, not just the titlebar.
Sourcefn with_titlebar_transparent(self, titlebar_transparent: bool) -> WindowBuilder
fn with_titlebar_transparent(self, titlebar_transparent: bool) -> WindowBuilder
Makes the titlebar transparent and allows the content to appear behind it.
Hides the window title.
Hides the window titlebar.
Hides the window titlebar buttons.
Sourcefn with_fullsize_content_view(
self,
fullsize_content_view: bool,
) -> WindowBuilder
fn with_fullsize_content_view( self, fullsize_content_view: bool, ) -> WindowBuilder
Makes the window content appear behind the titlebar.
fn with_disallow_hidpi(self, disallow_hidpi: bool) -> WindowBuilder
fn with_has_shadow(self, has_shadow: bool) -> WindowBuilder
Sourcefn with_accepts_first_mouse(self, accepts_first_mouse: bool) -> WindowBuilder
fn with_accepts_first_mouse(self, accepts_first_mouse: bool) -> WindowBuilder
Window accepts click-through mouse events.
Sourcefn with_option_as_alt(self, option_as_alt: OptionAsAlt) -> WindowBuilder
fn with_option_as_alt(self, option_as_alt: OptionAsAlt) -> WindowBuilder
Set whether the OptionAsAlt key is interpreted as the Alt modifier.
See WindowExtMacOS::set_option_as_alt for details on what this means if set.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.