[][src]Struct broot::screens::Screen

pub struct Screen {
    pub width: u16,
    pub height: u16,
    pub skin: Skin,
    pub input_field: InputField,
    pub status_skin: StatusMadSkinSet,
    pub help_skin: MadSkin,
}

Fields

width: u16height: u16skin: Skininput_field: InputFieldstatus_skin: StatusMadSkinSethelp_skin: MadSkin

Implementations

impl Screen[src]

pub fn new(con: &AppContext, skin: Skin) -> 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_clear(
    &self,
    w: &mut impl Write,
    x: u16,
    y: u16
) -> Result<(), ProgramError>
[src]

move the cursor to x,y and clears the line.

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

move the cursor to x,y

pub fn clear(&self, w: &mut impl Write) -> Result<(), ProgramError>[src]

clear the whole screen

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

clear from the cursor to the end of line

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.