pub struct WindowState { /* private fields */ }Expand description
Live runtime metrics and state of an active window.
Implementations§
Source§impl WindowState
State construction and geometry queries for WindowState.
impl WindowState
State construction and geometry queries for WindowState.
Sourcepub fn from_config(
id: WindowId,
config: &WindowConfig,
scale_factor: f32,
) -> Self
pub fn from_config( id: WindowId, config: &WindowConfig, scale_factor: f32, ) -> Self
Sourcepub fn logical_size(&self) -> Size
pub fn logical_size(&self) -> Size
Sourcepub fn breakpoint(&self) -> Breakpoint
pub fn breakpoint(&self) -> Breakpoint
Source§impl WindowState
impl WindowState
pub fn get_id(&self) -> WindowId
pub fn get_mut_id(&mut self) -> &mut WindowId
pub fn set_id(&mut self, val: WindowId) -> &mut Self
pub fn get_logical_width(&self) -> f32
pub fn get_mut_logical_width(&mut self) -> &mut f32
pub fn set_logical_width(&mut self, val: f32) -> &mut Self
pub fn get_logical_height(&self) -> f32
pub fn get_mut_logical_height(&mut self) -> &mut f32
pub fn set_logical_height(&mut self, val: f32) -> &mut Self
pub fn get_physical_width(&self) -> u32
pub fn get_mut_physical_width(&mut self) -> &mut u32
pub fn set_physical_width(&mut self, val: u32) -> &mut Self
pub fn get_physical_height(&self) -> u32
pub fn get_mut_physical_height(&mut self) -> &mut u32
pub fn set_physical_height(&mut self, val: u32) -> &mut Self
pub fn get_scale_factor(&self) -> f32
pub fn get_mut_scale_factor(&mut self) -> &mut f32
pub fn set_scale_factor(&mut self, val: f32) -> &mut Self
pub fn get_safe_area(&self) -> SafeAreaInsets
pub fn get_mut_safe_area(&mut self) -> &mut SafeAreaInsets
pub fn set_safe_area(&mut self, val: SafeAreaInsets) -> &mut Self
pub fn get_display(&self) -> DisplayInfo
pub fn get_mut_display(&mut self) -> &mut DisplayInfo
pub fn set_display(&mut self, val: DisplayInfo) -> &mut Self
pub fn get_focused(&self) -> bool
pub fn get_mut_focused(&mut self) -> &mut bool
pub fn set_focused(&mut self, val: bool) -> &mut Self
pub fn get_minimized(&self) -> bool
pub fn get_mut_minimized(&mut self) -> &mut bool
pub fn set_minimized(&mut self, val: bool) -> &mut Self
pub fn get_maximized(&self) -> bool
pub fn get_mut_maximized(&mut self) -> &mut bool
pub fn set_maximized(&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_system_theme(&self) -> ThemeMode
pub fn get_mut_system_theme(&mut self) -> &mut ThemeMode
pub fn set_system_theme(&mut self, val: ThemeMode) -> &mut Self
Trait Implementations§
Source§impl Clone for WindowState
impl Clone for WindowState
impl Copy for WindowState
Source§impl Debug for WindowState
impl Debug for WindowState
Source§impl PartialEq for WindowState
impl PartialEq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Forget for WindowState
impl Freeze for WindowState
impl Move for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnsafeUnpin for WindowState
impl UnwindSafe for WindowState
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