/// Provide access to the drawing context.
///
/// Useful for tessellation.
Provide access to the drawing context.
Useful for tessellation.
Provide access to the drawing context . Useful for tessellation .
pub fn drawing_context<F, T>(&mut self, f: F) -> T
    where
        F: FnOnce(DrawingContext<S>) -> T,
    {
        let state = self.state.borrow_mut();
        let mut intermediary_state = state.intermediary_state.borrow_mut();
        let super::IntermediaryState {
            ref mut intermediary_mesh,
            ref mut fill_tessellator,
            ref mut path_event_buffer,
            ref mut text_buffer,
            ref mut glyph_cache,
        } = *intermediary_state;
        f(DrawingContext {
            mesh: intermediary_mesh,
            fill_tessellator: &mut fill_tessellator.0,
            path_event_buffer: path_event_buffer,
            text_buffer: text_buffer,
            glyph_cache: glyph_cache,
        })
    }
pub fn drawing_context < F , T > ( & mut self , f : F ) -> T where F : FnOnce ( DrawingContext < S > ) -> T , { let state = self . state . borrow_mut ( ) ; let mut intermediary_state = state . intermediary_state . borrow_mut ( ) ; let super :: IntermediaryState { ref mut intermediary_mesh , ref mut fill_tessellator , ref mut path_event_buffer , ref mut text_buffer , ref mut glyph_cache , } = * intermediary_state ; f ( DrawingContext { mesh : intermediary_mesh , fill_tessellator : & mut fill_tessellator . 0 , path_event_buffer : path_event_buffer , text_buffer : text_buffer , glyph_cache : glyph_cache , } ) }
Provide access to the drawing context.
Provide access to the drawing context .
&mut self
f
F