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

pub struct DrawingContext<'a, S> {
    pub mesh: &'a mut IntermediaryMesh<S>,
    pub fill_tessellator: &'a mut FillTessellator,
    pub path_event_buffer: &'a mut Vec<PathEvent>,
    pub text_buffer: &'a mut String,
    pub glyph_cache: &'a mut GlyphCache,
}

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 IntermediaryMesh<S>

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

fill_tessellator: &'a mut FillTessellator

A re-usable fill tessellator for 2D paths.

path_event_buffer: &'a mut Vec<PathEvent>

A re-usable buffer for collecting path events.

text_buffer: &'a mut String

A re-usable buffer for collecting text.

glyph_cache: &'a mut GlyphCache

Cache for text glyphs.

Auto Trait Implementations

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>

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

Blanket Implementations

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.

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

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

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

impl<T> Content for T[src]

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

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> SetParameter for T

impl<T> SetParameter for T

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