Struct kansas::Canvas[][src]

pub struct Canvas { /* fields omitted */ }

Methods

impl Canvas
[src]

create a new Canvas

register a function to be used as an event handler

note: as of right now, registering the same event twice will overwrite the previous handler function

get a mutable reference to the canvas's context

hold execution until user hits Esc

Methods from Deref<Target = Context>

dimensions

set fill color

fill rectangle with preset fill color

fill rectangle using a fill function

set a pixel to a specific color

this is a low level texture operation and is not effected by preset colors or alpha blending

Trait Implementations

impl Deref for Canvas
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Canvas
[src]

Mutably dereferences the value.

Auto Trait Implementations

impl !Send for Canvas

impl !Sync for Canvas