From d81edff82784fe4fa5733a675f5d776346ecbe7d Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 19 Nov 2010 12:06:54 -0800 Subject: [PATCH] Added Context2d::setContext() --- src/CanvasRenderingContext2d.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CanvasRenderingContext2d.h b/src/CanvasRenderingContext2d.h index f4b127c..d73dd6f 100644 --- a/src/CanvasRenderingContext2d.h +++ b/src/CanvasRenderingContext2d.h @@ -103,6 +103,7 @@ class Context2d: public node::ObjectWrap { static void SetShadowOffsetY(Local prop, Local val, const AccessorInfo &info); static void SetShadowBlur(Local prop, Local val, const AccessorInfo &info); static void SetAntiAlias(Local prop, Local val, const AccessorInfo &info); + inline void setContext(cairo_t *ctx) { _context = ctx; } inline cairo_t *context(){ return _context; } inline Canvas *canvas(){ return _canvas; } inline bool hasShadow();