pub struct ConrodBackend<'a, 'b> { /* private fields */ }
Expand description

The Conrod drawing backend

Implementations§

Create a new Conrod backend drawer, with:

  • ui: the UiCell that was derived from Ui for this frame
  • (plot_width, plot_height): the size of your plot in pixels (make sure it matches its parent canvas size)
  • ids.parent: the widget::Id of the canvas that contains your plot (of the same size than the plot itself)
  • fonts.regular: the font::Id of the font to use to draw text (ie. a Conrod font identifier)
  • conrod_graph: a mutable reference to the graph instance you built outside of the drawing loop (pass it as a mutable reference)

Trait Implementations§

The error type reported by the backend
Get the dimension of the drawing backend in pixels
Ensure the backend is ready to draw
Finalize the drawing step and present all the changes. This is used as the real-time rendering support. The backend may implement in the following way, when ensure_prepared is called it checks if it needs a fresh buffer and present is called rendering all the pending changes on the screen.
Draw a pixel on the drawing backend Read more
Draw a line on the drawing backend Read more
Draw a rectangle on the drawing backend Read more
Draw a path on the drawing backend Read more
Draw a circle on the drawing backend Read more
Draw a text on the drawing backend Read more
Estimate the size of the horizontal text if rendered on this backend. This is important because some of the backend may not have font ability. Thus this allows those backend reports proper value rather than ask the font rasterizer for that. Read more
Blit a bitmap on to the backend. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.