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

pub trait WindowBuilderExtMacOS {
    fn with_activation_policy(
        self,
        activation_policy: ActivationPolicy
    ) -> WindowBuilder;
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_resize_increments(self, increments: LogicalSize) -> WindowBuilder;
fn with_disallow_hidpi(self, disallow_hidpi: bool) -> WindowBuilder; }

Additional methods on WindowBuilder that are specific to MacOS.

Note: Properties dealing with the titlebar will be overwritten by the with_decorations method on the base WindowBuilder:

  • with_titlebar_transparent
  • with_title_hidden
  • with_titlebar_hidden
  • with_titlebar_buttons_hidden
  • with_fullsize_content_view

Required methods

fn with_activation_policy(
    self,
    activation_policy: ActivationPolicy
) -> WindowBuilder

Sets the activation policy for the window being built.

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.

fn with_titlebar_transparent(self, titlebar_transparent: bool) -> WindowBuilder

Makes the titlebar transparent and allows the content to appear behind it.

fn with_title_hidden(self, title_hidden: bool) -> WindowBuilder

Hides the window title.

fn with_titlebar_hidden(self, titlebar_hidden: bool) -> WindowBuilder

Hides the window titlebar.

fn with_titlebar_buttons_hidden(
    self,
    titlebar_buttons_hidden: bool
) -> WindowBuilder

Hides the window titlebar buttons.

fn with_fullsize_content_view(
    self,
    fullsize_content_view: bool
) -> WindowBuilder

Makes the window content appear behind the titlebar.

fn with_resize_increments(self, increments: LogicalSize) -> WindowBuilder

Build window with resizeIncrements property. Values must not be 0.

fn with_disallow_hidpi(self, disallow_hidpi: bool) -> WindowBuilder

Loading content...

Implementors

impl WindowBuilderExtMacOS for WindowBuilder[src]

Loading content...