Struct nvim_gtk::ui_model::model_rect::ModelRect [−][src]
Fields
top: usizebot: usizeleft: usizeright: usizeImplementations
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]
&self,
model: Option<&UiModel>,
cell_metrics: &CellMetrics
) -> (i32, i32, i32, i32)
fn extend_left_right_area(
&self,
model: Option<&UiModel>,
cell_metrics: &CellMetrics
) -> (i32, i32)[src]
&self,
model: Option<&UiModel>,
cell_metrics: &CellMetrics
) -> (i32, i32)
fn extend_top_bottom_area(
&self,
model: Option<&UiModel>,
cell_metrics: &CellMetrics
) -> (i32, i32)[src]
&self,
model: Option<&UiModel>,
cell_metrics: &CellMetrics
) -> (i32, i32)
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]
cell_metrics: &CellMetrics,
x1: f64,
y1: f64,
x2: f64,
y2: f64
) -> ModelRect
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,