[][src]Struct alacritty::renderer::rects::RenderLine

pub struct RenderLine {
    pub start: Point,
    pub end: Point,
    pub color: Rgb,
}

Fields

start: Pointend: Pointcolor: Rgb

Implementations

impl RenderLine[src]

pub fn rects(
    &self,
    flag: Flags,
    metrics: &Metrics,
    size: &SizeInfo
) -> Vec<RenderRect>
[src]

fn push_rects(
    rects: &mut Vec<RenderRect>,
    metrics: &Metrics,
    size: &SizeInfo,
    flag: Flags,
    start: Point,
    end: Point,
    color: Rgb
)
[src]

Push all rects required to draw the cell's line.

fn create_rect(
    size: &SizeInfo,
    descent: f32,
    start: Point,
    end: Point,
    position: f32,
    thickness: f32,
    color: Rgb
) -> RenderRect
[src]

Create a line's rect at a position relative to the baseline.

Trait Implementations

impl Clone for RenderLine[src]

impl Copy for RenderLine[src]

impl Debug for RenderLine[src]

impl Eq for RenderLine[src]

impl PartialEq<RenderLine> for RenderLine[src]

impl StructuralEq for RenderLine[src]

impl StructuralPartialEq for RenderLine[src]

Auto Trait Implementations

impl RefUnwindSafe for RenderLine

impl Send for RenderLine

impl Sync for RenderLine

impl Unpin for RenderLine

impl UnwindSafe for RenderLine

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ResetDiscriminant<T> for T where
    T: Copy
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.