pub struct Window(/* private fields */);
Expand description
Applcation window.
Implementations§
Source§impl Window
impl Window
Sourcepub fn builder() -> WindowBuilder
pub fn builder() -> WindowBuilder
Returns a new builder instance.
Sourcepub fn set_options(&mut self, options: WindowOptions)
pub fn set_options(&mut self, options: WindowOptions)
Sourcepub fn options(&self) -> WindowOptions
pub fn options(&self) -> WindowOptions
Retuns window options.
Sourcepub fn show(&mut self, app: &ActiveApplication)
pub fn show(&mut self, app: &ActiveApplication)
Sourcepub fn show_modal(&mut self, app: &ActiveApplication)
pub fn show_modal(&mut self, app: &ActiveApplication)
Sourcepub fn toggle_fullscreen(&mut self)
pub fn toggle_fullscreen(&mut self)
Toggles the fullscreen mode of the window.
Sourcepub fn is_fullscreen(&self) -> bool
pub fn is_fullscreen(&self) -> bool
Returns if a window is in the fullscreen mode.
Sourcepub fn set_frame_size(&mut self, size: Size)
pub fn set_frame_size(&mut self, size: Size)
Sourcepub fn frame_size(&self) -> PhysicalSize<u32>
pub fn frame_size(&self) -> PhysicalSize<u32>
Returns a frame size of the window.
Sourcepub fn set_position(&mut self, position: Position)
pub fn set_position(&mut self, position: Position)
Sourcepub fn position(&self) -> PhysicalPosition<i32>
pub fn position(&self) -> PhysicalPosition<i32>
Returns a window origin position.
Sourcepub fn set_min_size(&mut self, min_size: Size)
pub fn set_min_size(&mut self, min_size: Size)
Sourcepub fn min_size(&self) -> PhysicalSize<u32>
pub fn min_size(&self) -> PhysicalSize<u32>
Returns a minimal size of the window frame.
Sourcepub fn set_max_size(&mut self, max_size: Size)
pub fn set_max_size(&mut self, max_size: Size)
Sourcepub fn max_size(&self) -> PhysicalSize<u32>
pub fn max_size(&self) -> PhysicalSize<u32>
Returns a maximal size of the window frame.
Sourcepub fn is_maximized(&self) -> bool
pub fn is_maximized(&self) -> bool
Checks if a window is maximized.
Sourcepub fn content_size(&self) -> PhysicalSize<u32>
pub fn content_size(&self) -> PhysicalSize<u32>
Returns a content size (inner window size).
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Checks if a window is visible on the screen.
Sourcepub fn is_minimized(&self) -> bool
pub fn is_minimized(&self) -> bool
Checks if a window is minimized.
Sourcepub fn scale_factor(&self) -> f64
pub fn scale_factor(&self) -> f64
Window backing scale factor.
Trait Implementations§
Source§impl HasWindowHandler for Window
impl HasWindowHandler for Window
Source§fn window_handler(&self) -> WindowHandler
fn window_handler(&self) -> WindowHandler
Returns a window handler for the current platform.
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
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