|
@ -24,6 +24,8 @@ class Context2d: public node::ObjectWrap { |
|
|
rgba_t fill; |
|
|
rgba_t fill; |
|
|
rgba_t stroke; |
|
|
rgba_t stroke; |
|
|
rgba_t shadow; |
|
|
rgba_t shadow; |
|
|
|
|
|
double shadowOffsetX; |
|
|
|
|
|
double shadowOffsetY; |
|
|
cairo_pattern_t *fillPattern; |
|
|
cairo_pattern_t *fillPattern; |
|
|
cairo_pattern_t *strokePattern; |
|
|
cairo_pattern_t *strokePattern; |
|
|
float globalAlpha; |
|
|
float globalAlpha; |
|
@ -62,12 +64,16 @@ class Context2d: public node::ObjectWrap { |
|
|
static Handle<Value> GetLineCap(Local<String> prop, const AccessorInfo &info); |
|
|
static Handle<Value> GetLineCap(Local<String> prop, const AccessorInfo &info); |
|
|
static Handle<Value> GetLineJoin(Local<String> prop, const AccessorInfo &info); |
|
|
static Handle<Value> GetLineJoin(Local<String> prop, const AccessorInfo &info); |
|
|
static Handle<Value> GetLineWidth(Local<String> prop, const AccessorInfo &info); |
|
|
static Handle<Value> GetLineWidth(Local<String> prop, const AccessorInfo &info); |
|
|
|
|
|
static Handle<Value> GetShadowOffsetX(Local<String> prop, const AccessorInfo &info); |
|
|
|
|
|
static Handle<Value> GetShadowOffsetY(Local<String> prop, const AccessorInfo &info); |
|
|
static void SetGlobalCompositeOperation(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetGlobalCompositeOperation(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetGlobalAlpha(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetGlobalAlpha(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetMiterLimit(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetMiterLimit(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineCap(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineCap(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineJoin(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineJoin(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineWidth(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
static void SetLineWidth(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
|
|
|
static void SetShadowOffsetX(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
|
|
|
static void SetShadowOffsetY(Local<String> prop, Local<Value> val, const AccessorInfo &info); |
|
|
inline cairo_t *getContext(){ return _context; } |
|
|
inline cairo_t *getContext(){ return _context; } |
|
|
inline Canvas *getCanvas(){ return _canvas; } |
|
|
inline Canvas *getCanvas(){ return _canvas; } |
|
|
|
|
|
|
|
|