pub struct WindowConfig { /* private fields */ }Expand description
Unified declarative window creation settings normalized across desktop, mobile, tablet, and web.
Implementations§
Source§impl WindowConfig
Convenience setters and safe optional accessors for WindowConfig.
impl WindowConfig
Convenience setters and safe optional accessors for WindowConfig.
Sourcepub fn min_size_value(&self) -> Option<(u32, u32)>
pub fn min_size_value(&self) -> Option<(u32, u32)>
Sourcepub fn max_size_value(&self) -> Option<(u32, u32)>
pub fn max_size_value(&self) -> Option<(u32, u32)>
Sourcepub fn position_value(&self) -> Option<(i32, i32)>
pub fn position_value(&self) -> Option<(i32, i32)>
Sourcepub fn preferred_theme_value(&self) -> Option<ThemeMode>
pub fn preferred_theme_value(&self) -> Option<ThemeMode>
Sourcepub fn icon_value(&self) -> Option<ImageBuffer>
pub fn icon_value(&self) -> Option<ImageBuffer>
Source§impl WindowConfig
impl WindowConfig
pub fn get_title(&self) -> &String
pub fn get_mut_title(&mut self) -> &mut String
pub fn set_title(&mut self, val: String) -> &mut Self
pub fn get_width(&self) -> u32
pub fn get_mut_width(&mut self) -> &mut u32
pub fn set_width(&mut self, val: u32) -> &mut Self
pub fn get_height(&self) -> u32
pub fn get_mut_height(&mut self) -> &mut u32
pub fn set_height(&mut self, val: u32) -> &mut Self
pub fn get_mut_min_size(&mut self) -> &mut Option<(u32, u32)>
pub fn set_min_size(&mut self, val: Option<(u32, u32)>) -> &mut Self
pub fn get_mut_max_size(&mut self) -> &mut Option<(u32, u32)>
pub fn set_max_size(&mut self, val: Option<(u32, u32)>) -> &mut Self
pub fn get_mut_position(&mut self) -> &mut Option<(i32, i32)>
pub fn set_position(&mut self, val: Option<(i32, i32)>) -> &mut Self
pub fn get_resizable(&self) -> bool
pub fn get_mut_resizable(&mut self) -> &mut bool
pub fn set_resizable(&mut self, val: bool) -> &mut Self
pub fn get_decorations(&self) -> bool
pub fn get_mut_decorations(&mut self) -> &mut bool
pub fn set_decorations(&mut self, val: bool) -> &mut Self
pub fn get_transparent(&self) -> bool
pub fn get_mut_transparent(&mut self) -> &mut bool
pub fn set_transparent(&mut self, val: bool) -> &mut Self
pub fn get_always_on_top(&self) -> bool
pub fn get_mut_always_on_top(&mut self) -> &mut bool
pub fn set_always_on_top(&mut self, val: bool) -> &mut Self
pub fn get_fullscreen(&self) -> FullscreenMode
pub fn get_mut_fullscreen(&mut self) -> &mut FullscreenMode
pub fn set_fullscreen(&mut self, val: FullscreenMode) -> &mut Self
pub fn get_immersive(&self) -> bool
pub fn get_mut_immersive(&mut self) -> &mut bool
pub fn set_immersive(&mut self, val: bool) -> &mut Self
pub fn get_visible(&self) -> bool
pub fn get_mut_visible(&mut self) -> &mut bool
pub fn set_visible(&mut self, val: bool) -> &mut Self
pub fn get_render(&self) -> RenderConfig
pub fn get_mut_render(&mut self) -> &mut RenderConfig
pub fn set_render(&mut self, val: RenderConfig) -> &mut Self
pub fn get_orientation(&self) -> OrientationLock
pub fn get_mut_orientation(&mut self) -> &mut OrientationLock
pub fn set_orientation(&mut self, val: OrientationLock) -> &mut Self
pub fn get_status_bar(&self) -> StatusBarStyle
pub fn get_mut_status_bar(&mut self) -> &mut StatusBarStyle
pub fn set_status_bar(&mut self, val: StatusBarStyle) -> &mut Self
pub fn get_mut_preferred_theme(&mut self) -> &mut Option<ThemeMode>
pub fn set_preferred_theme(&mut self, val: Option<ThemeMode>) -> &mut Self
pub fn get_mut_icon(&mut self) -> &mut Option<ImageBuffer>
pub fn set_icon(&mut self, val: Option<ImageBuffer>) -> &mut Self
pub fn get_mut_icon_path(&mut self) -> &mut Option<String>
pub fn set_icon_path(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§impl Debug for WindowConfig
impl Debug for WindowConfig
Source§impl Default for WindowConfig
Default WindowConfig with cross-platform sensible defaults.
impl Default for WindowConfig
Default WindowConfig with cross-platform sensible defaults.
Source§impl PartialEq for WindowConfig
impl PartialEq for WindowConfig
impl StructuralPartialEq for WindowConfig
Auto Trait Implementations§
impl Forget for WindowConfig
impl Freeze for WindowConfig
impl Move 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