Struct ascii_canvas::AsciiCanvas [] [src]

pub struct AsciiCanvas { /* fields omitted */ }

Methods

impl AsciiCanvas
[src]

To use an AsciiCanvas, first create the canvas, then draw any lines, then write text labels. It is required to draw the lines first so that we can detect intersecting lines properly (we could track which characters belong to lines, I suppose).

Create a canvas of the given size. We will automatically add rows as needed, but the columns are fixed at creation.

Trait Implementations

impl AsciiView for AsciiCanvas
[src]