Struct tuix::WindowDescription [−]
pub struct WindowDescription {Show 14 fields
pub title: String,
pub inner_size: WindowSize,
pub min_inner_size: WindowSize,
pub max_inner_size: Option<WindowSize>,
pub position: Option<Position>,
pub resizable: bool,
pub maximized: bool,
pub visible: bool,
pub transparent: bool,
pub decorations: bool,
pub always_on_top: bool,
pub icon: Option<Vec<u8, Global>>,
pub icon_width: u32,
pub icon_height: u32,
}
Expand description
Passed to the window to set various window properties
Fields
title: String
inner_size: WindowSize
min_inner_size: WindowSize
max_inner_size: Option<WindowSize>
position: Option<Position>
resizable: bool
maximized: bool
visible: bool
transparent: bool
decorations: bool
always_on_top: bool
icon: Option<Vec<u8, Global>>
icon_width: u32
icon_height: u32
Implementations
impl WindowDescription
impl WindowDescription
pub fn new() -> WindowDescription
pub fn with_title(self, title: &str) -> WindowDescription
pub fn with_inner_size(self, width: u32, height: u32) -> WindowDescription
pub fn with_min_inner_size(self, width: u32, height: u32) -> WindowDescription
pub fn with_max_inner_size(self, width: u32, height: u32) -> WindowDescription
Trait Implementations
impl Default for WindowDescription
impl Default for WindowDescription
pub fn default() -> WindowDescription
pub fn default() -> WindowDescription
Returns the “default value” for a type. Read more