You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
745 B

14 years ago
//
// CanvasGradient.h
14 years ago
//
// Copyright (c) 2010 LearnBoost <tj@learnboost.com>
//
#ifndef __NODE_GRADIENT_H__
#define __NODE_GRADIENT_H__
#include "Canvas.h"
14 years ago
class Gradient: public node::ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor;
14 years ago
static void Initialize(Handle<Object> target);
static Handle<Value> New(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 r0, double x1, double y1, double r1);
inline cairo_pattern_t *pattern(){ return _pattern; }
14 years ago
private:
~Gradient();
14 years ago
double _x0, _y0, _x1, _y1, _r0, _r1;
cairo_pattern_t *_pattern;
14 years ago
};
14 years ago
#endif