Struct crossterm::ObjectStyle[][src]

pub struct ObjectStyle {
    pub fg_color: Option<Color>,
    pub bg_color: Option<Color>,
    pub attrs: Vec<Attribute>,
}

Struct that contains the style properties that can be applied to an displayable object.

Fields

Methods

impl ObjectStyle
[src]

Apply an StyledObject to the passed displayable object.

Get an new instance of ObjectStyle

Set the background color of ObjectStyle to the passed color.

Set the foreground color of ObjectStyle to the passed color.

Add an attribute to the current text. Like italic or bold.

Trait Implementations

impl Clone for ObjectStyle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for ObjectStyle
[src]

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

Auto Trait Implementations

impl Send for ObjectStyle

impl Sync for ObjectStyle