struct State {
nvim: Option<Rc<NeovimClient>>,
levels: Vec<Level>,
block: Option<Level>,
render_state: Rc<RefCell<RenderState>>,
drawing_area: DrawingArea,
cursor: Option<BlinkCursor<State>>,
}
Fields§
§nvim: Option<Rc<NeovimClient>>
§levels: Vec<Level>
§block: Option<Level>
§render_state: Rc<RefCell<RenderState>>
§drawing_area: DrawingArea
§cursor: Option<BlinkCursor<State>>
Implementations§
Source§impl State
impl State
fn new( drawing_area: DrawingArea, render_state: Rc<RefCell<RenderState>>, ) -> Self
fn request_area_size(&self)
fn preferred_height(&self) -> i32
fn set_cursor(&mut self, render_state: &RenderState, pos: usize, level: usize)
fn queue_redraw_cursor(&mut self)
Trait Implementations§
Source§impl CursorRedrawCb for State
impl CursorRedrawCb for State
fn queue_redraw_cursor(&mut self)
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more