#include "macros.h" #include #include "Point.h" #include "Size.h" #include "Rect.h" #ifndef __FF_ROTATEDRECT_H__ #define __FF_ROTATEDRECT_H__ class RotatedRect : public FF::ObjectWrap { public: static Nan::Persistent constructor; static const char* getClassName() { return "RotatedRect"; } static NAN_MODULE_INIT(Init); static NAN_METHOD(New); FF_ACCESSORS(angle, FF::FloatConverter); FF_ACCESSORS(center, Point2::Converter); FF_ACCESSORS(size, Size::Converter); static NAN_METHOD(BoundingRect) { info.GetReturnValue().Set(Rect::Converter::wrap(unwrapSelf(info).boundingRect())); } }; #endif