forked from mmod/nodaklay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpottr.h
48 lines (38 loc) · 1.36 KB
/
pottr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* package: nodaklay
* version: 0.0.1
* author: Richard B. Winters <a href="mailto:[email protected]">rik At MassivelyModified</a>
* copyright: 2013-2014 Massively Modified, Inc.
* license: Apache, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>
*/
#ifndef POTTR_H
#define POTTR_H
// INCLUDES
#include <v8.h>
#include <node.h>
/**
* NodaKlay Layout Facility
*
* Allows one to work with a simple yet powerful layout rendering system using JavaScript in Node.js. Works using the NodaKlay C++
* Parser for Speed and Efficiency.
*
* @since 0.0.1
*/
class Pottr : public node::ObjectWrap
{
public:
static void Init( v8::Handle<v8::Object> exports );
private:
explicit Pottr( v8::Local<v8::String> output = v8::String::New( "" ), v8::Persistent<v8::Integer> type = v8::Persistent<v8::Integer>::New( v8::Integer::New( 0 ) ), v8::Handle<v8::Boolean> prepared = v8::Handle<v8::Boolean>( v8::False() ) );
~Pottr();
static v8::Persistent<v8::Function> constructor;
static v8::Handle<v8::Value> New( const v8::Arguments& args );
static v8::Handle<v8::Value> Turn( const v8::Arguments& args );
static v8::Handle<v8::Value> Shape( const v8::Arguments& args );
static v8::Handle<v8::Value> Decorate( const v8::Arguments& args );
public:
v8::Handle<v8::String> _output;
v8::Persistent<v8::Integer> _type;
v8::Handle<v8::Boolean> _prepared;
};
#endif