[−][src]Enum fui::cursive::theme::PaletteColor
Color entry in a palette.
Each PaletteColor
is used for a specific role in a default application.
Variants
Background
Color used for the application background.
Shadow
Color used for View shadows.
View
Color used for View backgrounds.
Primary
Primary color used for the text.
Secondary
Secondary color used for the text.
Tertiary
Tertiary color used for the text.
TitlePrimary
Primary color used for title text.
TitleSecondary
Secondary color used for title text.
Highlight
Color used for highlighting text.
HighlightInactive
Color used for highlighting inactive text.
Methods
impl PaletteColor
[src]
pub fn resolve(self, palette: &Palette) -> Color
[src]
Given a palette, resolve self
to a concrete color.
Trait Implementations
impl IndexMut<PaletteColor> for Palette
[src]
fn index_mut(&mut self, palette_color: PaletteColor) -> &mut Color
[src]
impl Clone for PaletteColor
[src]
fn clone(&self) -> PaletteColor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for PaletteColor
[src]
impl Hash for PaletteColor
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<V> Enum<V> for PaletteColor
[src]
type Array = [V; 10]
Representation of an enum map for type V
, usually an array.
const POSSIBLE_VALUES: usize
[src]
fn slice(array: &<PaletteColor as Enum<V>>::Array) -> &[V]
[src]
fn slice_mut(array: &mut <PaletteColor as Enum<V>>::Array) -> &mut [V]
[src]
fn from_usize(value: usize) -> PaletteColor
[src]
fn to_usize(self) -> usize
[src]
fn from_function<F>(_f: F) -> <PaletteColor as Enum<V>>::Array where
F: FnMut(PaletteColor) -> V,
[src]
F: FnMut(PaletteColor) -> V,
impl Copy for PaletteColor
[src]
impl Index<PaletteColor> for Palette
[src]
type Output = Color
The returned type after indexing.
fn index(&self, palette_color: PaletteColor) -> &Color
[src]
impl From<PaletteColor> for ColorStyle
[src]
fn from(color: PaletteColor) -> ColorStyle
[src]
impl From<PaletteColor> for Style
[src]
fn from(color: PaletteColor) -> Style
[src]
impl From<PaletteColor> for ColorType
[src]
fn from(color: PaletteColor) -> ColorType
[src]
impl Debug for PaletteColor
[src]
impl PartialEq<PaletteColor> for PaletteColor
[src]
Auto Trait Implementations
impl Send for PaletteColor
impl Sync for PaletteColor
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> With for T
[src]
fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure on self
.
fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
[src]
F: FnOnce(&mut Self) -> Result<(), E>,
Calls the given closure on self
.
fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure if condition == true
.