Struct nvim_gtk::ui_model::UiModel [−][src]
Fields
columns: usizerows: usizecur_row: usizecur_col: usizemodel: Box<[Line]>Implementations
impl UiModel[src]
pub fn new(rows: u64, columns: u64) -> UiModel[src]
pub fn empty() -> UiModel[src]
pub fn model(&self) -> &[Line][src]
pub fn model_mut(&mut self) -> &mut [Line][src]
pub fn cur_point(&self) -> ModelRect[src]
pub fn set_cursor(&mut self, row: usize, col: usize) -> ModelRectVec[src]
pub fn get_cursor(&self) -> (usize, usize)[src]
pub fn put_one(
&mut self,
row: usize,
col: usize,
ch: &str,
double_width: bool,
hl: Rc<Highlight>
)[src]
&mut self,
row: usize,
col: usize,
ch: &str,
double_width: bool,
hl: Rc<Highlight>
)
pub fn put(
&mut self,
row: usize,
col: usize,
ch: &str,
double_width: bool,
repeat: usize,
hl: Rc<Highlight>
)[src]
&mut self,
row: usize,
col: usize,
ch: &str,
double_width: bool,
repeat: usize,
hl: Rc<Highlight>
)
pub fn swap_rows(&mut self, target: &mut UiModel, to_row: usize)[src]
Copy rows from 0 to to_row, col from 0 self.columns
Don’t do any validation!
fn swap_row(
&mut self,
target_row: i64,
offset: i64,
left_col: usize,
right_col: usize
)[src]
&mut self,
target_row: i64,
offset: i64,
left_col: usize,
right_col: usize
)
pub fn scroll(
&mut self,
top: i64,
bot: i64,
left: usize,
right: usize,
count: i64,
default_hl: &Rc<Highlight>
) -> ModelRect[src]
&mut self,
top: i64,
bot: i64,
left: usize,
right: usize,
count: i64,
default_hl: &Rc<Highlight>
) -> ModelRect
pub fn clear(&mut self, default_hl: &Rc<Highlight>)[src]
fn clear_region(
&mut self,
top: usize,
bot: usize,
left: usize,
right: usize,
default_hl: &Rc<Highlight>
)[src]
&mut self,
top: usize,
bot: usize,
left: usize,
right: usize,
default_hl: &Rc<Highlight>
)
pub fn clear_glyphs(&mut self)[src]
Trait Implementations
impl ModelClipIteratorFactory for UiModel[src]
Clip implemented as top - 1/bot + 1 this is because in some cases(like ‘g’ character) drawing character does not fit to calculated bounds and if one line must be repainted - also previous and next line must be repainted to
fn get_row_view<'a>(
&'a self,
ctx: &'a Context,
cell_metrics: &'a CellMetrics,
col: usize
) -> RowView<'a>[src]
&'a self,
ctx: &'a Context,
cell_metrics: &'a CellMetrics,
col: usize
) -> RowView<'a>
fn get_clip_iterator<'a>(
&'a self,
ctx: &'a Context,
cell_metrics: &'a CellMetrics
) -> ModelClipIterator<'a>ⓘNotable traits for ModelClipIterator<'a>
impl<'a> Iterator for ModelClipIterator<'a> type Item = RowView<'a>;[src]
&'a self,
ctx: &'a Context,
cell_metrics: &'a CellMetrics
) -> ModelClipIterator<'a>ⓘ
Notable traits for ModelClipIterator<'a>
impl<'a> Iterator for ModelClipIterator<'a> type Item = RowView<'a>;Auto Trait Implementations
impl !RefUnwindSafe for UiModel
impl !Send for UiModel
impl !Sync for UiModel
impl Unpin for UiModel
impl UnwindSafe for UiModel
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, 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>,