pub struct WindowGeometry {
pub position: Option<(i32, i32)>,
pub size: (u32, u32),
pub maximized: bool,
}Expand description
Snapshot of geometry handed to WindowOptions::on_close_state so
the embedder can persist (position, size, maximized) to disk.
Fields§
§position: Option<(i32, i32)>Outer window position in physical pixels (winit
Window::outer_position).
size: (u32, u32)Inner window size in logical pixels.
maximized: boolLast maximized state.
Trait Implementations§
Source§impl Clone for WindowGeometry
impl Clone for WindowGeometry
Source§fn clone(&self) -> WindowGeometry
fn clone(&self) -> WindowGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowGeometry
impl Debug for WindowGeometry
impl Copy for WindowGeometry
Auto Trait Implementations§
impl Freeze for WindowGeometry
impl RefUnwindSafe for WindowGeometry
impl Send for WindowGeometry
impl Sync for WindowGeometry
impl Unpin for WindowGeometry
impl UnsafeUnpin for WindowGeometry
impl UnwindSafe for WindowGeometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.