pub fn draw<FnAction>(&self, action: FnAction)
    where FnAction: Send+FnOnce(&mut CanvasGraphicsContext) -> () {
        self.core.sync(move |core| {
            let mut graphics_context = CanvasGraphicsContext {
                core:       core,
                pending:    vec![]
            };

            action(&mut graphics_context);
        })
    }
///
/// Provides a way to draw on this canvas via a GC
///
Provides a way to draw on this canvas via a GC
Provides a way to draw on this canvas via a GC
pub fn draw<FnAction>(&self, action: FnAction)
    where FnAction: Send+FnOnce(&mut CanvasGraphicsContext) -> () {
        self.core.sync(move |core| {
            let mut graphics_context = CanvasGraphicsContext {
                core:       core,
                pending:    vec![]
            };
            action(&mut graphics_context);
        })
    }
pub fn draw < FnAction > ( & self , action : FnAction ) where FnAction : Send + FnOnce ( & mut CanvasGraphicsContext ) -> ( ) { self . core . sync ( move | core | { let mut graphics_context = CanvasGraphicsContext { core : core , pending : vec ! [ ] } ; action ( & mut graphics_context ) ; } ) }
Provides a way to draw on this canvas via a GC
Provides a way to draw on this canvas via a GC
&self
action
FnAction