mirror of
https://github.com/alibaba/GCanvas.git
synced 2025-12-08 17:36:42 +00:00
20 lines
539 B
C++
20 lines
539 B
C++
#ifndef PATTERN_H
|
|
#define PATTERN_H
|
|
#include <napi.h>
|
|
#include <iostream>
|
|
#include "Image.h"
|
|
namespace NodeBinding
|
|
{
|
|
class Pattern : public Napi::ObjectWrap<Pattern> {
|
|
public:
|
|
Pattern(const Napi::CallbackInfo& info);
|
|
static void Init(Napi::Env env);
|
|
static Napi::Object NewInstance(Napi::Env env, const Napi::Value repetition);
|
|
std::shared_ptr<Image> content;
|
|
const std::string& getRepetition();
|
|
private:
|
|
static Napi::FunctionReference constructor;
|
|
std::string repetition;
|
|
};
|
|
} // namespace NodeBinding
|
|
#endif |