pub struct PaintState {
pub window_active: bool,
pub high_contrast: bool,
}Expand description
The window and accessibility state a frame is painted under: the inputs of
Theme::for_paint_state.
A fresh tree paints with window_active: true, high_contrast: false,
under which Theme::for_paint_state returns the theme unchanged when no
PaintProjection is registered.
Fields§
§window_active: boolThe host window is focused and not occluded.
high_contrast: boolThe OS “increase contrast” preference is set.
Trait Implementations§
Source§impl Clone for PaintState
impl Clone for PaintState
impl Copy for PaintState
Source§impl Debug for PaintState
impl Debug for PaintState
impl Eq for PaintState
Source§impl PartialEq for PaintState
impl PartialEq for PaintState
impl StructuralPartialEq for PaintState
Auto Trait Implementations§
impl Freeze for PaintState
impl RefUnwindSafe for PaintState
impl Send for PaintState
impl Sync for PaintState
impl Unpin for PaintState
impl UnsafeUnpin for PaintState
impl UnwindSafe for PaintState
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