Enum cursive::theme::PaletteColor[][src]

pub enum PaletteColor {
    Background,
    Shadow,
    View,
    Primary,
    Secondary,
    Tertiary,
    TitlePrimary,
    TitleSecondary,
    Highlight,
    HighlightInactive,
}

Color entry in a palette.

Each PaletteColor is used for a specific role in a default application.

Variants

Color used for the application background.

Color used for View shadows.

Color used for View backgrounds.

Primary color used for the text.

Secondary color used for the text.

Tertiary color used for the text.

Primary color used for title text.

Secondary color used for title text.

Color used for highlighting text.

Color used for highlighting inactive text.

Methods

impl PaletteColor
[src]

Given a palette, resolve self to a concrete color.

Trait Implementations

impl From<PaletteColor> for ColorStyle
[src]

Performs the conversion.

impl From<PaletteColor> for ColorType
[src]

Performs the conversion.

impl Index<PaletteColor> for Palette
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<PaletteColor> for Palette
[src]

Performs the mutable indexing (container[index]) operation.

impl Clone for PaletteColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PaletteColor
[src]

impl Debug for PaletteColor
[src]

Formats the value using the given formatter. Read more

impl PartialEq for PaletteColor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PaletteColor
[src]

impl Hash for PaletteColor
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<V> Enum<V> for PaletteColor
[src]

Representation of an enum map for type V, usually an array.

POSSIBLE_VALUES: usize = 10usize

Number of possible states the type can have.

Important traits for &'a [u8]

Gets a slice from an array type.

Important traits for &'a [u8]

Gets a mutable slice from an array type.

Takes an usize, and returns an element matching to_usize function.

Returns an unique identifier for a value within range of 0..POSSIBLE_VALUES.

Creates an array using a function called for each argument.

impl From<PaletteColor> for Style
[src]

Performs the conversion.

Auto Trait Implementations