pub struct WindowView<'a, W: Wrap> { /* private fields */ }Implementations§
Source§impl<'a, W: WrapRef> WindowView<'a, W>
impl<'a, W: WrapRef> WindowView<'a, W>
pub fn new( buffer: W::WrapRef<'a, Buffer>, state: W::WrapRef<'a, WindowState>, ) -> Self
pub fn height(&self) -> u16
pub fn vertical_scroll(&self) -> usize
pub fn buffer(&self) -> &Buffer
pub fn selection(&self) -> Selection<'_>
pub fn assert_invariants(&self) -> Result<()>
Source§impl<W: WrapMut> WindowView<'_, W>
impl<W: WrapMut> WindowView<'_, W>
pub fn set_height(&mut self, height: u16)
pub fn scroll_to_line(&mut self, line: usize)
pub fn scroll_to_selection(&mut self)
pub fn scroll_center_selection(&mut self)
pub fn buffer_mut(&mut self) -> &mut Buffer
pub fn selection_move(&mut self) -> SelectionMove<'_>
pub fn selection_edit(&mut self) -> SelectionEdit<'_>
pub fn undo(&mut self) -> Result<bool>
pub fn redo(&mut self) -> Result<bool>
Auto Trait Implementations§
impl<'a, W> Freeze for WindowView<'a, W>
impl<'a, W> RefUnwindSafe for WindowView<'a, W>where
<W as Wrap>::Wrap<'a, WindowState>: RefUnwindSafe,
<W as Wrap>::Wrap<'a, Buffer>: RefUnwindSafe,
impl<'a, W> Send for WindowView<'a, W>
impl<'a, W> Sync for WindowView<'a, W>
impl<'a, W> Unpin for WindowView<'a, W>
impl<'a, W> UnsafeUnpin for WindowView<'a, W>
impl<'a, W> UnwindSafe for WindowView<'a, W>
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