wrapper all propertys

This commit is contained in:
Kulikova Svetlana
2020-10-12 18:42:17 +03:00
parent f74105a8ad
commit 9bd4669d99
4 changed files with 785 additions and 37 deletions

View File

@ -5,10 +5,88 @@
CJSGraphics::CJSGraphics()
{
m_oContext = nullptr;
m_dWidthMM = 0.0;
m_dHeightMM = 0.0;
m_lWidthPix = 0.0;
m_lHeightPix = 0.0;
m_dDpiX = 96.0;
m_dDpiY = 96.0;
m_bIsBreak = false;
m_oPen = nullptr; // new AscCommon.CPen();
m_bPenColorInit = false;
m_oBrush = nullptr; // new AscCommon.CBrush();
m_bBrushColorInit = false;
m_oFontManager = nullptr;
m_oCoordTransform = nullptr; // new CMatrixL();
m_oBaseTransform = nullptr; // new CMatrixL();
m_oTransform = nullptr; // new CMatrixL();
m_oFullTransform = nullptr; // new CMatrixL();
m_oInvertFullTransform = nullptr; // new CMatrixL();
ArrayPoints = nullptr;
m_oTextPr = nullptr;
m_oGrFonts = nullptr; // new AscCommon.CGrRFonts();
m_oLastFont = nullptr; // new AscCommon.CFontSetup();
m_bIntegerGrid = true;
ClipManager = nullptr; // new AscCommon.CClipManager();
// ClipManager.BaseObject = this;
TextureFillTransformScaleX = 1;
TextureFillTransformScaleY = 1;
IsThumbnail = false;
IsDemonstrationMode = false;
GrState = nullptr; // new AscCommon.CGrState();
// GrState.Parent = this;
globalAlpha = 1;
TextClipRect = nullptr;
IsClipContext = false;
IsUseFonts2 = false;
m_oFontManager2 = nullptr;
m_oLastFont2 = nullptr;
ClearMode = false;
IsRetina = false;
dash_no_smart = nullptr;
}
void CJSGraphics::init(const v8::Local<v8::Value>& context, double width_px, double height_px, double width_mm, double height_mm)
CJSGraphics::~CJSGraphics()
{
if(m_oContext) delete m_oContext;
if(m_oPen) delete m_oPen;
if(m_oBrush) delete m_oBrush;
if(m_oFontManager) delete m_oFontManager;
if(m_oCoordTransform) delete m_oCoordTransform;
if(m_oBaseTransform) delete m_oBaseTransform;
if(m_oTransform) delete m_oTransform;
if(m_oFullTransform) delete m_oFullTransform;
if(m_oInvertFullTransform) delete m_oInvertFullTransform;
if(ArrayPoints) delete ArrayPoints;
if(m_oTextPr) delete m_oTextPr;
if(m_oGrFonts) delete m_oGrFonts;
if(m_oLastFont) delete m_oLastFont;
if(LastFontOriginInfo.Replace) delete LastFontOriginInfo.Replace;
if(ClipManager) delete ClipManager;
if(GrState) delete GrState;
if(TextClipRect) delete TextClipRect;
if(m_oFontManager2) delete m_oFontManager2;
if(m_oLastFont2) delete m_oLastFont2;
if(dash_no_smart) delete dash_no_smart;
}
void CJSGraphics::init(v8::Local<v8::Value>* context, double width_px, double height_px, double width_mm, double height_mm)
{
m_oContext = context;
m_lHeightPix = height_px; // height_px >> 0;
@ -765,7 +843,7 @@ void CJSGraphics::SetFont(const v8::Local<v8::Value>& font)
*/
}
void CJSGraphics::SetTextPr(v8::Local<v8::Value>* textPr, v8::Local<v8::Value>* theme)
void CJSGraphics::SetTextPr(const v8::Local<v8::Value>& textPr, const v8::Local<v8::Value>& theme)
{
/*
m_oTextPr = textPr;

View File

@ -17,49 +17,79 @@ struct CFont
CFont() : Name(""), FontSize(10), Bold(false), Italic(false) {}
};
struct CLastFontOriginInfo
{
std::string Name;
v8::Local<v8::Value>* Replace;
CLastFontOriginInfo() : Name(""), Replace(nullptr) {}
};
class CJSGraphics
{
private:
v8::Local<v8::Value> m_oContext;
v8::Local<v8::Value>* m_oContext;
double m_dWidthMM;
double m_dHeightMM;
double m_lWidthPix;
double m_lHeightPix;
double m_dDpiX;
double m_dDpiY;
bool m_bIsBreak;
v8::Local<v8::Value> m_oPen;
v8::Local<v8::Value>* m_oPen;
bool m_bPenColorInit;
v8::Local<v8::Value> m_oBrush;
v8::Local<v8::Value>* m_oBrush;
bool m_bBrushColorInit;
v8::Local<v8::Value>* m_oFontManager;
v8::Local<v8::Value> m_oCoordTransform;
v8::Local<v8::Value> m_oTransform;
v8::Local<v8::Value> m_oFullTransform;
v8::Local<v8::Value> m_oInvertFullTransform;
v8::Local<v8::Value>* m_oCoordTransform;
v8::Local<v8::Value>* m_oBaseTransform;
v8::Local<v8::Value>* m_oTransform;
v8::Local<v8::Value>* m_oFullTransform;
v8::Local<v8::Value>* m_oInvertFullTransform;
v8::Local<v8::Value>* ArrayPoints;
CFont m_oCurFont;
v8::Local<v8::Value>* m_oTextPr;
v8::Local<v8::Value> m_oGrFonts;
v8::Local<v8::Value> m_oLastFont;
v8::Local<v8::Value>* m_oGrFonts;
v8::Local<v8::Value>* m_oLastFont;
CLastFontOriginInfo LastFontOriginInfo;
bool m_bIntegerGrid;
v8::Local<v8::Value>* ClipManager;
int TextureFillTransformScaleX;
int TextureFillTransformScaleY;
bool IsThumbnail;
int globalAlpha = 1;
bool IsDemonstrationMode;
v8::Local<v8::Value> dash_no_smart;
v8::Local<v8::Value>* GrState;
int globalAlpha;
v8::Local<v8::Value>* TextClipRect;
bool IsClipContext;
bool IsUseFonts2;
v8::Local<v8::Value>* m_oFontManager2;
v8::Local<v8::Value>* m_oLastFont2;
bool ClearMode;
bool IsRetina;
v8::Local<v8::Value>* dash_no_smart;
public:
CJSGraphics();
~CJSGraphics();
void init(const v8::Local<v8::Value>& context, double width_px, double height_px, double width_mm, double height_mm);
void init(v8::Local<v8::Value>* context, double width_px, double height_px, double width_mm, double height_mm);
void EndDraw() {}
void put_GlobalAlpha(bool enable, int globalAlpha);
void Start_GlobalAlpha() {}
@ -98,7 +128,7 @@ public:
CFont GetFont();
void font(unsigned int font_id, int font_size);
void SetFont(const v8::Local<v8::Value>& font);
void SetTextPr(v8::Local<v8::Value>* textPr, v8::Local<v8::Value>* theme);
void SetTextPr(const v8::Local<v8::Value>& textPr, const v8::Local<v8::Value>& theme);
void SetFontSlot(const v8::Local<v8::Value>& slot, double fontSizeKoef);
v8::Local<v8::Value> GetTextPr();
void FillText(double x, double y, const v8::Local<v8::Value>& text);
@ -161,8 +191,87 @@ public:
void DrawPolygon(const v8::Local<v8::Value>& oPath, int lineWidth, double shift);
void DrawFootnoteRect(double x, double y, double w, double h);
v8::Local<v8::Value>* m_oContext_get() { return m_oContext; }
double m_dWidthMM_get() { return m_dWidthMM; }
double m_dHeightMM_get() { return m_dHeightMM; }
double m_lWidthPix_get() { return m_lWidthPix; }
double m_lHeightPix_get() { return m_lHeightPix; }
double m_dDpiX_get() { return m_dDpiX; }
double m_dDpiY_get() { return m_dDpiY; }
bool m_bIsBreak_get() { return m_bIsBreak; }
v8::Local<v8::Value>* m_oPen_get() { return m_oPen; }
bool m_bPenColorInit_get() { return m_bPenColorInit; }
v8::Local<v8::Value>* m_oBrush_get() { return m_oBrush; }
bool m_bBrushColorInit_get() { return m_bBrushColorInit; }
v8::Local<v8::Value>* m_oFontManager_get() { return m_oFontManager; }
v8::Local<v8::Value>* m_oCoordTransform_get() { return m_oCoordTransform; }
v8::Local<v8::Value>* m_oBaseTransform_get() { return m_oBaseTransform; }
v8::Local<v8::Value>* m_oTransform_get() { return m_oTransform; }
v8::Local<v8::Value>* m_oFullTransform_get() { return m_oFullTransform; }
v8::Local<v8::Value>* m_oInvertFullTransform_get() { return m_oInvertFullTransform; }
v8::Local<v8::Value>* ArrayPoints_get() { return ArrayPoints; }
CFont m_oCurFont_get() { return m_oCurFont; }
v8::Local<v8::Value>* m_oTextPr_get() { return m_oTextPr; }
v8::Local<v8::Value>* m_oGrFonts_get() { return m_oGrFonts; }
v8::Local<v8::Value>* m_oLastFont_get() { return m_oLastFont; }
CLastFontOriginInfo LastFontOriginInfo_get() { return LastFontOriginInfo; }
bool m_bIntegerGrid_get() { return m_bIntegerGrid; }
v8::Local<v8::Value>* ClipManager_get() { return ClipManager; }
int TextureFillTransformScaleX_get() { return TextureFillTransformScaleX; }
int TextureFillTransformScaleY_get() { return TextureFillTransformScaleY; }
bool IsThumbnail_get() { return IsThumbnail; }
bool IsDemonstrationMode_get() { return IsDemonstrationMode; }
v8::Local<v8::Value>* GrState_get() { return GrState; }
int globalAlpha_get() { return globalAlpha; }
v8::Local<v8::Value>* TextClipRect_get() { return TextClipRect; }
bool IsClipContext_get() { return IsClipContext; }
bool IsUseFonts2_get() { return IsUseFonts2; }
v8::Local<v8::Value>* m_oFontManager2_get() { return m_oFontManager2; }
v8::Local<v8::Value>* m_oLastFont2_get() { return m_oLastFont2; }
bool ClearMode_get() { return ClearMode; }
bool IsRetina_get() { return IsRetina; }
v8::Local<v8::Value>* dash_no_smart_get() { return dash_no_smart; }
void m_oContext_set(v8::Local<v8::Value>* a) { m_oContext = a; }
void m_dWidthMM_set(double a) { m_dWidthMM = a; }
void m_dHeightMM_set(double a) { m_dHeightMM = a; }
void m_lWidthPix_set(double a) { m_lWidthPix = a; }
void m_lHeightPix_set(double a) { m_lHeightPix = a; }
void m_dDpiX_set(double a) { m_dDpiX = a; }
void m_dDpiY_set(double a) { m_dDpiY = a; }
void m_bIsBreak_set(bool a) { m_bIsBreak = a; }
void m_oPen_set(v8::Local<v8::Value>* a) { m_oPen = a; }
void m_bPenColorInit_set(bool a) { m_bPenColorInit = a; }
void m_oBrush_set(v8::Local<v8::Value>* a) { m_oBrush = a; }
void m_bBrushColorInit_set(bool a) { m_bBrushColorInit = a; }
void m_oFontManager_set(v8::Local<v8::Value>* a) { m_oFontManager = a; }
void m_oCoordTransform_set(v8::Local<v8::Value>* a) { m_oCoordTransform = a; }
void m_oBaseTransform_set(v8::Local<v8::Value>* a) { m_oBaseTransform = a; }
void m_oTransform_set(v8::Local<v8::Value>* a) { m_oTransform = a; }
void m_oFullTransform_set(v8::Local<v8::Value>* a) { m_oFullTransform = a; }
void m_oInvertFullTransform_set(v8::Local<v8::Value>* a) { m_oInvertFullTransform = a; }
void ArrayPoints_set(v8::Local<v8::Value>* a) { ArrayPoints = a; }
void m_oCurFont_set(CFont a) { m_oCurFont = a; }
void m_oTextPr_set(v8::Local<v8::Value>* a) { m_oTextPr = a; }
void m_oGrFonts_set(v8::Local<v8::Value>* a) { m_oGrFonts = a; }
void m_oLastFont_set(v8::Local<v8::Value>* a) { m_oLastFont = a; }
void LastFontOriginInfo_set(CLastFontOriginInfo a) { LastFontOriginInfo = a; }
void m_bIntegerGrid_set(bool a) { m_bIntegerGrid = a; }
void ClipManager_set(v8::Local<v8::Value>* a) { ClipManager = a; }
void TextureFillTransformScaleX_set(int a) { TextureFillTransformScaleX = a; }
void TextureFillTransformScaleY_set(int a) { TextureFillTransformScaleY = a; }
void IsThumbnail_set(bool a) { IsThumbnail = a; }
void IsDemonstrationMode_set(bool a) { IsDemonstrationMode = a; }
void GrState_set(v8::Local<v8::Value>* a) { GrState = a; }
void globalAlpha_set(int a) { globalAlpha = a; }
void TextClipRect_set(v8::Local<v8::Value>* a) { TextClipRect = a; }
void IsClipContext_set(bool a) { IsClipContext = a; }
void IsUseFonts2_set(bool a) { IsUseFonts2 = a; }
void m_oFontManager2_set(v8::Local<v8::Value>* a) { m_oFontManager2 = a; }
void m_oLastFont2_set(v8::Local<v8::Value>* a) { m_oLastFont2 = a; }
void ClearMode_set(bool a) { ClearMode = a; }
void IsRetina_set(bool a) { IsRetina = a; }
void dash_no_smart_set(v8::Local<v8::Value>* a) { dash_no_smart = a; }
};
#endif // CJSGRAPHICS_H

View File

@ -2,23 +2,23 @@
#include <string>
static double to_double(const v8::Local<v8::Value>& v)
static double to_double(const v8::Local<v8::Value>& v)
{
return v->ToNumber(v8::Isolate::GetCurrent()->GetCurrentContext()).FromMaybe(v8::Local<v8::Number>())->Value();
}
static bool to_bool (const v8::Local<v8::Value>& v)
static bool to_bool (const v8::Local<v8::Value>& v)
{
return v->ToBoolean(v8::Isolate::GetCurrent()->GetCurrentContext()).FromMaybe(v8::Local<v8::Boolean>())->Value();
}
static int to_int (const v8::Local<v8::Value>& v)
static int to_int (const v8::Local<v8::Value>& v)
{
return v->ToInt32(v8::Isolate::GetCurrent()->GetCurrentContext()).FromMaybe(v8::Local<v8::Int32>())->Value();
}
static int to_uint (const v8::Local<v8::Value>& v)
static unsigned int to_uint (const v8::Local<v8::Value>& v)
{
return v->ToUint32(v8::Isolate::GetCurrent()->GetCurrentContext()).FromMaybe(v8::Local<v8::Uint32>())->Value();
}
static std::string to_string(const v8::Local<v8::Value>& v)
static std::string to_string(const v8::Local<v8::Value>& v)
{
v8::String::Utf8Value data(v);
const char* p = *data;
@ -26,11 +26,21 @@ static std::string to_string(const v8::Local<v8::Value>& v)
return std::string(p);
}
CJSGraphics* unwrap_Graphics(v8::Handle<v8::Object> obj)
CJSGraphics* unwrap_Graphics (v8::Handle<v8::Object> obj)
{
v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(obj->GetInternalField(0));
return static_cast<CJSGraphics*>(field->Value());
}
CFont* unwrap_Font (v8::Handle<v8::Object> obj)
{
v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(obj->GetInternalField(0));
return static_cast<CFont*>(field->Value());
}
CLastFontOriginInfo* unwrap_LastFontOriginInfo(v8::Handle<v8::Object> obj)
{
v8::Handle<v8::External> field = v8::Handle<v8::External>::Cast(obj->GetInternalField(0));
return static_cast<CLastFontOriginInfo*>(field->Value());
}
void init_w (const v8::FunctionCallbackInfo<v8::Value>& args)
{
@ -38,7 +48,8 @@ void init_w (const v8::FunctionCallbackInfo<v8::Value>& args)
if (args.Length() < 5)
return;
CJSGraphics* pGraphics = unwrap_Graphics(args.This());
pGraphics->init(args[0], to_double(args[1]), to_double(args[2]), to_double(args[3]), to_double(args[4]));
v8::Local<v8::Value> args0 = args[0];
pGraphics->init(&args0, to_double(args[1]), to_double(args[2]), to_double(args[3]), to_double(args[4]));
}
void EndDraw_w (const v8::FunctionCallbackInfo<v8::Value>& args)
{
@ -272,9 +283,7 @@ void SetTextPr_w (const v8::FunctionCallbackInfo<v8::Value>& args)
if (args.Length() < 2)
return;
CJSGraphics* pGraphics = unwrap_Graphics(args.This());
v8::Local<v8::Value> args0 = args[0];
v8::Local<v8::Value> args1 = args[1];
pGraphics->SetTextPr(&args0, &args1);
pGraphics->SetTextPr(args[0], args[1]);
}
void SetFontSlot_w (const v8::FunctionCallbackInfo<v8::Value>& args)
{
@ -699,16 +708,449 @@ void DrawFootnoteRect_w (const v8::FunctionCallbackInfo<v8::Value>& args)
pGraphics->DrawFootnoteRect(to_double(args[0]), to_double(args[1]), to_double(args[2]), to_double(args[3]));
}
void m_dDpiX_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
void m_oContext_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oContext_get());
}
void m_dWidthMM_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_dWidthMM_get()));
}
void m_dHeightMM_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_dHeightMM_get()));
}
void m_lWidthPix_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_lWidthPix_get()));
}
void m_lHeightPix_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_lHeightPix_get()));
}
void m_dDpiX_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_dDpiX_get()));
}
void globalAlpha_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
void m_dDpiY_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_dDpiY_get()));
}
void m_bIsBreak_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->m_bIsBreak_get()));
}
void m_oPen_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oPen_get());
}
void m_bPenColorInit_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->m_bPenColorInit_get()));
}
void m_oBrush_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oBrush_get());
}
void m_bBrushColorInit_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->m_bBrushColorInit_get()));
}
void m_oFontManager_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oFontManager_get());
}
void m_oCoordTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oCoordTransform_get());
}
void m_oBaseTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oBaseTransform_get());
}
void m_oTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oTransform_get());
}
void m_oFullTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oFullTransform_get());
}
void m_oInvertFullTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oInvertFullTransform_get());
}
void ArrayPoints_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->ArrayPoints_get());
}
void m_oCurFont_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
// info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->m_oCurFont_get()));
}
void m_oTextPr_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oTextPr_get());
}
void m_oGrFonts_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oGrFonts_get());
}
void m_oLastFont_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oLastFont_get());
}
void LastFontOriginInfo_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
// info.GetReturnValue().Set(v8::Number::New(v8::Isolate::GetCurrent(), pGraphics->LastFontOriginInfo_get()));
}
void m_bIntegerGrid_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->m_bIntegerGrid_get()));
}
void ClipManager_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->ClipManager_get());
}
void TextureFillTransformScaleX_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Int32::New(v8::Isolate::GetCurrent(), pGraphics->TextureFillTransformScaleX_get()));
}
void TextureFillTransformScaleY_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Int32::New(v8::Isolate::GetCurrent(), pGraphics->TextureFillTransformScaleY_get()));
}
void IsThumbnail_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->IsThumbnail_get()));
}
void IsDemonstrationMode_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->IsDemonstrationMode_get()));
}
void GrState_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->GrState_get());
}
void globalAlpha_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Int32::New(v8::Isolate::GetCurrent(), pGraphics->globalAlpha_get()));
}
void TextClipRect_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->TextClipRect_get());
}
void IsClipContext_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->IsClipContext_get()));
}
void IsUseFonts2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->IsUseFonts2_get()));
}
void m_oFontManager2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oFontManager2_get());
}
void m_oLastFont2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->m_oLastFont2_get());
}
void ClearMode_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->ClearMode_get()));
}
void IsRetina_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(v8::Boolean::New(v8::Isolate::GetCurrent(), pGraphics->IsRetina_get()));
}
void dash_no_smart_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
info.GetReturnValue().Set(*pGraphics->dash_no_smart_get());
}
void m_oContext_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oContext_set(&value);
info.GetReturnValue().Set(value);
}
void m_dWidthMM_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_dWidthMM_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_dHeightMM_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_dHeightMM_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_lWidthPix_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_lWidthPix_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_lHeightPix_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_lHeightPix_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_dDpiX_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_dDpiX_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_dDpiY_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_dDpiY_set(to_double(value));
info.GetReturnValue().Set(value);
}
void m_bIsBreak_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_bIsBreak_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void m_oPen_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oPen_set(&value);
info.GetReturnValue().Set(value);
}
void m_bPenColorInit_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_bPenColorInit_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void m_oBrush_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oBrush_set(&value);
info.GetReturnValue().Set(value);
}
void m_bBrushColorInit_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_bBrushColorInit_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void m_oFontManager_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oFontManager_set(&value);
info.GetReturnValue().Set(value);
}
void m_oCoordTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oCoordTransform_set(&value);
info.GetReturnValue().Set(value);
}
void m_oBaseTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oBaseTransform_set(&value);
info.GetReturnValue().Set(value);
}
void m_oTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oTransform_set(&value);
info.GetReturnValue().Set(value);
}
void m_oFullTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oFullTransform_set(&value);
info.GetReturnValue().Set(value);
}
void m_oInvertFullTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oInvertFullTransform_set(&value);
info.GetReturnValue().Set(value);
}
void ArrayPoints_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->ArrayPoints_set(&value);
info.GetReturnValue().Set(value);
}
void m_oCurFont_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
// CFont* pFont = unwrap_Font(value);
// pGraphics->m_oCurFont_set(*pFont);
info.GetReturnValue().Set(value);
}
void m_oTextPr_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oTextPr_set(&value);
info.GetReturnValue().Set(value);
}
void m_oGrFonts_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oGrFonts_set(&value);
info.GetReturnValue().Set(value);
}
void m_oLastFont_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oLastFont_set(&value);
info.GetReturnValue().Set(value);
}
void LastFontOriginInfo_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
// CLastFontOriginInfo* pLastFontOriginInfo = unwrap_LastFontOriginInfo(value);
// pGraphics->LastFontOriginInfo_set(*pLastFontOriginInfo);
info.GetReturnValue().Set(value);
}
void m_bIntegerGrid_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_bIntegerGrid_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void ClipManager_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->ClipManager_set(&value);
info.GetReturnValue().Set(value);
}
void TextureFillTransformScaleX_set_w(v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->TextureFillTransformScaleX_set(to_int(value));
info.GetReturnValue().Set(value);
}
void TextureFillTransformScaleY_set_w(v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->TextureFillTransformScaleY_set(to_int(value));
info.GetReturnValue().Set(value);
}
void IsThumbnail_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->IsThumbnail_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void IsDemonstrationMode_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->IsDemonstrationMode_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void GrState_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->GrState_set(&value);
info.GetReturnValue().Set(value);
}
void globalAlpha_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->globalAlpha_set(to_int(value));
info.GetReturnValue().Set(value);
}
void TextClipRect_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->TextClipRect_set(&value);
info.GetReturnValue().Set(value);
}
void IsClipContext_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->IsClipContext_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void IsUseFonts2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->IsUseFonts2_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void m_oFontManager2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oFontManager2_set(&value);
info.GetReturnValue().Set(value);
}
void m_oLastFont2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->m_oLastFont2_set(&value);
info.GetReturnValue().Set(value);
}
void ClearMode_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->ClearMode_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void IsRetina_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->IsRetina_set(to_bool(value));
info.GetReturnValue().Set(value);
}
void dash_no_smart_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
{
CJSGraphics* pGraphics = unwrap_Graphics(info.Holder());
pGraphics->dash_no_smart_set(&value);
info.GetReturnValue().Set(value);
}
v8::Handle<v8::ObjectTemplate> CreateGraphicsTemplate(v8::Isolate* isolate)
{
@ -718,8 +1160,46 @@ v8::Handle<v8::ObjectTemplate> CreateGraphicsTemplate(v8::Isolate* isolate)
v8::Isolate* current = v8::Isolate::GetCurrent();
// свойства
result->SetAccessor(v8::String::NewFromUtf8(current, "m_dDpiX"), m_dDpiX_get_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "globalAlpha"), globalAlpha_get_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oContext"), m_oContext_get_w, m_oContext_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_dWidthMM"), m_dWidthMM_get_w, m_dWidthMM_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_dHeightMM"), m_dHeightMM_get_w, m_dHeightMM_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_lWidthPix"), m_lWidthPix_get_w, m_lWidthPix_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_lHeightPix"), m_lHeightPix_get_w, m_lHeightPix_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_dDpiX"), m_dDpiX_get_w, m_dDpiX_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_dDpiY"), m_dDpiY_get_w, m_dDpiY_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_bIsBreak"), m_bIsBreak_get_w, m_bIsBreak_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oPen"), m_oPen_get_w, m_oPen_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_bPenColorInit"), m_bPenColorInit_get_w, m_bPenColorInit_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oBrush"), m_oBrush_get_w, m_oBrush_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_bBrushColorInit"), m_bBrushColorInit_get_w, m_bBrushColorInit_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oFontManager"), m_oFontManager_get_w, m_oFontManager_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oCoordTransform"), m_oCoordTransform_get_w, m_oCoordTransform_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oBaseTransform"), m_oBaseTransform_get_w, m_oBaseTransform_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oFullTransform"), m_oFullTransform_get_w, m_oFullTransform_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oInvertFullTransform"), m_oInvertFullTransform_get_w, m_oInvertFullTransform_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "ArrayPoints"), ArrayPoints_get_w, ArrayPoints_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oCurFont"), m_oCurFont_get_w, m_oCurFont_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oTextPr"), m_oTextPr_get_w, m_oTextPr_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oGrFonts"), m_oGrFonts_get_w, m_oGrFonts_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oLastFont"), m_oLastFont_get_w, m_oLastFont_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "LastFontOriginInfo"), LastFontOriginInfo_get_w, LastFontOriginInfo_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_bIntegerGrid"), m_bIntegerGrid_get_w, m_bIntegerGrid_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "ClipManager"), ClipManager_get_w, ClipManager_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "TextureFillTransformScaleX"), TextureFillTransformScaleX_get_w, TextureFillTransformScaleX_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "TextureFillTransformScaleY"), TextureFillTransformScaleY_get_w, TextureFillTransformScaleY_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsThumbnail"), IsThumbnail_get_w, IsThumbnail_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsDemonstrationMode"), IsDemonstrationMode_get_w, IsDemonstrationMode_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsDemonstrationMode"), IsDemonstrationMode_get_w, IsDemonstrationMode_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "GrState"), GrState_get_w, GrState_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "globalAlpha"), globalAlpha_get_w, globalAlpha_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "TextClipRect"), TextClipRect_get_w, TextClipRect_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsClipContext"), IsClipContext_get_w, IsClipContext_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsUseFonts2"), IsUseFonts2_get_w, IsUseFonts2_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oFontManager2"), m_oFontManager2_get_w, m_oFontManager2_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "m_oLastFont2"), m_oLastFont2_get_w, m_oLastFont2_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "ClearMode"), ClearMode_get_w, ClearMode_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "IsRetina"), IsRetina_get_w, IsRetina_set_w);
result->SetAccessor(v8::String::NewFromUtf8(current, "dash_no_smart"), dash_no_smart_get_w, dash_no_smart_set_w);
// методы
result->Set(current, "init", v8::FunctionTemplate::New(current, init_w));

View File

@ -2,13 +2,15 @@
#include <string>
double to_double(const v8::Local<v8::Value>& v);
bool to_bool (const v8::Local<v8::Value>& v);
int to_int (const v8::Local<v8::Value>& v);
int to_uint (const v8::Local<v8::Value>& v);
std::string to_string(const v8::Local<v8::Value>& v);
double to_double(const v8::Local<v8::Value>& v);
bool to_bool (const v8::Local<v8::Value>& v);
int to_int (const v8::Local<v8::Value>& v);
unsigned int to_uint (const v8::Local<v8::Value>& v);
std::string to_string(const v8::Local<v8::Value>& v);
CJSGraphics* unwrap_Graphics(v8::Handle<v8::Object> obj);
CJSGraphics* unwrap_Graphics (v8::Handle<v8::Object> obj);
CFont* unwrap_Font (v8::Handle<v8::Object> obj);
CLastFontOriginInfo* unwrap_LastFontOriginInfo(v8::Handle<v8::Object> obj);
void init_w (const v8::FunctionCallbackInfo<v8::Value>& args);
void EndDraw_w (const v8::FunctionCallbackInfo<v8::Value>& args);
@ -102,8 +104,87 @@ void DrawPresentationComment_w (const v8::FunctionCallbackInfo<v8::Value>& args)
void DrawPolygon_w (const v8::FunctionCallbackInfo<v8::Value>& args);
void DrawFootnoteRect_w (const v8::FunctionCallbackInfo<v8::Value>& args);
void m_dDpiX_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void globalAlpha_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oContext_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_dWidthMM_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_dHeightMM_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_lWidthPix_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_lHeightPix_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_dDpiX_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_dDpiY_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_bIsBreak_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oPen_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_bPenColorInit_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oBrush_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_bBrushColorInit_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oFontManager_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oCoordTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oBaseTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oFullTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oInvertFullTransform_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void ArrayPoints_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oCurFont_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oTextPr_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oGrFonts_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oLastFont_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void LastFontOriginInfo_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_bIntegerGrid_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void ClipManager_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void TextureFillTransformScaleX_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void TextureFillTransformScaleY_get_w(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void IsThumbnail_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void IsDemonstrationMode_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void GrState_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void globalAlpha_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void TextClipRect_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void IsClipContext_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void IsUseFonts2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oFontManager2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oLastFont2_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void ClearMode_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void IsRetina_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void dash_no_smart_get_w (v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info);
void m_oContext_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_dWidthMM_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_dHeightMM_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_lWidthPix_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_lHeightPix_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_dDpiX_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_dDpiY_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_bIsBreak_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oPen_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_bPenColorInit_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oBrush_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_bBrushColorInit_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oFontManager_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oCoordTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oBaseTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oFullTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oInvertFullTransform_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void ArrayPoints_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oCurFont_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oTextPr_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oGrFonts_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oLastFont_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void LastFontOriginInfo_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_bIntegerGrid_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void ClipManager_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void TextureFillTransformScaleX_set_w(v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void TextureFillTransformScaleY_set_w(v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void IsThumbnail_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void IsDemonstrationMode_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void GrState_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void globalAlpha_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void TextClipRect_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void IsClipContext_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void IsUseFonts2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oFontManager2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void m_oLastFont2_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void ClearMode_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void IsRetina_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
void dash_no_smart_set_w (v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info);
v8::Handle<v8::ObjectTemplate> CreateGraphicsTemplate(v8::Isolate* isolate);
void CreateGraphics(const v8::FunctionCallbackInfo<v8::Value>& args);