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.
27 lines
574 B
27 lines
574 B
|
|
//
|
|
// CanvasPattern.h
|
|
//
|
|
// Copyright (c) 2011 LearnBoost <tj@learnboost.com>
|
|
//
|
|
|
|
#ifndef __NODE_PATTERN_H__
|
|
#define __NODE_PATTERN_H__
|
|
|
|
#include "Canvas.h"
|
|
|
|
class Pattern: public Nan::ObjectWrap {
|
|
public:
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target);
|
|
static NAN_METHOD(New);
|
|
Pattern(cairo_surface_t *surface);
|
|
inline cairo_pattern_t *pattern(){ return _pattern; }
|
|
|
|
private:
|
|
~Pattern();
|
|
// TODO REPEAT/REPEAT_X/REPEAT_Y
|
|
cairo_pattern_t *_pattern;
|
|
};
|
|
|
|
#endif
|
|
|