pub struct Window { /* private fields */ }Expand description
Represents a window.
Implementations§
source§impl Window
impl Window
pub fn builder() -> WindowBuilder
pub async fn position(&self) -> Option<ScreenPosition>
pub async fn inner_size(&self) -> Option<PhysicalSize<u32>>
pub async fn dpi(&self) -> Option<u32>
pub async fn scale_factor(&self) -> Option<f32>
pub fn show(&self)
pub fn hide(&self)
pub fn minimize(&self)
pub fn maximize(&self)
pub fn restore(&self)
pub fn set_position(&self, position: ScreenPosition)
pub fn set_inner_size<T>(&self, size: T)where T: ToPhysical<u32, Output<u32> = PhysicalSize<u32>> + Send + 'static,
pub fn accept_drop_files(&self, accept: bool)
pub fn ime(&self, enable: bool)
pub fn set_cursor(&self, cursor: Cursor)
pub fn close(&self)
pub fn is_closed(&self) -> bool
pub fn redraw(&self, invalid_rect: Option<PhysicalRect<i32>>)
pub fn raw_handle(&self) -> *const c_void
Trait Implementations§
source§impl HasRawDisplayHandle for Window
impl HasRawDisplayHandle for Window
fn raw_display_handle(&self) -> RawDisplayHandle
source§impl HasRawWindowHandle for Window
impl HasRawWindowHandle for Window
fn raw_window_handle(&self) -> RawWindowHandle
source§impl PartialEq<Window> for WindowKind
impl PartialEq<Window> for WindowKind
source§impl PartialEq<WindowKind> for Window
impl PartialEq<WindowKind> for Window
source§fn eq(&self, other: &WindowKind) -> bool
fn eq(&self, other: &WindowKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq for Window
impl PartialEq for Window
impl Eq for Window
impl StructuralEq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
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