Struct cursive::theme::ColorStyle [] [src]

pub struct ColorStyle {
    pub front: ColorType,
    pub back: ColorType,
}

Possible color style for a cell.

Represents a color pair role to use when printing something.

The current theme will assign each role a foreground and background color.

Fields

Color used for the foreground (the text itself).

Color used for the background.

Methods

impl ColorStyle
[src]

[src]

Creates

[src]

Style set by terminal before entering a Cursive program.

[src]

Application background, where no view is present.

[src]

Color used by view shadows. Only background matters.

[src]

Main text with default background.

[src]

Secondary text color, with default background.

[src]

Tertiary text color, with default background.

[src]

Title text color with default background.

[src]

Alternative color for a title.

[src]

Alternate text with highlight background.

[src]

Highlight color for inactive views (not in focus).

[src]

Return the color pair that this style represents.

Trait Implementations

impl From<ColorStyle> for Style
[src]

[src]

Performs the conversion.

impl Clone for ColorStyle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ColorStyle
[src]

impl Debug for ColorStyle
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ColorStyle
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ColorStyle
[src]

impl Hash for ColorStyle
[src]

[src]

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

1.3.0
[src]

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

impl From<Color> for ColorStyle
[src]

[src]

Performs the conversion.

impl From<PaletteColor> for ColorStyle
[src]

[src]

Performs the conversion.

impl From<ColorType> for ColorStyle
[src]

[src]

Performs the conversion.

impl<F, B> From<(F, B)> for ColorStyle where
    F: Into<ColorType>,
    B: Into<ColorType>, 
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ColorStyle

impl Sync for ColorStyle