[][src]Trait winit::platform::unix::WindowBuilderExtUnix

pub trait WindowBuilderExtUnix {
    pub fn with_x11_visual<T>(self, visual_infos: *const T) -> Self;
pub fn with_x11_screen(self, screen_id: i32) -> Self;
pub fn with_class(self, class: String, instance: String) -> Self;
pub fn with_override_redirect(self, override_redirect: bool) -> Self;
pub fn with_x11_window_type(self, x11_window_type: Vec<XWindowType>) -> Self;
pub fn with_gtk_theme_variant(self, variant: String) -> Self;
pub fn with_resize_increments<S: Into<Size>>(self, increments: S) -> Self;
pub fn with_base_size<S: Into<Size>>(self, base_size: S) -> Self;
pub fn with_app_id(self, app_id: String) -> Self; }

Additional methods on WindowBuilder that are specific to Unix.

Required methods

pub fn with_x11_visual<T>(self, visual_infos: *const T) -> Self[src]

pub fn with_x11_screen(self, screen_id: i32) -> Self[src]

pub fn with_class(self, class: String, instance: String) -> Self[src]

Build window with WM_CLASS hint; defaults to the name of the binary. Only relevant on X11.

pub fn with_override_redirect(self, override_redirect: bool) -> Self[src]

Build window with override-redirect flag; defaults to false. Only relevant on X11.

pub fn with_x11_window_type(self, x11_window_type: Vec<XWindowType>) -> Self[src]

Build window with _NET_WM_WINDOW_TYPE hints; defaults to Normal. Only relevant on X11.

pub fn with_gtk_theme_variant(self, variant: String) -> Self[src]

Build window with _GTK_THEME_VARIANT hint set to the specified value. Currently only relevant on X11.

pub fn with_resize_increments<S: Into<Size>>(self, increments: S) -> Self[src]

Build window with resize increment hint. Only implemented on X11.

pub fn with_base_size<S: Into<Size>>(self, base_size: S) -> Self[src]

Build window with base size hint. Only implemented on X11.

pub fn with_app_id(self, app_id: String) -> Self[src]

Build window with a given application ID. It should match the .desktop file distributed with your program. Only relevant on Wayland.

For details about application ID conventions, see the Desktop Entry Spec

Loading content...

Implementors

impl WindowBuilderExtUnix for WindowBuilder[src]

Loading content...