[−][src]Struct cursive_buffered_backend::BufferedBackend
Methods
impl BufferedBackend
[src]
Trait Implementations
impl Backend for BufferedBackend
[src]
fn poll_event(&mut self) -> Option<Event>
[src]
fn finish(&mut self)
[src]
Prepares to close the backend.
This should clear any state in the terminal.
fn refresh(&mut self)
[src]
Refresh the screen.
fn has_colors(&self) -> bool
[src]
Should return true
if this backend supports colors.
fn screen_size(&self) -> Vec2
[src]
Returns the screen size.
fn print_at(&self, pos: Vec2, text: &str)
[src]
Main method used for printing
fn clear(&self, color: Color)
[src]
Clears the screen with the given color.
fn set_color(&self, colors: ColorPair) -> ColorPair
[src]
Starts using a new color.
This should return the previously active color.
fn set_effect(&self, effect: Effect)
[src]
Enables the given effect.
fn unset_effect(&self, effect: Effect)
[src]
Disables the given effect.
fn name(&self) -> &str
[src]
Returns a name to identify the backend.
Mostly used for debugging.
fn print_at_rep(&self, pos: XY<usize>, repetitions: usize, text: &str)
[src]
First positions the cursor, similar to print_at
, and then prints the given number of repetitions
of text
. Read more
Auto Trait Implementations
impl !Send for BufferedBackend
impl !Sync for BufferedBackend
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> With for T
[src]
fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure on self
.
fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
[src]
F: FnOnce(&mut Self) -> Result<(), E>,
Calls the given closure on self
.
fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
Calls the given closure if condition == true
.