Trait surf_n_term::render::TerminalSurfaceExt[][src]

pub trait TerminalSurfaceExt: SurfaceMut<Item = Cell> {
    fn draw_box(&mut self, face: Option<Face>);
fn draw_image_ascii(&mut self, img: impl Surface<Item = RGBA>);
fn draw_image(&mut self, img: Image);
fn erase(&mut self, color: Option<RGBA>);
fn writer(&mut self) -> TerminalWriter<'_>

Notable traits for TerminalWriter<'a>

impl<'a> Write for TerminalWriter<'a>
; }

Terminal surface extention trait

Required methods

fn draw_box(&mut self, face: Option<Face>)[src]

Draw box

fn draw_image_ascii(&mut self, img: impl Surface<Item = RGBA>)[src]

Draw image encoded as ascii blocks

fn draw_image(&mut self, img: Image)[src]

Draw image

fn erase(&mut self, color: Option<RGBA>)[src]

Erase surface with provided color

fn writer(&mut self) -> TerminalWriter<'_>

Notable traits for TerminalWriter<'a>

impl<'a> Write for TerminalWriter<'a>
[src]

Write object that can be used to add text to the surface

Loading content...

Implementors

impl<S> TerminalSurfaceExt for S where
    S: SurfaceMut<Item = Cell>, 
[src]

fn draw_box(&mut self, face: Option<Face>)[src]

fn draw_image_ascii(&mut self, img: impl Surface<Item = RGBA>)[src]

fn draw_image(&mut self, img: Image)[src]

fn erase(&mut self, color: Option<RGBA>)[src]

fn writer(&mut self) -> TerminalWriter<'_>

Notable traits for TerminalWriter<'a>

impl<'a> Write for TerminalWriter<'a>
[src]

Loading content...