[−][src]Struct cursive::backend::puppet::Backend
Puppet backend for testing.
Methods
impl Backend
[src]
pub fn init(size_op: Option<Vec2>) -> Box<Backend> where
Self: Sized,
[src]
Self: Sized,
Creates new Puppet backend of given or default size.
pub fn current_style(&self) -> Rc<ObservedStyle>
[src]
Returns current ObservedStyle
pub fn stream(&self) -> Receiver<ObservedScreen>
[src]
Ouput stream of consecutive frames rendered by Puppet backend
pub fn input(&self) -> Sender<Option<Event>>
[src]
Input stream to inject artificial input to Puppet backend.
Trait Implementations
impl Backend for Backend
[src]
fn poll_event(&mut self) -> Option<Event>
[src]
fn finish(&mut self)
[src]
fn refresh(&mut self)
[src]
fn has_colors(&self) -> bool
[src]
fn screen_size(&self) -> Vec2
[src]
fn print_at(&self, pos: Vec2, text: &str)
[src]
fn clear(&self, clear_color: Color)
[src]
fn set_color(&self, new_colors: ColorPair) -> ColorPair
[src]
fn set_effect(&self, effect: Effect)
[src]
fn unset_effect(&self, effect: Effect)
[src]
fn print_at_rep(&self, pos: Vec2, 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
fn name(&self) -> &str
[src]
Returns a name to identify the backend. Read more
Auto Trait Implementations
impl !Sync for Backend
impl !Send for Backend
impl Unpin for Backend
impl !RefUnwindSafe for Backend
impl UnwindSafe for Backend
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,