[−][src]Struct broot::display::Screen
The dimensions of the screen
Fields
width: u16
height: u16
Implementations
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
[src]
impl Send for Screen
[src]
impl Sync for Screen
[src]
impl Unpin for Screen
[src]
impl UnwindSafe for Screen
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,