[][src]Struct plotters_conrod::ConrodBackend

pub struct ConrodBackend<'a, 'b> { /* fields omitted */ }

The Conrod drawing backend

Implementations

impl<'a, 'b> ConrodBackend<'a, 'b>[src]

pub fn new(
    ui: &'a mut UiCell<'b>,
    size: (u32, u32),
    parent: Id,
    font: Id,
    graph: &'a mut ConrodBackendReusableGraph
) -> Self
[src]

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

impl<'a, 'b> DrawingBackend for ConrodBackend<'a, 'b>[src]

type ErrorType = ConrodBackendError

The error type reported by the backend

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for ConrodBackend<'a, 'b>

impl<'a, 'b> Send for ConrodBackend<'a, 'b>

impl<'a, 'b> !Sync for ConrodBackend<'a, 'b>

impl<'a, 'b> Unpin for ConrodBackend<'a, 'b> where
    'b: 'a, 

impl<'a, 'b> !UnwindSafe for ConrodBackend<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.