mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
25 lines
419 B
C++
25 lines
419 B
C++
#include "OpenCV.h"
|
|
|
|
#ifdef HAVE_OPENCV_HIGHGUI
|
|
|
|
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)
|
|
;JSFUNC(ResizeWindow)
|
|
;
|
|
|
|
};
|
|
|
|
#endif
|