Struct term_painter::Style [] [src]

pub struct Style {
    pub fg: Color,
    pub bg: Color,
    // some fields omitted
}

Saves all properties of a style. Implements ToStyle, so you can call style modifiers on it.

Fields

Methods

impl Style
[src]

Trait Implementations

impl Debug for Style
[src]

Formats the value using the given formatter.

impl Copy for Style
[src]

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. 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 ToStyle for Style
[src]

Dummy implementation that just returns self.

Convenience method for modifying the style before it's returned.

Sets the foreground (text) color.

Sets the background color.

Makes the text bold.

Dim mode.

Underlines the text.

Removes underline-attribute.

Underlines the text.

Underlines the text.

Secure mode.

Wraps the style specified in self and something of arbitrary type into a Painted. When Painted is printed it will print the arbitrary something with the given style. Read more

Executes the given function, applying the style information before calling it and resetting after it finished. Read more