Struct prototty_elements::elements::Canvas [] [src]

pub struct Canvas { /* fields omitted */ }

A rectangular drawing element.

Methods

impl Canvas
[src]

[src]

[src]

Returns a mutable reference to a cell at the given coordinate.

[src]

Returns a reference to a cell at the given coordinate.

[src]

Returns an iterator over the coordinates of the canvas.

[src]

Returns an iterator over the cells in the canvas.

[src]

Returns a iterator that allows modifying each cell.

[src]

Returns an iterator over pairs of coordinates and cells.

[src]

Returns an iterator over pairs of coordinates and cells allowing modification of the cells.

Trait Implementations

impl Debug for Canvas
[src]

[src]

Formats the value using the given formatter.

impl Clone for Canvas
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl View for Canvas
[src]

[src]

Update the cells in grid to describe how a type should be rendered. Implementations of view for low level ui components will typically involve updating cells directly. Implementations for higer level components, such as an entire application's ui, will typically call the view methed of lower level components which make up the ui. Read more

impl ViewSize for Canvas
[src]

[src]

Returns the size in cells of the rectangle containing a ui element. This allows for the implementation of decorator ui components that render a border around some inner element. Read more