本文整理汇总了C++中SVGDefsElement类的典型用法代码示例。如果您正苦于以下问题:C++ SVGDefsElement类的具体用法?C++ SVGDefsElement怎么用?C++ SVGDefsElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SVGDefsElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGDefsElementFarthestViewportElement
JSValue jsSVGDefsElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl());
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
}
示例2: jsSVGDefsElementXmlspace
JSValue jsSVGDefsElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl());
return jsString(exec, imp->xmlspace());
}
示例3: xmlspaceAttrSetter
static void xmlspaceAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value);
imp->setXmlspace(v);
return;
}
示例4: jsSVGDefsElementExternalResourcesRequired
JSValue jsSVGDefsElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
}
示例5: jsSVGDefsElementTransform
JSValue jsSVGDefsElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGDefsElement* castedThis = static_cast<JSSVGDefsElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThis->impl());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
}
示例6: jsSVGDefsElementPrototypeFunctionHasExtension
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSSVGDefsElement::s_info))
return throwError(exec, TypeError);
JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue));
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl());
const UString& extension = args.at(0).toString(exec);
JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
return result;
}
示例7: jsSVGDefsElementPrototypeFunctionGetPresentationAttribute
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSSVGDefsElement::s_info))
return throwError(exec, TypeError);
JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue));
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl());
const UString& name = args.at(0).toString(exec);
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
return result;
}
示例8: getTransformToElementCallback
static v8::Handle<v8::Value> getTransformToElementCallback(const v8::Arguments& args)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder());
ExceptionCode ec = 0;
{
V8TRYCATCH(SVGElement*, element, V8SVGElement::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)) ? V8SVGElement::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))) : 0);
SVGMatrix result = imp->getTransformToElement(element, ec);
if (UNLIKELY(ec))
goto fail;
return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(result)), args, imp);
}
fail:
return setDOMException(ec, args.GetIsolate());
}
示例9: jsSVGDefsElementPrototypeFunctionGetScreenCTM
JSValue JSC_HOST_CALL jsSVGDefsElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSSVGDefsElement::s_info))
return throwError(exec, TypeError);
JSSVGDefsElement* castedThisObj = static_cast<JSSVGDefsElement*>(asObject(thisValue));
SVGDefsElement* imp = static_cast<SVGDefsElement*>(castedThisObj->impl());
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
return result;
}
示例10: farthestViewportElementAttrGetter
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder());
return toV8Fast(imp->farthestViewportElement(), info, imp);
}
示例11: externalResourcesRequiredAttrGetter
static v8::Handle<v8::Value> externalResourcesRequiredAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(info.Holder());
return toV8Fast(imp->externalResourcesRequiredAnimated(), info, imp);
}
示例12: setJSSVGDefsElementXmlspace
void setJSSVGDefsElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
{
SVGDefsElement* imp = static_cast<SVGDefsElement*>(static_cast<JSSVGDefsElement*>(thisObject)->impl());
imp->setXmlspace(value.toString(exec));
}
示例13: hasExtensionCallback
static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, extension, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined));
return v8Boolean(imp->hasExtension(extension), args.GetIsolate());
}
示例14: getPresentationAttributeCallback
static v8::Handle<v8::Value> getPresentationAttributeCallback(const v8::Arguments& args)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, name, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined));
return toV8Fast(imp->getPresentationAttribute(name), args, imp);
}
示例15: getScreenCTMCallback
static v8::Handle<v8::Value> getScreenCTMCallback(const v8::Arguments& args)
{
SVGDefsElement* imp = V8SVGDefsElement::toNative(args.Holder());
return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getScreenCTM())), args, imp);
}