-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathNodeImage.h
56 lines (41 loc) · 2.37 KB
/
NodeImage.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
49
50
51
52
53
54
55
56
////////////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------------- //
// //
// (C) 2010-2018 Robot Developers //
// See LICENSE for licensing info //
// //
// -------------------------------------------------------------------------- //
////////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------//
// Prefaces //
//----------------------------------------------------------------------------//
#pragma once
#include "NodeCommon.h"
//----------------------------------------------------------------------------//
// Classes //
//----------------------------------------------------------------------------//
////////////////////////////////////////////////////////////////////////////////
class ImageWrap : public ObjectWrap
{
DECLARE_ROBOT_TYPE (Image);
private:
static void IsValid (const FunctionCallbackInfo<Value>& args);
static void Create (const FunctionCallbackInfo<Value>& args);
static void Destroy (const FunctionCallbackInfo<Value>& args);
static void GetWidth (const FunctionCallbackInfo<Value>& args);
static void GetHeight (const FunctionCallbackInfo<Value>& args);
static void GetLength (const FunctionCallbackInfo<Value>& args);
static void GetData (const FunctionCallbackInfo<Value>& args);
static void GetLimit (const FunctionCallbackInfo<Value>& args);
static void GetPixel (const FunctionCallbackInfo<Value>& args);
static void SetPixel (const FunctionCallbackInfo<Value>& args);
static void Fill (const FunctionCallbackInfo<Value>& args);
static void Swap (const FunctionCallbackInfo<Value>& args);
static void Flip (const FunctionCallbackInfo<Value>& args);
static void Equals (const FunctionCallbackInfo<Value>& args);
static void New (const FunctionCallbackInfo<Value>& args);
public:
static void Initialize (Handle<Object> exports);
public:
Image mImage;
};