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

pub struct Context {
    font_metrics: FontMetrix,
    font_features: FontFeatures,
    line_space: i32,
}

Fields

font_metrics: FontMetrixfont_features: FontFeaturesline_space: i32

Implementations

impl Context[src]

pub fn new(pango_context: Context) -> Self[src]

pub fn update(&mut self, pango_context: Context)[src]

pub fn update_font_features(&mut self, font_features: FontFeatures)[src]

pub fn update_line_space(&mut self, line_space: i32)[src]

pub fn itemize(&self, line: &StyledLine) -> Vec<Item>[src]

pub fn create_layout(&self) -> Layout[src]

pub fn font_description(&self) -> &FontDescription[src]

pub fn cell_metrics(&self) -> &CellMetrics[src]

pub fn font_features(&self) -> &FontFeatures[src]

pub fn font_families(&self) -> HashSet<GString>[src]

Auto Trait Implementations

impl RefUnwindSafe for Context

impl !Send for Context

impl !Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

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.