Struct nvim_gtk::ui_model::model_rect::ModelRect[][src]

pub struct ModelRect {
    pub top: usize,
    pub bot: usize,
    pub left: usize,
    pub right: usize,
}

Fields

top: usizebot: usizeleft: usizeright: usize

Implementations

impl ModelRect[src]

pub fn new(top: usize, bot: usize, left: usize, right: usize) -> ModelRect[src]

pub fn point(x: usize, y: usize) -> ModelRect[src]

fn in_horizontal(&self, other: &ModelRect) -> bool[src]

fn in_vertical(&self, other: &ModelRect) -> bool[src]

fn contains(&self, other: &ModelRect) -> bool[src]

pub fn extend_by_items(&mut self, model: Option<&UiModel>)[src]

Extend rect to left and right to make changed Item rerendered

pub fn to_area_extend_ink(
    &self,
    model: Option<&UiModel>,
    cell_metrics: &CellMetrics
) -> (i32, i32, i32, i32)
[src]

fn extend_left_right_area(
    &self,
    model: Option<&UiModel>,
    cell_metrics: &CellMetrics
) -> (i32, i32)
[src]

fn extend_top_bottom_area(
    &self,
    model: Option<&UiModel>,
    cell_metrics: &CellMetrics
) -> (i32, i32)
[src]

pub fn join(&mut self, rect: &ModelRect)[src]

pub fn to_area(&self, cell_metrics: &CellMetrics) -> (i32, i32, i32, i32)[src]

pub fn from_area(
    cell_metrics: &CellMetrics,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64
) -> ModelRect
[src]

Trait Implementations

impl AsRef<ModelRect> for ModelRect[src]

impl Clone for ModelRect[src]

impl Debug for ModelRect[src]

impl PartialEq<ModelRect> for ModelRect[src]

impl StructuralPartialEq for ModelRect[src]

Auto Trait Implementations

impl RefUnwindSafe for ModelRect

impl Send for ModelRect

impl Sync for ModelRect

impl Unpin for ModelRect

impl UnwindSafe for ModelRect

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