本文整理汇总了C++中SVGPathElement::createSVGPathSegArcRel方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGPathElement::createSVGPathSegArcRel方法的具体用法?C++ SVGPathElement::createSVGPathSegArcRel怎么用?C++ SVGPathElement::createSVGPathSegArcRel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGPathElement
的用法示例。
在下文中一共展示了SVGPathElement::createSVGPathSegArcRel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createSVGPathSegArcRelCallback
static v8::Handle<v8::Value> createSVGPathSegArcRelCallback(const v8::Arguments& args)
{
SVGPathElement* imp = V8SVGPathElement::toNative(args.Holder());
V8TRYCATCH(float, x, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)->NumberValue()));
V8TRYCATCH(float, y, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 1, DefaultIsUndefined)->NumberValue()));
V8TRYCATCH(float, r1, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 2, DefaultIsUndefined)->NumberValue()));
V8TRYCATCH(float, r2, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 3, DefaultIsUndefined)->NumberValue()));
V8TRYCATCH(float, angle, static_cast<float>(MAYBE_MISSING_PARAMETER(args, 4, DefaultIsUndefined)->NumberValue()));
V8TRYCATCH(bool, largeArcFlag, MAYBE_MISSING_PARAMETER(args, 5, DefaultIsUndefined)->BooleanValue());
V8TRYCATCH(bool, sweepFlag, MAYBE_MISSING_PARAMETER(args, 6, DefaultIsUndefined)->BooleanValue());
return toV8Fast(imp->createSVGPathSegArcRel(x, y, r1, r2, angle, largeArcFlag, sweepFlag), args, imp);
}
示例2: callAsFunction
//.........这里部分代码省略.........
case JSSVGPathElement::CreateSVGPathSegCurvetoQuadraticRelFuncNum: {
float x = args[0]->toFloat(exec);
float y = args[1]->toFloat(exec);
float x1 = args[2]->toFloat(exec);
float y1 = args[3]->toFloat(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegCurvetoQuadraticRel(x, y, x1, y1)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegArcAbsFuncNum: {
float x = args[0]->toFloat(exec);
float y = args[1]->toFloat(exec);
float r1 = args[2]->toFloat(exec);
float r2 = args[3]->toFloat(exec);
float angle = args[4]->toFloat(exec);
bool largeArcFlag = args[5]->toBoolean(exec);
bool sweepFlag = args[6]->toBoolean(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegArcAbs(x, y, r1, r2, angle, largeArcFlag, sweepFlag)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegArcRelFuncNum: {
float x = args[0]->toFloat(exec);
float y = args[1]->toFloat(exec);
float r1 = args[2]->toFloat(exec);
float r2 = args[3]->toFloat(exec);
float angle = args[4]->toFloat(exec);
bool largeArcFlag = args[5]->toBoolean(exec);
bool sweepFlag = args[6]->toBoolean(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegArcRel(x, y, r1, r2, angle, largeArcFlag, sweepFlag)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegLinetoHorizontalAbsFuncNum: {
float x = args[0]->toFloat(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegLinetoHorizontalAbs(x)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegLinetoHorizontalRelFuncNum: {
float x = args[0]->toFloat(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegLinetoHorizontalRel(x)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegLinetoVerticalAbsFuncNum: {
float y = args[0]->toFloat(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegLinetoVerticalAbs(y)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegLinetoVerticalRelFuncNum: {
float y = args[0]->toFloat(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->createSVGPathSegLinetoVerticalRel(y)));
return result;
}
case JSSVGPathElement::CreateSVGPathSegCurvetoCubicSmoothAbsFuncNum: {
float x = args[0]->toFloat(exec);