本文整理汇总了C++中SVGMarkerElement::viewBoxAnimated方法的典型用法代码示例。如果您正苦于以下问题:C++ SVGMarkerElement::viewBoxAnimated方法的具体用法?C++ SVGMarkerElement::viewBoxAnimated怎么用?C++ SVGMarkerElement::viewBoxAnimated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGMarkerElement
的用法示例。
在下文中一共展示了SVGMarkerElement::viewBoxAnimated方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGMarkerElementViewBox
JSValue jsSVGMarkerElementViewBox(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGMarkerElement* castedThis = static_cast<JSSVGMarkerElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(castedThis->impl());
RefPtr<SVGAnimatedRect> obj = imp->viewBoxAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp);
return result;
}
示例2: getValueProperty
JSValue* JSSVGMarkerElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case RefXAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->refXAnimated();
return toJS(exec, obj.get(), imp);
}
case RefYAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->refYAnimated();
return toJS(exec, obj.get(), imp);
}
case MarkerUnitsAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedEnumeration> obj = imp->markerUnitsAnimated();
return toJS(exec, obj.get(), imp);
}
case MarkerWidthAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->markerWidthAnimated();
return toJS(exec, obj.get(), imp);
}
case MarkerHeightAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedLength> obj = imp->markerHeightAnimated();
return toJS(exec, obj.get(), imp);
}
case OrientTypeAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedEnumeration> obj = imp->orientTypeAnimated();
return toJS(exec, obj.get(), imp);
}
case OrientAngleAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedAngle> obj = imp->orientAngleAnimated();
return toJS(exec, obj.get(), imp);
}
case XmllangAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
return jsString(imp->xmllang());
}
case XmlspaceAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
return jsString(imp->xmlspace());
}
case ExternalResourcesRequiredAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
return toJS(exec, obj.get(), imp);
}
case ClassNameAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
return toJS(exec, obj.get(), imp);
}
case StyleAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
return toJS(exec, WTF::getPtr(imp->style()));
}
case ViewBoxAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedRect> obj = imp->viewBoxAnimated();
return toJS(exec, obj.get(), imp);
}
case PreserveAspectRatioAttrNum: {
SVGMarkerElement* imp = static_cast<SVGMarkerElement*>(impl());
RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated();
return toJS(exec, obj.get(), imp);
}
case ConstructorAttrNum:
return getConstructor(exec);
}
return 0;
}