[][src]Struct tui::widgets::canvas::Context

pub struct Context<'a> { /* fields omitted */ }

Holds the state of the Canvas when painting to it.

Methods

impl<'a> Context<'a>[src]

pub fn draw<'b, S>(&mut self, shape: &'b S) where
    S: Shape<'b>, 
[src]

Draw any object that may implement the Shape trait

pub fn layer(&mut self)[src]

Go one layer above in the canvas.

pub fn print(&mut self, x: f64, y: f64, text: &'a str, color: Color)[src]

Print a string on the canvas at the given position

Auto Trait Implementations

impl<'a> Send for Context<'a>

impl<'a> Sync for Context<'a>

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]