Struct alacritty::display::content::RenderableCell[][src]

pub struct RenderableCell {
    pub character: char,
    pub zerowidth: Option<Vec<char>>,
    pub point: Point<usize>,
    pub fg: Rgb,
    pub bg: Rgb,
    pub bg_alpha: f32,
    pub flags: Flags,
}
Expand description

Cell ready for rendering.

Fields

character: charzerowidth: Option<Vec<char>>point: Point<usize>fg: Rgbbg: Rgbbg_alpha: f32flags: Flags

Implementations

Check if cell contains any renderable content.

Apply CellRgb colors to the cell’s colors.

Get the RGB color from a cell’s foreground color.

Get the RGB color from a cell’s background color.

Compute background alpha based on cell’s original color.

Since an RGB color matching the background should not be transparent, this is computed using the named input color, rather than checking the RGB of the background after its color is computed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.