pub struct LinuxWindowOptions {
pub x11_visual: Option<*const ()>,
pub x11_screen: Option<i32>,
pub x11_wm_classes: Vec<(String, String)>,
pub x11_override_redirect: bool,
pub x11_window_types: Vec<XWindowType>,
pub x11_gtk_theme_variant: Option<String>,
pub x11_resize_increments: Option<LogicalSize>,
pub x11_base_size: Option<LogicalSize>,
pub wayland_app_id: Option<String>,
pub request_user_attention: bool,
pub wayland_theme: Option<WaylandTheme>,
pub window_icon: Option<WindowIcon>,
}
Fields§
§x11_visual: Option<*const ()>
(Unimplemented) - Can only be set at window creation, can’t be changed in callbacks.
x11_screen: Option<i32>
(Unimplemented) - Can only be set at window creation, can’t be changed in callbacks.
x11_wm_classes: Vec<(String, String)>
Build window with WM_CLASS
hint; defaults to the name of the binary. Only relevant on X11.
Can only be set at window creation, can’t be changed in callbacks.
x11_override_redirect: bool
Build window with override-redirect flag; defaults to false. Only relevant on X11. Can only be set at window creation, can’t be changed in callbacks.
x11_window_types: Vec<XWindowType>
Build window with _NET_WM_WINDOW_TYPE
hint; defaults to Normal
. Only relevant on X11.
Can only be set at window creation, can’t be changed in callbacks.
x11_gtk_theme_variant: Option<String>
Build window with _GTK_THEME_VARIANT
hint set to the specified value. Currently only relevant on X11.
Can only be set at window creation, can’t be changed in callbacks.
x11_resize_increments: Option<LogicalSize>
Build window with resize increment hint. Only implemented on X11. Can only be set at window creation, can’t be changed in callbacks.
x11_base_size: Option<LogicalSize>
Build window with base size hint. Only implemented on X11. Can only be set at window creation, can’t be changed in callbacks.
wayland_app_id: Option<String>
Build window with a given application ID. It should match the .desktop
file distributed with
your program. Only relevant on Wayland.
Can only be set at window creation, can’t be changed in callbacks.
For details about application ID conventions, see the Desktop Entry Spec
request_user_attention: bool
§wayland_theme: Option<WaylandTheme>
§window_icon: Option<WindowIcon>
Trait Implementations§
Source§impl Clone for LinuxWindowOptions
impl Clone for LinuxWindowOptions
Source§fn clone(&self) -> LinuxWindowOptions
fn clone(&self) -> LinuxWindowOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LinuxWindowOptions
impl Debug for LinuxWindowOptions
Source§impl Default for LinuxWindowOptions
impl Default for LinuxWindowOptions
Source§fn default() -> LinuxWindowOptions
fn default() -> LinuxWindowOptions
Source§impl PartialEq for LinuxWindowOptions
impl PartialEq for LinuxWindowOptions
Source§impl PartialOrd for LinuxWindowOptions
impl PartialOrd for LinuxWindowOptions
impl StructuralPartialEq for LinuxWindowOptions
Auto Trait Implementations§
impl Freeze for LinuxWindowOptions
impl RefUnwindSafe for LinuxWindowOptions
impl !Send for LinuxWindowOptions
impl !Sync for LinuxWindowOptions
impl Unpin for LinuxWindowOptions
impl UnwindSafe for LinuxWindowOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)