Struct pixels_graphics_lib::ui::styles::ColorSet
source · pub struct ColorSet {
pub normal: Option<Color>,
pub hover: Option<Color>,
pub error: Option<Color>,
pub disabled: Option<Color>,
}
Fields§
§normal: Option<Color>
§hover: Option<Color>
§error: Option<Color>
§disabled: Option<Color>
Implementations§
source§impl ColorSet
impl ColorSet
pub fn new( normal: Option<Color>, hover: Option<Color>, error: Option<Color>, disabled: Option<Color> ) -> Self
pub fn new_values( normal: Color, hover: Color, error: Color, disabled: Color ) -> Self
pub fn new_same(color: Color) -> Self
pub fn get(&self, hovering: bool, error: bool, disabled: bool) -> Option<Color>
Trait Implementations§
source§impl PartialEq<ColorSet> for ColorSet
impl PartialEq<ColorSet> for ColorSet
impl Eq for ColorSet
impl StructuralEq for ColorSet
impl StructuralPartialEq for ColorSet
Auto Trait Implementations§
impl RefUnwindSafe for ColorSet
impl Send for ColorSet
impl Sync for ColorSet
impl Unpin for ColorSet
impl UnwindSafe for ColorSet
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.