|
@ -12,13 +12,13 @@ |
|
|
|
|
|
|
|
|
class Gradient: public node::ObjectWrap { |
|
|
class Gradient: public node::ObjectWrap { |
|
|
public: |
|
|
public: |
|
|
|
|
|
static Persistent<FunctionTemplate> constructor; |
|
|
static void Initialize(Handle<Object> target); |
|
|
static void Initialize(Handle<Object> target); |
|
|
static Handle<Value> New(const Arguments &args); |
|
|
static Handle<Value> New(const Arguments &args); |
|
|
static Handle<Value> AddColorStopRGBA(const Arguments &args); |
|
|
static Handle<Value> AddColorStopRGBA(const Arguments &args); |
|
|
Gradient(double x0, double y0, double x1, double y1); |
|
|
Gradient(double x0, double y0, double x1, double y1); |
|
|
Gradient(double x0, double y0, double r0, double x1, double y1, double r1); |
|
|
Gradient(double x0, double y0, double r0, double x1, double y1, double r1); |
|
|
inline cairo_pattern_t *pattern(){ return _pattern; } |
|
|
inline cairo_pattern_t *pattern(){ return _pattern; } |
|
|
static Persistent<FunctionTemplate> constructor; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
~Gradient(); |
|
|
~Gradient(); |
|
|