implementation of CJS methods

This commit is contained in:
Kulikova Svetlana
2020-10-14 13:31:10 +03:00
parent a679d5a968
commit 688e00205b
5 changed files with 493 additions and 128 deletions

View File

@ -712,7 +712,7 @@ CFont CGraphics::GetFont()
return m_oCurFont;
}
void CGraphics::font(unsigned int font_id, int font_size)
void CGraphics::font(int font_id, int font_size)
{
/*
AscFonts.g_font_infos[AscFonts.g_map_font_index[font_id]].LoadFont(editor.FontLoader, this.IsUseFonts2 ? this.m_oFontManager2 : this.m_oFontManager,

View File

@ -207,7 +207,7 @@ namespace NSGraphics
void drawImage(const v8::Local<v8::Value>& img, double x, double y, double w, double h, int alpha, const v8::Local<v8::Value>& srcRect, const v8::Local<v8::Value>& nativeImage);
// text
CFont GetFont();
void font(unsigned int font_id, int font_size);
void font(int font_id, int font_size);
void SetFont(const v8::Local<v8::Value>& font);
void SetTextPr(const v8::Local<v8::Value>& textPr, const v8::Local<v8::Value>& theme);
void SetFontSlot(const v8::Local<v8::Value>& slot, double fontSizeKoef);

View File

@ -2,96 +2,455 @@
JSSmart<CJSValue> CGraphicsEmbed::init(JSSmart<CJSValue> context, JSSmart<CJSValue> width_px, JSSmart<CJSValue> height_px, JSSmart<CJSValue> width_mm, JSSmart<CJSValue> height_mm)
{
m_pInternal->init(context->toObject(), width_px->toDouble(), height_px->toDouble(), width_mm->toDouble(), height_mm->toDouble());
//m_pInternal->init(context->toObject(), width_px->toDouble(), height_px->toDouble(), width_mm->toDouble(), height_mm->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::EndDraw()
{
m_pInternal->EndDraw();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::put_GlobalAlpha(JSSmart<CJSValue> enable, JSSmart<CJSValue> globalAlpha)
{
m_pInternal->put_GlobalAlpha(enable->toBool(), globalAlpha->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::Start_GlobalAlpha()
{
m_pInternal->Start_GlobalAlpha();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::End_GlobalAlpha()
{
m_pInternal->End_GlobalAlpha();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::p_color(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a)
{
m_pInternal->p_color(r->toInt32(), g->toInt32(), b->toInt32(), a->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::p_width(JSSmart<CJSValue> w)
{
m_pInternal->p_width(w->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::p_dash(JSSmart<CJSValue> params)
{
//m_pInternal->p_dash(params->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::b_color1(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a)
{
m_pInternal->b_color1(r->toInt32(), g->toInt32(), b->toInt32(), a->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::b_color2(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a)
{
m_pInternal->b_color2(r->toInt32(), g->toInt32(), b->toInt32(), a->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::transform(JSSmart<CJSValue> sx, JSSmart<CJSValue> shy, JSSmart<CJSValue> shx, JSSmart<CJSValue> sy, JSSmart<CJSValue> tx, JSSmart<CJSValue> ty)
{
m_pInternal->transform(sx->toDouble(), shy->toDouble(), shx->toDouble(), sy->toDouble(), tx->toDouble(), ty->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::CalculateFullTransform(JSSmart<CJSValue> isInvertNeed)
{
m_pInternal->CalculateFullTransform(isInvertNeed->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_s()
{
m_pInternal->_s();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_e()
{
m_pInternal->_e();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_z()
{
m_pInternal->_z();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_m (JSSmart<CJSValue> x, JSSmart<CJSValue> y)
{
m_pInternal->_m(x->toDouble(), y->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_l (JSSmart<CJSValue> x, JSSmart<CJSValue> y)
{
m_pInternal->_l(x->toDouble(), y->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_c (JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2, JSSmart<CJSValue> x3, JSSmart<CJSValue> y3)
{
m_pInternal->_c(x1->toDouble(), y1->toDouble(), x2->toDouble(), y2->toDouble(), x3->toDouble(), y3->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::_c2(JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2)
{
m_pInternal->_c2(x1->toDouble(), y1->toDouble(), x2->toDouble(), y2->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::ds()
{
m_pInternal->ds();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::df()
{
m_pInternal->df();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::save()
{
m_pInternal->save();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::restore()
{
m_pInternal->restore();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::clip()
{
m_pInternal->clip();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::reset()
{
m_pInternal->reset();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::transform3(JSSmart<CJSValue> m, JSSmart<CJSValue> isNeedInvert)
{
// m_pInternal->transform3(m->toObject(), isNeedInvert->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::FreeFont()
{
m_pInternal->FreeFont();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::ClearLastFont()
{
m_pInternal->ClearLastFont();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawImage2(JSSmart<CJSValue> img, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> alpha, JSSmart<CJSValue> srcRect)
{
// m_pInternal->drawImage2(img->toObject(), x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble(), alpha->toInt32(), srcRect->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawImage (JSSmart<CJSValue> img, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> alpha, JSSmart<CJSValue> srcRect, JSSmart<CJSValue> nativeImage)
{
// m_pInternal->drawImage(img->toObject(), x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble(), alpha->toInt32(), srcRect->toObject(), nativeImage->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::GetFont()
{
m_pInternal->GetFont();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::font(JSSmart<CJSValue> font_id, JSSmart<CJSValue> font_size)
{
m_pInternal->font(font_id->toInt32(), font_size->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetFont(JSSmart<CJSValue> font)
{
// m_pInternal->SetFont(font->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetTextPr(JSSmart<CJSValue> textPr, JSSmart<CJSValue> theme)
{
// m_pInternal->SetTextPr(textPr->toObject(), theme->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetFontSlot(JSSmart<CJSValue> slot, JSSmart<CJSValue> fontSizeKoef)
{
// m_pInternal->SetFontSlot(slot->toObject(), fontSizeKoef->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::GetTextPr()
{
m_pInternal->GetTextPr();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::FillText(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> text)
{
// m_pInternal->FillText(x->toDouble(), y->toDouble(), text->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::t(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> isBounds)
{
// m_pInternal->t(text->toObject(), x->toDouble(), y->toDouble(), isBounds->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::FillText2(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> text, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW)
{
// m_pInternal->FillText2(x->toDouble(), y->toDouble(), text->toObject(), cropX->toDouble(), cropW->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::t2(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW)
{
// m_pInternal->t2(text->toObject(), x->toDouble(), y->toDouble(), cropX->toDouble(), cropW->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::FillTextCode(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> lUnicode)
{
// m_pInternal->FillTextCode(x->toDouble(), y->toDouble(), lUnicode->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::tg(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y)
{
// m_pInternal->tg(text->toObject(), x->toDouble(), y->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::charspace(JSSmart<CJSValue> space)
{
// m_pInternal->charspace(space->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyph (JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> _bounds)
{
// m_pInternal->private_FillGlyph(pGlyph->toObject(), _bounds->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyphC(JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW)
{
// m_pInternal->private_FillGlyphC(pGlyph->toObject(), cropX->toDouble(), cropW->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyph2(JSSmart<CJSValue> pGlyph)
{
// m_pInternal->private_FillGlyph2(pGlyph->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetIntegerGrid(JSSmart<CJSValue> param)
{
m_pInternal->SetIntegerGrid(param->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::GetIntegerGrid()
{
return NSJSBase::CJSContext::createBool(m_pInternal->GetIntegerGrid());
}
JSSmart<CJSValue> CGraphicsEmbed::DrawStringASCII (JSSmart<CJSValue> name, JSSmart<CJSValue> size, JSSmart<CJSValue> bold, JSSmart<CJSValue> italic, JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> bIsHeader)
{
// m_pInternal->DrawStringASCII(name->toStringA(), size->toInt32(), bold->toBool(), italic->toBool(), text->toObject(), x->toDouble(), y->toDouble(), bIsHeader->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawStringASCII2(JSSmart<CJSValue> name, JSSmart<CJSValue> size, JSSmart<CJSValue> bold, JSSmart<CJSValue> italic, JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> bIsHeader)
{
// m_pInternal->DrawStringASCII2(name->toStringA(), size->toInt32(), bold->toBool(), italic->toBool(), text->toObject(), x->toDouble(), y->toDouble(), bIsHeader->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawHeaderEdit(JSSmart<CJSValue> yPos, JSSmart<CJSValue> lock_type, JSSmart<CJSValue> sectionNum, JSSmart<CJSValue> bIsRepeat, JSSmart<CJSValue> type)
{
// m_pInternal->DrawHeaderEdit(yPos->toDouble(), lock_type->toObject(), sectionNum->toInt32(), bIsRepeat->toBool(), type->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawFooterEdit(JSSmart<CJSValue> yPos, JSSmart<CJSValue> lock_type, JSSmart<CJSValue> sectionNum, JSSmart<CJSValue> bIsRepeat, JSSmart<CJSValue> type)
{
// m_pInternal->DrawFooterEdit(yPos->toDouble(), lock_type->toObject(), sectionNum->toInt32(), bIsRepeat->toBool(), type->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawLockParagraph (JSSmart<CJSValue> lock_type, JSSmart<CJSValue> x, JSSmart<CJSValue> y1, JSSmart<CJSValue> y2)
{
// m_pInternal->DrawLockParagraph(lock_type->toObject(), x->toDouble(), y1->toDouble(), y2->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawLockObjectRect(JSSmart<CJSValue> lock_type, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
// m_pInternal->DrawLockObjectRect(lock_type->toObject(), x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawEmptyTableLine(JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2)
{
m_pInternal->DrawEmptyTableLine(x1->toDouble(), y1->toDouble(), x2->toDouble(), y2->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawSpellingLine (JSSmart<CJSValue> y0, JSSmart<CJSValue> x0, JSSmart<CJSValue> x1, JSSmart<CJSValue> w)
{
m_pInternal->DrawSpellingLine(y0->toDouble(), x0->toDouble(), x1->toDouble(), w->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawHorLine (JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW)
{
m_pInternal->drawHorLine(align->toInt32(), y->toDouble(), x->toDouble(), r->toDouble(), penW->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawHorLine2(JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW)
{
m_pInternal->drawHorLine2(align->toInt32(), y->toDouble(), x->toDouble(), r->toDouble(), penW->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawVerLine (JSSmart<CJSValue> align, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> b, JSSmart<CJSValue> penW)
{
m_pInternal->drawVerLine(align->toInt32(), x->toDouble(), y->toDouble(), b->toDouble(), penW->toInt32());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawHorLineExt(JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW, JSSmart<CJSValue> leftMW, JSSmart<CJSValue> rightMW)
{
m_pInternal->drawHorLineExt(align->toInt32(), y->toDouble(), x->toDouble(), r->toDouble(), penW->toInt32(), leftMW->toDouble(), rightMW->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::rect (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->rect(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::TableRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->TableRect(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::AddClipRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->AddClipRect(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RemoveClipRect()
{
m_pInternal->RemoveClipRect();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetClip(JSSmart<CJSValue> r)
{
// m_pInternal->SetClip(r->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RemoveClip()
{
m_pInternal->RemoveClip();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawCollaborativeChanges(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> Color)
{
// m_pInternal->drawCollaborativeChanges(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble(), Color->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawMailMergeField(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->drawMailMergeField(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawSearchResult (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->drawSearchResult(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::drawFlowAnchor (JSSmart<CJSValue> x, JSSmart<CJSValue> y)
{
m_pInternal->drawFlowAnchor(x->toDouble(), y->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SavePen()
{
m_pInternal->SavePen();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RestorePen()
{
m_pInternal->RestorePen();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SaveBrush()
{
m_pInternal->SaveBrush();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RestoreBrush()
{
m_pInternal->RestoreBrush();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SavePenBrush()
{
m_pInternal->SavePenBrush();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RestorePenBrush()
{
m_pInternal->RestorePenBrush();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SaveGrState()
{
m_pInternal->SaveGrState();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::RestoreGrState()
{
m_pInternal->RestoreGrState();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::StartClipPath()
{
m_pInternal->StartClipPath();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::EndClipPath()
{
m_pInternal->EndClipPath();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::StartCheckTableDraw()
{
m_pInternal->StartCheckTableDraw();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::EndCheckTableDraw(JSSmart<CJSValue> bIsRestore)
{
m_pInternal->EndCheckTableDraw(bIsRestore->toBool());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::SetTextClipRect(JSSmart<CJSValue> _l, JSSmart<CJSValue> _t, JSSmart<CJSValue> _r, JSSmart<CJSValue> _b)
{
m_pInternal->SetTextClipRect(_l->toDouble(), _t->toDouble(), _r->toDouble(), _b->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::AddSmartRect (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> pen_w)
{
// m_pInternal->AddSmartRect(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble(), pen_w->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::CheckUseFonts2 (JSSmart<CJSValue> _transform)
{
// m_pInternal->CheckUseFonts2(_transform->toObject());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::UncheckUseFonts2()
{
m_pInternal->UncheckUseFonts2();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::Drawing_StartCheckBounds(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->Drawing_StartCheckBounds(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::Drawing_EndCheckBounds()
{
m_pInternal->Drawing_EndCheckBounds();
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawPresentationComment(JSSmart<CJSValue> type, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
// m_pInternal->DrawPresentationComment(type->toObject(), x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawPolygon(JSSmart<CJSValue> oPath, JSSmart<CJSValue> lineWidth, JSSmart<CJSValue> shift)
{
// m_pInternal->DrawPolygon(oPath->toObject(), lineWidth->toInt32(), shift->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::DrawFootnoteRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h)
{
m_pInternal->DrawFootnoteRect(x->toDouble(), y->toDouble(), w->toDouble(), h->toDouble());
return NULL;
}
JSSmart<CJSValue> CGraphicsEmbed::EndDraw() {}
JSSmart<CJSValue> CGraphicsEmbed::put_GlobalAlpha(JSSmart<CJSValue> enable, JSSmart<CJSValue> globalAlpha);
JSSmart<CJSValue> CGraphicsEmbed::Start_GlobalAlpha() {}
JSSmart<CJSValue> CGraphicsEmbed::End_GlobalAlpha();
JSSmart<CJSValue> CGraphicsEmbed::p_color(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a);
JSSmart<CJSValue> CGraphicsEmbed::p_width(JSSmart<CJSValue> w);
JSSmart<CJSValue> CGraphicsEmbed::p_dash(JSSmart<CJSValue> params);
JSSmart<CJSValue> CGraphicsEmbed::b_color1(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a);
JSSmart<CJSValue> CGraphicsEmbed::b_color2(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a);
JSSmart<CJSValue> CGraphicsEmbed::transform(JSSmart<CJSValue> sx, JSSmart<CJSValue> shy, JSSmart<CJSValue> shx, JSSmart<CJSValue> sy, JSSmart<CJSValue> tx, JSSmart<CJSValue> ty);
JSSmart<CJSValue> CGraphicsEmbed::CalculateFullTransform(JSSmart<CJSValue> isInvertNeed);
JSSmart<CJSValue> CGraphicsEmbed::_s();
JSSmart<CJSValue> CGraphicsEmbed::_e();
JSSmart<CJSValue> CGraphicsEmbed::_z();
JSSmart<CJSValue> CGraphicsEmbed::_m (JSSmart<CJSValue> x, JSSmart<CJSValue> y);
JSSmart<CJSValue> CGraphicsEmbed::_l (JSSmart<CJSValue> x, JSSmart<CJSValue> y);
JSSmart<CJSValue> CGraphicsEmbed::_c (JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2, JSSmart<CJSValue> x3, JSSmart<CJSValue> y3);
JSSmart<CJSValue> CGraphicsEmbed::_c2(JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2);
JSSmart<CJSValue> CGraphicsEmbed::ds();
JSSmart<CJSValue> CGraphicsEmbed::df();
JSSmart<CJSValue> CGraphicsEmbed::save();
JSSmart<CJSValue> CGraphicsEmbed::restore();
JSSmart<CJSValue> CGraphicsEmbed::clip();
JSSmart<CJSValue> CGraphicsEmbed::reset();
JSSmart<CJSValue> CGraphicsEmbed::transform3(JSSmart<CJSValue> m, JSSmart<CJSValue> isNeedInvert);
JSSmart<CJSValue> CGraphicsEmbed::FreeFont();
JSSmart<CJSValue> CGraphicsEmbed::ClearLastFont();
JSSmart<CJSValue> CGraphicsEmbed::drawImage2(JSSmart<CJSValue> img, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> alpha, JSSmart<CJSValue> srcRect);
JSSmart<CJSValue> CGraphicsEmbed::drawImage (JSSmart<CJSValue> img, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> alpha, JSSmart<CJSValue> srcRect, JSSmart<CJSValue> nativeImage);
JSSmart<CJSValue> CGraphicsEmbed::GetFont();
JSSmart<CJSValue> CGraphicsEmbed::font(JSSmart<CJSValue> font_id, JSSmart<CJSValue> font_size);
JSSmart<CJSValue> CGraphicsEmbed::SetFont(JSSmart<CJSValue> font);
JSSmart<CJSValue> CGraphicsEmbed::SetTextPr(JSSmart<CJSValue> textPr, JSSmart<CJSValue> theme);
JSSmart<CJSValue> CGraphicsEmbed::SetFontSlot(JSSmart<CJSValue> slot, JSSmart<CJSValue> fontSizeKoef);
JSSmart<CJSValue> CGraphicsEmbed::GetTextPr();
JSSmart<CJSValue> CGraphicsEmbed::FillText(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> text);
JSSmart<CJSValue> CGraphicsEmbed::t(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> isBounds);
JSSmart<CJSValue> CGraphicsEmbed::FillText2(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> text, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW);
JSSmart<CJSValue> CGraphicsEmbed::t2(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW);
JSSmart<CJSValue> CGraphicsEmbed::FillTextCode(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> lUnicode);
JSSmart<CJSValue> CGraphicsEmbed::tg(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y);
JSSmart<CJSValue> CGraphicsEmbed::charspace(JSSmart<CJSValue> space) {}
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyph (JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> _bounds);
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyphC(JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW);
JSSmart<CJSValue> CGraphicsEmbed::private_FillGlyph2(JSSmart<CJSValue> pGlyph);
JSSmart<CJSValue> CGraphicsEmbed::SetIntegerGrid(JSSmart<CJSValue> param);
JSSmart<CJSValue> CGraphicsEmbed::GetIntegerGrid();
JSSmart<CJSValue> CGraphicsEmbed::DrawStringASCII (JSSmart<CJSValue> name, JSSmart<CJSValue> size, JSSmart<CJSValue> bold, JSSmart<CJSValue> italic, JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> bIsHeader);
JSSmart<CJSValue> CGraphicsEmbed::DrawStringASCII2(JSSmart<CJSValue> name, JSSmart<CJSValue> size, JSSmart<CJSValue> bold, JSSmart<CJSValue> italic, JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> bIsHeader);
JSSmart<CJSValue> CGraphicsEmbed::DrawHeaderEdit(JSSmart<CJSValue> yPos, JSSmart<CJSValue> lock_type, JSSmart<CJSValue> sectionNum, JSSmart<CJSValue> bIsRepeat, JSSmart<CJSValue> type);
JSSmart<CJSValue> CGraphicsEmbed::DrawFooterEdit(JSSmart<CJSValue> yPos, JSSmart<CJSValue> lock_type, JSSmart<CJSValue> sectionNum, JSSmart<CJSValue> bIsRepeat, JSSmart<CJSValue> type);
JSSmart<CJSValue> CGraphicsEmbed::DrawLockParagraph (JSSmart<CJSValue> lock_type, JSSmart<CJSValue> x, JSSmart<CJSValue> y1, JSSmart<CJSValue> y2);
JSSmart<CJSValue> CGraphicsEmbed::DrawLockObjectRect(JSSmart<CJSValue> lock_type, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::DrawEmptyTableLine(JSSmart<CJSValue> x1, JSSmart<CJSValue> y1, JSSmart<CJSValue> x2, JSSmart<CJSValue> y2);
JSSmart<CJSValue> CGraphicsEmbed::DrawSpellingLine (JSSmart<CJSValue> y0, JSSmart<CJSValue> x0, JSSmart<CJSValue> x1, JSSmart<CJSValue> w);
JSSmart<CJSValue> CGraphicsEmbed::drawHorLine (JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW);
JSSmart<CJSValue> CGraphicsEmbed::drawHorLine2(JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW);
JSSmart<CJSValue> CGraphicsEmbed::drawVerLine (JSSmart<CJSValue> align, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> b, JSSmart<CJSValue> penW);
JSSmart<CJSValue> CGraphicsEmbed::drawHorLineExt(JSSmart<CJSValue> align, JSSmart<CJSValue> y, JSSmart<CJSValue> x, JSSmart<CJSValue> r, JSSmart<CJSValue> penW, JSSmart<CJSValue> leftMW, JSSmart<CJSValue> rightMW);
JSSmart<CJSValue> CGraphicsEmbed::rect (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::TableRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::AddClipRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::RemoveClipRect() {}
JSSmart<CJSValue> CGraphicsEmbed::SetClip(JSSmart<CJSValue> r);
JSSmart<CJSValue> CGraphicsEmbed::RemoveClip();
JSSmart<CJSValue> CGraphicsEmbed::drawCollaborativeChanges(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> Color);
JSSmart<CJSValue> CGraphicsEmbed::drawMailMergeField(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::drawSearchResult (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::drawFlowAnchor (JSSmart<CJSValue> x, JSSmart<CJSValue> y);
JSSmart<CJSValue> CGraphicsEmbed::SavePen();
JSSmart<CJSValue> CGraphicsEmbed::RestorePen();
JSSmart<CJSValue> CGraphicsEmbed::SaveBrush();
JSSmart<CJSValue> CGraphicsEmbed::RestoreBrush();
JSSmart<CJSValue> CGraphicsEmbed::SavePenBrush();
JSSmart<CJSValue> CGraphicsEmbed::RestorePenBrush();
JSSmart<CJSValue> CGraphicsEmbed::SaveGrState();
JSSmart<CJSValue> CGraphicsEmbed::RestoreGrState();
JSSmart<CJSValue> CGraphicsEmbed::StartClipPath() {}
JSSmart<CJSValue> CGraphicsEmbed::EndClipPath();
JSSmart<CJSValue> CGraphicsEmbed::StartCheckTableDraw();
JSSmart<CJSValue> CGraphicsEmbed::EndCheckTableDraw(JSSmart<CJSValue> bIsRestore);
JSSmart<CJSValue> CGraphicsEmbed::SetTextClipRect(JSSmart<CJSValue> _l, JSSmart<CJSValue> _t, JSSmart<CJSValue> _r, JSSmart<CJSValue> _b);
JSSmart<CJSValue> CGraphicsEmbed::AddSmartRect (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> pen_w);
JSSmart<CJSValue> CGraphicsEmbed::CheckUseFonts2 (JSSmart<CJSValue> _transform);
JSSmart<CJSValue> CGraphicsEmbed::UncheckUseFonts2();
JSSmart<CJSValue> CGraphicsEmbed::Drawing_StartCheckBounds(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h) {}
JSSmart<CJSValue> CGraphicsEmbed::Drawing_EndCheckBounds() {}
JSSmart<CJSValue> CGraphicsEmbed::DrawPresentationComment(JSSmart<CJSValue> type, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> CGraphicsEmbed::DrawPolygon(JSSmart<CJSValue> oPath, JSSmart<CJSValue> lineWidth, JSSmart<CJSValue> shift);
JSSmart<CJSValue> CGraphicsEmbed::DrawFootnoteRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);

View File

@ -18,9 +18,9 @@ public:
public:
JSSmart<CJSValue> init(JSSmart<CJSValue> context, JSSmart<CJSValue> width_px, JSSmart<CJSValue> height_px, JSSmart<CJSValue> width_mm, JSSmart<CJSValue> height_mm);
JSSmart<CJSValue> EndDraw() {}
JSSmart<CJSValue> EndDraw();
JSSmart<CJSValue> put_GlobalAlpha(JSSmart<CJSValue> enable, JSSmart<CJSValue> globalAlpha);
JSSmart<CJSValue> Start_GlobalAlpha() {}
JSSmart<CJSValue> Start_GlobalAlpha();
JSSmart<CJSValue> End_GlobalAlpha();
// pen methods
JSSmart<CJSValue> p_color(JSSmart<CJSValue> r, JSSmart<CJSValue> g, JSSmart<CJSValue> b, JSSmart<CJSValue> a);
@ -65,7 +65,7 @@ public:
JSSmart<CJSValue> t2(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW);
JSSmart<CJSValue> FillTextCode(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> lUnicode);
JSSmart<CJSValue> tg(JSSmart<CJSValue> text, JSSmart<CJSValue> x, JSSmart<CJSValue> y);
JSSmart<CJSValue> charspace(JSSmart<CJSValue> space) {}
JSSmart<CJSValue> charspace(JSSmart<CJSValue> space);
// private methods
JSSmart<CJSValue> private_FillGlyph (JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> _bounds);
JSSmart<CJSValue> private_FillGlyphC(JSSmart<CJSValue> pGlyph, JSSmart<CJSValue> cropX, JSSmart<CJSValue> cropW);
@ -90,7 +90,7 @@ public:
JSSmart<CJSValue> TableRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
// функции клиппирования
JSSmart<CJSValue> AddClipRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> RemoveClipRect() {}
JSSmart<CJSValue> RemoveClipRect();
JSSmart<CJSValue> SetClip(JSSmart<CJSValue> r);
JSSmart<CJSValue> RemoveClip();
JSSmart<CJSValue> drawCollaborativeChanges(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> Color);
@ -105,7 +105,7 @@ public:
JSSmart<CJSValue> RestorePenBrush();
JSSmart<CJSValue> SaveGrState();
JSSmart<CJSValue> RestoreGrState();
JSSmart<CJSValue> StartClipPath() {}
JSSmart<CJSValue> StartClipPath();
JSSmart<CJSValue> EndClipPath();
JSSmart<CJSValue> StartCheckTableDraw();
JSSmart<CJSValue> EndCheckTableDraw(JSSmart<CJSValue> bIsRestore);
@ -113,8 +113,8 @@ public:
JSSmart<CJSValue> AddSmartRect (JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h, JSSmart<CJSValue> pen_w);
JSSmart<CJSValue> CheckUseFonts2 (JSSmart<CJSValue> _transform);
JSSmart<CJSValue> UncheckUseFonts2();
JSSmart<CJSValue> Drawing_StartCheckBounds(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h) {}
JSSmart<CJSValue> Drawing_EndCheckBounds() {}
JSSmart<CJSValue> Drawing_StartCheckBounds(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> Drawing_EndCheckBounds();
JSSmart<CJSValue> DrawPresentationComment(JSSmart<CJSValue> type, JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);
JSSmart<CJSValue> DrawPolygon(JSSmart<CJSValue> oPath, JSSmart<CJSValue> lineWidth, JSSmart<CJSValue> shift);
JSSmart<CJSValue> DrawFootnoteRect(JSSmart<CJSValue> x, JSSmart<CJSValue> y, JSSmart<CJSValue> w, JSSmart<CJSValue> h);

View File

@ -1,11 +1,11 @@
#include "../GraphicsEmbed.h"
#include "../../v8/v8_base.h"
#define PROPERTY_GET(NAME, NAME_EMBED, TYPE) \
void NAME(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info) \
{ \
CURRENTWRAPPER* _this = (CURRENTWRAPPER*)unwrap_native(info.Holder()); \
info.GetReturnValue().Set(TYPE::New(v8::Isolate::GetCurrent(), _this->->m_pInternal->NAME_EMBED())) \
#define PROPERTY_GET(NAME, NAME_EMBED, TYPE) \
void NAME(v8::Local<v8::String> _name, const v8::PropertyCallbackInfo<v8::Value>& info) \
{ \
CURRENTWRAPPER* _this = (CURRENTWRAPPER*)unwrap_native(info.Holder()); \
info.GetReturnValue().Set(TYPE::New(v8::Isolate::GetCurrent(), _this->m_pInternal->NAME_EMBED())); \
}
#define PROPERTY_GET_OBJECT(NAME, NAME_EMBED) \
@ -17,6 +17,14 @@
else info.GetReturnValue().Set(v8::Undefined(v8::Isolate::GetCurrent())); \
}
#define PROPERTY_SET(NAME, NAME_EMBED, TYPE) \
void NAME(v8::Local<v8::String> _name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) \
{ \
CURRENTWRAPPER* _this = (CURRENTWRAPPER*)unwrap_native(info.Holder()); \
_this->m_pInternal->NAME_EMBED(value); \
info.GetReturnValue().Set(value); \
}
namespace NSGraphics
{
#define CURRENTWRAPPER CGraphicsEmbed
@ -144,29 +152,27 @@ namespace NSGraphics
PROPERTY_GET_OBJECT(_g_m_oFontManager2, g_m_oFontManager2)
PROPERTY_GET_OBJECT(_g_m_oLastFont2, g_m_oLastFont2)
PROPERTY_GET_OBJECT(_g_dash_no_smart, g_dash_no_smart)
/*
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; }
bool m_bPenColorInit_get() { return m_bPenColorInit; }
bool m_bBrushColorInit_get() { return m_bBrushColorInit; }
bool m_bIntegerGrid_get() { return m_bIntegerGrid; }
bool IsThumbnail_get() { return IsThumbnail; }
bool IsDemonstrationMode_get() { return IsDemonstrationMode; }
bool IsClipContext_get() { return IsClipContext; }
bool IsUseFonts2_get() { return IsUseFonts2; }
bool ClearMode_get() { return ClearMode; }
bool IsRetina_get() { return IsRetina; }
CFont m_oCurFont_get() { return m_oCurFont; }
CLastFontOriginInfo LastFontOriginInfo_get() { return LastFontOriginInfo; }
int TextureFillTransformScaleX_get() { return TextureFillTransformScaleX; }
int TextureFillTransformScaleY_get() { return TextureFillTransformScaleY; }
int globalAlpha_get() { return globalAlpha; }
*/
PROPERTY_GET(_g_m_dWidthMM, g_m_dWidthMM, v8::Number)
PROPERTY_GET(_g_m_dHeightMM, g_m_dHeightMM, v8::Number)
PROPERTY_GET(_g_m_lWidthPix, g_m_lWidthPix, v8::Number)
PROPERTY_GET(_g_m_lHeightPix, g_m_lHeightPix, v8::Number)
PROPERTY_GET(_g_m_dDpiX, g_m_dDpiX, v8::Number)
PROPERTY_GET(_g_m_dDpiY, g_m_dDpiY, v8::Number)
PROPERTY_GET(_g_m_bIsBreak, g_m_bIsBreak, v8::Boolean)
PROPERTY_GET(_g_m_bPenColorInit, g_m_bPenColorInit, v8::Boolean)
PROPERTY_GET(_g_m_bBrushColorInit, g_m_bBrushColorInit, v8::Boolean)
PROPERTY_GET(_g_m_bIntegerGrid, g_m_bIntegerGrid, v8::Boolean)
PROPERTY_GET(_g_IsThumbnail, g_IsThumbnail, v8::Boolean)
PROPERTY_GET(_g_IsDemonstrationMode, g_IsDemonstrationMode, v8::Boolean)
PROPERTY_GET(_g_IsClipContext, g_IsClipContext, v8::Boolean)
PROPERTY_GET(_g_IsUseFonts2, g_IsUseFonts2, v8::Boolean)
PROPERTY_GET(_g_ClearMode, g_ClearMode, v8::Boolean)
PROPERTY_GET(_g_IsRetina, g_IsRetina, v8::Boolean)
//PROPERTY_GET_OBJECT(_g_m_oCurFont, g_m_oCurFont)
//PROPERTY_GET_OBJECT(_g_LastFontOriginInfo, g_LastFontOriginInfo)
PROPERTY_GET(_g_TextureFillTransformScaleX, g_TextureFillTransformScaleX, v8::Int32)
PROPERTY_GET(_g_TextureFillTransformScaleY, g_TextureFillTransformScaleY, v8::Int32)
PROPERTY_GET(_g_globalAlpha, g_globalAlpha, v8::Int32)
v8::Handle<v8::ObjectTemplate> CreateGraphicsTemplate(v8::Isolate* isolate)
{