Struct termfest::ScreenLock

source ·
pub struct ScreenLock<'a> { /* private fields */ }
Expand description

ScreenLock is a locked screen buffer, created by Termfest::lock_screen. When it is dropped, the buffered state will be flushed to the terminal. All rendering manipulation is implemented in ScreenLock.

Implementations

flushes the internal buffer states to the terminal. Even if this function is not called, the buffer will be flushed when self is dropped.

clear the internal buffer states. If clear and flush is called, the terminal will be cleared (nothing will be rendered).

print string with the given attribute. It is equal to put_cell calls with each character.

returns the width and height of the terminal.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.