Struct cursive::theme::Style[][src]

pub struct Style {
    pub effects: EnumSet<Effect>,
    pub color: Option<ColorStyle>,
}

Combine a color and an effect.

Represents any transformation that can be applied to text.

Fields

Effect to apply.

None to keep using previous effects.

Color style to apply.

None to keep using the previous colors.

Methods

impl Style
[src]

Returns a new Style that doesn't apply anything.

Returns a new Style by merging all given styles.

Will use the last non-None color, and will combine all effects.

Returns a combination of self and other.

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Style
[src]

impl Debug for Style
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Style
[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 Style
[src]

impl Default for Style
[src]

Returns the "default value" for a type. Read more

impl From<Effect> for Style
[src]

Performs the conversion.

impl From<ColorStyle> for Style
[src]

Performs the conversion.

impl From<Color> for Style
[src]

Performs the conversion.

impl From<PaletteColor> for Style
[src]

Performs the conversion.

impl From<ColorType> for Style
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Style

impl Sync for Style