pub struct Window { /* private fields */ }
Expand description
Represents a window.
Implementations§
source§impl Window
impl Window
pub fn builder() -> WindowBuilder
pub fn inner_window_builder(window: &Window) -> InnerWindowBuilder
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 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 PartialEq<Window> for Window
impl PartialEq<Window> 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