pub struct Window {
pub mode: Mode,
pub dimensions: Position,
/* private fields */
}Fields§
§mode: Mode§dimensions: PositionSize Of Window
Implementations§
Source§impl Window
impl Window
pub fn new(width: u16, height: u16, buffer: Rc<RefCell<Buffer>>) -> Self
pub fn with_position(self, pos: Position) -> Self
pub fn with_line_numbers(self, line_number_type: LineNumbers) -> Self
pub fn with_status_bar(self, state: bool) -> Self
pub fn set_buffer(&mut self, buffer: Rc<RefCell<Buffer>>)
pub fn set_number(&mut self, number_type: LineNumbers)
pub fn buffer(&self) -> Ref<'_, Buffer>
pub fn buffer_mut(&mut self) -> RefMut<'_, Buffer>
pub fn dimensions(&self) -> Position
pub fn position(&self) -> Position
pub fn offset(&self) -> Position
pub fn set_cursor(&mut self, pos: Position)
pub fn height(&self) -> usize
pub fn width(&self) -> usize
pub fn text_width(&self) -> usize
pub fn cursor_file(&self) -> Position
pub fn cursor_screen(&self) -> Position
pub fn scroll_down(&mut self, lines: usize)
pub fn scroll_up(&mut self, lines: usize)
pub fn move_cursor_down(&mut self, lines: usize)
pub fn move_cursor_up(&mut self, lines: usize)
pub fn adjust_cursor_x(&mut self)
pub fn move_cursor_left(&mut self, cols: usize)
pub fn scroll_left(&mut self, cols: usize)
pub fn move_forward_by_word(&mut self)
pub fn move_backward_by_word(&mut self)
pub fn move_cursor_right(&mut self, cols: usize)
pub fn scroll_right(&mut self, cols: usize)
pub fn insert_newline(&mut self)
pub fn first_char_in_line(&mut self)
pub fn jump_to_first_line_buffer(&mut self)
pub fn jump_to_last_line_buffer(&mut self)
pub fn backspace(&mut self)
pub fn delete(&mut self)
pub fn insert_char(&mut self, c: char)
pub fn delete_line(&mut self)
pub fn home(&mut self)
pub fn end(&mut self)
pub fn save(&self)
pub fn get_status_bar(&self) -> Option<((u16, u16), String)>
pub fn get_line_number(&self) -> Option<((u16, u16), String)>
pub fn get_text_feild(&self) -> Option<((u16, u16), String)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
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