[][src]Struct nannou::draw::DrawingContext

pub struct DrawingContext<'a, S> {
    pub mesh: &'a mut Mesh<S>,
    pub path_event_buffer: &'a mut Vec<PathEvent>,
    pub path_points_colored_buffer: &'a mut Vec<(Point2<S>, Color)>,
    pub path_points_textured_buffer: &'a mut Vec<(Point2<S>, Point2<S>)>,
    pub text_buffer: &'a mut String,
}

Some context that may be optionally provided to primitives in the drawing implementation.

This is particularly useful for paths and meshes.

Fields

mesh: &'a mut Mesh<S>

The intermediary mesh for buffering yet-to-be-drawn paths and meshes.

path_event_buffer: &'a mut Vec<PathEvent>

A re-usable buffer for collecting path events.

path_points_colored_buffer: &'a mut Vec<(Point2<S>, Color)>

A re-usable buffer for collecting colored polyline points.

path_points_textured_buffer: &'a mut Vec<(Point2<S>, Point2<S>)>

A re-usable buffer for collecting textured polyline points.

text_buffer: &'a mut String

A re-usable buffer for collecting text.

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for DrawingContext<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for DrawingContext<'a, S> where
    S: Send

impl<'a, S> Sync for DrawingContext<'a, S> where
    S: Sync

impl<'a, S> Unpin for DrawingContext<'a, S>

impl<'a, S> !UnwindSafe for DrawingContext<'a, S>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> SetParameter for T

impl<T> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,