[][src]Struct broot::display::Screen

pub struct Screen {
    pub width: u16,
    pub height: u16,
}

Fields

width: u16height: u16

Implementations

impl Screen[src]

pub fn new(con: &AppContext, _conf: &Conf) -> Result<Screen, ProgramError>[src]

pub fn set_terminal_size(&mut self, w: u16, h: u16, con: &AppContext)[src]

pub fn read_size(&mut self, con: &AppContext) -> Result<(), ProgramError>[src]

pub fn goto(&self, w: &mut W, x: u16, y: u16) -> Result<(), ProgramError>[src]

move the cursor to x,y

pub fn clear_line(&self, w: &mut W) -> Result<(), ProgramError>[src]

clear from the cursor to the end of line

pub fn clear_area_to_right(
    &self,
    w: &mut W,
    area: &Area
) -> Result<(), ProgramError>
[src]

clear the area and everything to the right. Should be used with parcimony as it could lead to flickering.

pub fn clear_bottom_right_char(
    &self,
    w: &mut W,
    panel_skin: &PanelSkin
) -> Result<(), ProgramError>
[src]

just clears the char at the bottom right. (any redraw of this position makes the whole terminal flicker on some terminals like win/conemu, so we draw it only once at start of the app)

Auto Trait Implementations

impl RefUnwindSafe for Screen

impl Send for Screen

impl Sync for Screen

impl Unpin for Screen

impl UnwindSafe for Screen

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.