Enum cursive::theme::PaletteColor
source · [−]pub enum PaletteColor {
Background,
Shadow,
View,
Primary,
Secondary,
Tertiary,
TitlePrimary,
TitleSecondary,
Highlight,
HighlightInactive,
HighlightText,
}
Expand description
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.
HighlightText
Color used for highlighted text
Implementations
sourceimpl PaletteColor
impl PaletteColor
Trait Implementations
sourceimpl Clone for PaletteColor
impl Clone for PaletteColor
sourcefn clone(&self) -> PaletteColor
fn clone(&self) -> PaletteColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PaletteColor
impl Debug for PaletteColor
sourceimpl Enum for PaletteColor
impl Enum for PaletteColor
sourcefn from_usize(value: usize) -> PaletteColor
fn from_usize(value: usize) -> PaletteColor
Takes an usize, and returns an element matching into_usize
function.
sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns an unique identifier for a value within range of 0..Array::LENGTH
.
sourceimpl<V> EnumArray<V> for PaletteColor
impl<V> EnumArray<V> for PaletteColor
sourceimpl From<PaletteColor> for ColorStyle
impl From<PaletteColor> for ColorStyle
sourcefn from(color: PaletteColor) -> ColorStyle
fn from(color: PaletteColor) -> ColorStyle
Converts to this type from the input type.
sourceimpl From<PaletteColor> for ColorType
impl From<PaletteColor> for ColorType
sourcefn from(color: PaletteColor) -> ColorType
fn from(color: PaletteColor) -> ColorType
Converts to this type from the input type.
sourceimpl From<PaletteColor> for Style
impl From<PaletteColor> for Style
sourcefn from(color: PaletteColor) -> Style
fn from(color: PaletteColor) -> Style
Converts to this type from the input type.
sourceimpl FromStr for PaletteColor
impl FromStr for PaletteColor
sourceimpl Hash for PaletteColor
impl Hash for PaletteColor
sourceimpl Index<PaletteColor> for Palette
impl Index<PaletteColor> for Palette
sourceimpl IndexMut<PaletteColor> for Palette
impl IndexMut<PaletteColor> for Palette
sourcefn index_mut(&mut self, palette_color: PaletteColor) -> &mut Color
fn index_mut(&mut self, palette_color: PaletteColor) -> &mut Color
Performs the mutable indexing (container[index]
) operation. Read more
sourceimpl PartialEq<PaletteColor> for PaletteColor
impl PartialEq<PaletteColor> for PaletteColor
sourcefn eq(&self, other: &PaletteColor) -> bool
fn eq(&self, other: &PaletteColor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for PaletteColor
impl Eq for PaletteColor
impl StructuralEq for PaletteColor
impl StructuralPartialEq for PaletteColor
Auto Trait Implementations
impl RefUnwindSafe for PaletteColor
impl Send for PaletteColor
impl Sync for PaletteColor
impl Unpin for PaletteColor
impl UnwindSafe for PaletteColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more