pub struct WindowConfig {Show 13 fields
pub title: String,
pub width: u32,
pub height: u32,
pub resizable: bool,
pub decorations: bool,
pub transparent: bool,
pub always_on_top: bool,
pub visible_on_all_workspaces: bool,
pub icon: Option<WindowIcon>,
pub kind: WindowKind,
pub click_through: bool,
pub min_size: Option<(u32, u32)>,
pub max_size: Option<(u32, u32)>,
}Expand description
Window configuration for native mode.
Fields§
§title: StringWindow title
width: u32Window width in logical pixels
height: u32Window height in logical pixels
resizable: boolWhether the window is resizable
decorations: boolWhether the window has decorations (title bar, borders)
transparent: boolWhether the window is transparent
always_on_top: boolWhether the window is always on top
visible_on_all_workspaces: boolWhether to show in taskbar
icon: Option<WindowIcon>Optional native icon shown in the title bar, taskbar and background previews.
kind: WindowKindWindow layer/kind. See WindowKind.
click_through: boolClick-through: pointer events fall through to whatever is behind the window. Required for wallpaper; can also be set explicitly on overlays.
min_size: Option<(u32, u32)>Minimum window size (width, height)
max_size: Option<(u32, u32)>Maximum window size (width, height)
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowConfig
impl Debug for WindowConfig
Source§impl Default for WindowConfig
impl Default for WindowConfig
Source§impl<'de> Deserialize<'de> for WindowConfig
impl<'de> Deserialize<'de> for WindowConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnsafeUnpin for WindowConfig
impl UnwindSafe for WindowConfig
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
Mutably borrows from an owned value. Read more