[][src]Struct cursive_buffered_backend::BufferedBackend

pub struct BufferedBackend { /* fields omitted */ }

Methods

impl BufferedBackend[src]

pub fn new(backend: Box<dyn Backend>) -> Self[src]

Trait Implementations

impl Backend for BufferedBackend[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

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> With for T[src]

fn with<F>(self, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

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]

Calls the given closure on self.

fn with_if<F>(self, condition: bool, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure if condition == true.

impl<T> Erased for T