pub struct WindowSnapshot {
pub title: String,
pub icon: Option<Image>,
pub size: Size,
pub scale: f32,
pub resizable: bool,
pub decorated: bool,
pub maximized: bool,
pub visible: bool,
pub color: Option<Color>,
}Expand description
The state of a window.
Fields§
§title: StringThe title of the window.
icon: Option<Image>The icon of the window.
size: SizeThe size of the window.
scale: f32The scale of the window.
resizable: boolWhether the window is resizable.
decorated: boolWhether the window is decorated.
maximized: boolWhether the window is maximized.
visible: boolWhether the window is visible.
color: Option<Color>The color of the window.
Implementations§
Source§impl WindowSnapshot
impl WindowSnapshot
Sourcepub fn difference(&self, window: &Window) -> Vec<WindowUpdate>
pub fn difference(&self, window: &Window) -> Vec<WindowUpdate>
Get the difference between a window and a previous state.
Trait Implementations§
Source§impl Clone for WindowSnapshot
impl Clone for WindowSnapshot
Source§fn clone(&self) -> WindowSnapshot
fn clone(&self) -> WindowSnapshot
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WindowSnapshot
impl RefUnwindSafe for WindowSnapshot
impl Send for WindowSnapshot
impl Sync for WindowSnapshot
impl Unpin for WindowSnapshot
impl UnwindSafe for WindowSnapshot
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