Struct nvim_gtk::render::context::CellMetrics[][src]

pub struct CellMetrics {
    pub line_height: f64,
    pub char_width: f64,
    pub ascent: f64,
    pub underline_position: f64,
    pub underline_thickness: f64,
    pub pango_ascent: i32,
    pub pango_descent: i32,
    pub pango_char_width: i32,
}

Fields

line_height: f64char_width: f64ascent: f64underline_position: f64underline_thickness: f64pango_ascent: i32pango_descent: i32pango_char_width: i32

Implementations

impl CellMetrics[src]

fn new(font_metrics: &FontMetrics, line_space: i32) -> Self[src]

Auto Trait Implementations

impl RefUnwindSafe for CellMetrics

impl Send for CellMetrics

impl Sync for CellMetrics

impl Unpin for CellMetrics

impl UnwindSafe for CellMetrics

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, 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.