mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Now building and passing tests locally in node v0.10.40 v0.12.7 and v4.1.1. Other modules would not build at node lower than v0.10, so I stopped there.
20 lines
359 B
C++
20 lines
359 B
C++
#include "OpenCV.h"
|
|
|
|
class NamedWindow: public Nan::ObjectWrap {
|
|
public:
|
|
std::string winname;
|
|
int flags;
|
|
|
|
static Nan::Persistent<FunctionTemplate> constructor;
|
|
static void Init(Local<Object> target);
|
|
static NAN_METHOD(New);
|
|
|
|
NamedWindow(const std::string& winname, int flags);
|
|
|
|
JSFUNC(Show)
|
|
;JSFUNC(Destroy)
|
|
;JSFUNC(BlockingWaitKey)
|
|
;
|
|
|
|
};
|