Struct broot::display::Screen [−][src]
The dimensions of the screen
Fields
width: u16
height: u16
Implementations
impl Screen
[src]
impl Screen
[src]pub fn new(con: &AppContext) -> 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]
self,
w: &mut W,
area: &Area
) -> Result<(), ProgramError>
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]
&self,
w: &mut W,
panel_skin: &PanelSkin
) -> Result<(), ProgramError>
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)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Screen
impl RefUnwindSafe for Screen
impl UnwindSafe for Screen
impl UnwindSafe for Screen