pub struct ThemeBaseline { /* private fields */ }Expand description
Theme-origin paint snapshot recorded the first time a node is restyled by an in-place theme remap.
Remapping always resolves from this origin snapshot (single hop) instead of chaining heuristic value matches across successive themes, so multi-hop theme switches never drift and round trips restore the exact original paint.
Implementations§
Source§impl ThemeBaseline
impl ThemeBaseline
pub fn get_origin_key(&self) -> u16
pub fn get_mut_origin_key(&mut self) -> &mut u16
pub fn set_origin_key(&mut self, val: u16) -> &mut Self
pub fn get_paint(&self) -> PaintStyle
pub fn get_mut_paint(&mut self) -> &mut PaintStyle
pub fn set_paint(&mut self, val: PaintStyle) -> &mut Self
pub fn get_text_color(&self) -> Color
pub fn get_mut_text_color(&mut self) -> &mut Color
pub fn set_text_color(&mut self, val: Color) -> &mut Self
pub fn get_origin_eff_bg(&self) -> Color
pub fn get_mut_origin_eff_bg(&mut self) -> &mut Color
pub fn set_origin_eff_bg(&mut self, val: Color) -> &mut Self
pub fn get_hover(&self) -> Option<PaintStyle>
pub fn try_get_hover(&self) -> Option<PaintStyle>
pub fn get_mut_hover(&mut self) -> &mut Option<PaintStyle>
pub fn set_hover(&mut self, val: Option<PaintStyle>) -> &mut Self
Source§impl ThemeBaseline
impl ThemeBaseline
pub fn new( origin_key: u16, paint: PaintStyle, text_color: Color, origin_eff_bg: Color, hover: Option<PaintStyle>, ) -> Self
Trait Implementations§
Source§impl Clone for ThemeBaseline
impl Clone for ThemeBaseline
impl Copy for ThemeBaseline
Source§impl Debug for ThemeBaseline
impl Debug for ThemeBaseline
Source§impl Default for ThemeBaseline
impl Default for ThemeBaseline
Source§impl PartialEq for ThemeBaseline
impl PartialEq for ThemeBaseline
impl StructuralPartialEq for ThemeBaseline
Auto Trait Implementations§
impl Forget for ThemeBaseline
impl Freeze for ThemeBaseline
impl Move for ThemeBaseline
impl RefUnwindSafe for ThemeBaseline
impl Send for ThemeBaseline
impl Sync for ThemeBaseline
impl Unpin for ThemeBaseline
impl UnsafeUnpin for ThemeBaseline
impl UnwindSafe for ThemeBaseline
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