Struct theme2::ColorScaleSet
source · pub struct ColorScaleSet { /* private fields */ }
Implementations§
source§impl ColorScaleSet
impl ColorScaleSet
pub fn new( name: impl Into<SharedString>, light: ColorScale, light_alpha: ColorScale, dark: ColorScale, dark_alpha: ColorScale ) -> Self
pub fn name(&self) -> &SharedString
pub fn light(&self) -> &ColorScale
pub fn light_alpha(&self) -> &ColorScale
pub fn dark(&self) -> &ColorScale
pub fn dark_alpha(&self) -> &ColorScale
pub fn step(&self, cx: &AppContext, step: ColorScaleStep) -> Hsla
pub fn step_alpha(&self, cx: &AppContext, step: ColorScaleStep) -> Hsla
Auto Trait Implementations§
impl RefUnwindSafe for ColorScaleSet
impl Send for ColorScaleSet
impl Sync for ColorScaleSet
impl Unpin for ColorScaleSet
impl UnwindSafe for ColorScaleSet
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