pub struct Window { /* private fields */ }
Expand description
Represents a window.
Implementations
sourceimpl Window
impl Window
pub fn builder() -> WindowBuilder<&'static str, Size<u32, Logical>>
pub fn inner_builder() -> InnerWindowBuilder<(), LogicalPosition<f32>, ()>
pub fn title(&self) -> String
pub fn set_title(&self, title: impl AsRef<str>)
pub fn position(&self) -> ScreenPosition
pub fn set_position(&self, position: ScreenPosition)
pub fn inner_size(&self) -> PhysicalSize<u32>
pub fn set_inner_size(&self, size: impl ToPhysicalSize<u32>)
pub fn dpi(&self) -> u32
pub fn scale_factor(&self) -> f32
pub fn show(&self)
pub fn hide(&self)
pub fn minimize(&self)
pub fn maximize(&self)
pub fn restore(&self)
pub fn is_minimized(&self) -> bool
pub fn is_maximized(&self) -> bool
pub fn redraw(&self)
pub fn is_closed(&self) -> bool
pub fn close(&self)
pub fn ime_position(&self) -> PhysicalPosition<i32>
pub fn ime(&self, enable: bool)
pub fn set_ime_position(&self, position: impl ToPhysicalPosition<i32>)
pub fn is_enabled_ime(&self) -> bool
pub fn style(&self) -> WindowStyle
pub fn set_style(&self, style: impl Style)
pub fn accept_drag_files(&self, enabled: bool)
pub fn set_cursor(&self, cursor: Cursor)
pub fn raw_handle(&self) -> *mut c_void
Trait Implementations
sourceimpl HasRawWindowHandle for Window
impl HasRawWindowHandle for Window
fn raw_window_handle(&self) -> RawWindowHandle
impl Eq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more