pub struct SemanticColorToken {
pub sdr: Color,
pub wide_gamut: Option<Color>,
pub hdr: Option<Color>,
}Fields§
§sdr: Color§wide_gamut: Option<Color>§hdr: Option<Color>Implementations§
Source§impl SemanticColorToken
impl SemanticColorToken
pub const fn new( sdr: Color, wide_gamut: Option<Color>, hdr: Option<Color>, ) -> Self
pub const fn from_sdr(sdr: Color) -> Self
pub const fn with_wide_gamut(self, wide_gamut: Color) -> Self
pub const fn with_hdr(self, hdr: Color) -> Self
pub fn resolve(self, mode: HdrThemeMode) -> Color
Trait Implementations§
Source§impl Clone for SemanticColorToken
impl Clone for SemanticColorToken
impl Copy for SemanticColorToken
Source§impl Debug for SemanticColorToken
impl Debug for SemanticColorToken
Source§impl Default for SemanticColorToken
impl Default for SemanticColorToken
Source§impl PartialEq for SemanticColorToken
impl PartialEq for SemanticColorToken
impl StructuralPartialEq for SemanticColorToken
Auto Trait Implementations§
impl Forget for SemanticColorToken
impl Freeze for SemanticColorToken
impl Move for SemanticColorToken
impl RefUnwindSafe for SemanticColorToken
impl Send for SemanticColorToken
impl Sync for SemanticColorToken
impl Unpin for SemanticColorToken
impl UnsafeUnpin for SemanticColorToken
impl UnwindSafe for SemanticColorToken
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