pub struct WindowState {
pub title: String,
pub focused: bool,
pub hover: HoverButton,
pub dirty: Dirty,
pub focus_progress: f32,
pub hover_progress: f32,
}Expand description
A decorated window, as the renderer sees it.
Fields§
§title: StringThe title text.
focused: boolWhether the window has focus.
hover: HoverButtonWhich button is hovered.
dirty: DirtyWhat has changed since the last draw. Not yet read by the renderer;
see Dirty.
focus_progress: f32How far through the focus transition, or PROGRESS_UNSET.
hover_progress: f32How far through the hover transition, or PROGRESS_UNSET.
Trait Implementations§
Source§impl Clone for WindowState
impl Clone for WindowState
Source§impl Debug for WindowState
impl Debug for WindowState
Source§impl Default for WindowState
impl Default for WindowState
Source§impl PartialEq for WindowState
impl PartialEq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Freeze for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnsafeUnpin for WindowState
impl UnwindSafe for WindowState
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