Struct flo_ui::BindingCanvas [] [src]

pub struct BindingCanvas { /* fields omitted */ }

The binding canvas is a canvas that can have an attached rendering function. It will invalidate itself if any bindings used in that rendering function are changed.

Methods

impl BindingCanvas
[src]

[src]

Creates a new BindingCanvas

[src]

Creates a new binding canvas from a canvas

[src]

Creates a new BindingCanvas with a drawing function

[src]

Sets the drawing function for the canvas

Canvases don't have a drawing function by default, so it's safe to draw directly on them as they'll never become invalidated. Once a drawing function is set, any bindings it may have will cause it to become invalidated if they change. Additionally, setting a drawing function will invalidate the canvas.

[src]

Redraws the canvas if it is marked as invalid

[src]

Marks this canvas as invalidated (will be redrawn on the next request)

Methods from Deref<Target = Canvas>

[src]

Sends some new drawing commands to this canvas

[src]

Provides a way to draw on this canvas via a GC

Important traits for Box<W>
[src]

Creates a stream for reading the instructions from this canvas

Important traits for Vec<u8>
[src]

Retrieves the list of drawing actions in this canvas

Trait Implementations

impl Deref for BindingCanvas
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl Send for BindingCanvas

impl Sync for BindingCanvas