pub struct WindowFrame {
pub position: Option<Point>,
pub size: Size,
}Expand description
A window’s restored frame: where it is and how large while it’s neither
maximized nor in full screen, and what it goes back to when it stops
being either, the frame an app keeps to open its window as it was left
(as Windows’ GetWindowPlacement, AppKit’s saved frames and Qt’s
saveGeometry keep it).
Fields§
§position: Option<Point>Its top-left corner in the platform’s own desktop coordinates
(Windows’ physical pixels, AppKit’s points from the bottom left of
the main screen, X11’s pixels): a value to hand back to the same
platform, not to compute with. None where a window can’t know
where it is (Wayland, and GTK everywhere).
size: SizeIts content size in points, what Window::size takes.
Trait Implementations§
Source§impl Clone for WindowFrame
impl Clone for WindowFrame
impl Copy for WindowFrame
Source§impl Debug for WindowFrame
impl Debug for WindowFrame
Source§impl PartialEq for WindowFrame
impl PartialEq for WindowFrame
impl StructuralPartialEq for WindowFrame
Auto Trait Implementations§
impl Forget for WindowFrame
impl Freeze for WindowFrame
impl Move for WindowFrame
impl RefUnwindSafe for WindowFrame
impl Send for WindowFrame
impl Sync for WindowFrame
impl Unpin for WindowFrame
impl UnsafeUnpin for WindowFrame
impl UnwindSafe for WindowFrame
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