Trait WindowBuilderExt

Source
pub trait WindowBuilderExt {
    // Required methods
    fn with_x11_visual<T>(self, visual_infos: *const T) -> WindowBuilder;
    fn with_x11_screen(self, screen_id: i32) -> WindowBuilder;
    fn with_class(self, class: String, instance: String) -> WindowBuilder;
    fn with_override_redirect(self, override_redirect: bool) -> WindowBuilder;
    fn with_x11_window_type(self, x11_window_type: WindowType) -> WindowBuilder;
    fn with_resize_increments(self, increments: LogicalSize) -> WindowBuilder;
    fn with_base_size(self, base_size: LogicalSize) -> WindowBuilder;
}
Expand description

Additional methods on WindowBuilder that are specific to Unix.

Required Methods§

Source

fn with_x11_visual<T>(self, visual_infos: *const T) -> WindowBuilder

Source

fn with_x11_screen(self, screen_id: i32) -> WindowBuilder

Source

fn with_class(self, class: String, instance: String) -> WindowBuilder

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

Source

fn with_override_redirect(self, override_redirect: bool) -> WindowBuilder

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

Source

fn with_x11_window_type(self, x11_window_type: WindowType) -> WindowBuilder

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

Source

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

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

Source

fn with_base_size(self, base_size: LogicalSize) -> WindowBuilder

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

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.

Implementors§