Initial commit
[yaffs-website] / node_modules / node-sass / src / sass_types / color.h
1 #ifndef SASS_TYPES_COLOR_H
2 #define SASS_TYPES_COLOR_H
3
4 #include <nan.h>
5 #include "sass_value_wrapper.h"
6
7 namespace SassTypes
8 {
9   class Color : public SassValueWrapper<Color> {
10     public:
11       Color(Sass_Value*);
12       static char const* get_constructor_name() { return "SassColor"; }
13       static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
14
15       static void initPrototype(v8::Local<v8::FunctionTemplate>);
16
17       static NAN_METHOD(GetR);
18       static NAN_METHOD(GetG);
19       static NAN_METHOD(GetB);
20       static NAN_METHOD(GetA);
21       static NAN_METHOD(SetR);
22       static NAN_METHOD(SetG);
23       static NAN_METHOD(SetB);
24       static NAN_METHOD(SetA);
25   };
26 }
27
28 #endif