本文整理汇总了C++中JSSVGRectElement类的典型用法代码示例。如果您正苦于以下问题:C++ JSSVGRectElement类的具体用法?C++ JSSVGRectElement怎么用?C++ JSSVGRectElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JSSVGRectElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsSVGRectElementFarthestViewportElement
JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
}
示例2: jsSVGRectElementXmlspace
JSValue jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
return jsString(exec, imp->xmlspace());
}
示例3: jsSVGRectElementRequiredExtensions
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
}
示例4: jsSVGRectElementXmlspace
JSValue jsSVGRectElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->xmlspace());
return result;
}
示例5: jsSVGRectElementTransform
JSValue jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
}
示例6: jsSVGRectElementExternalResourcesRequired
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
}
示例7: jsSVGRectElementFarthestViewportElement
JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
return result;
}
示例8: jsSVGRectElementSystemLanguage
JSValue jsSVGRectElementSystemLanguage(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(GetOwnerElementForType<SVGRectElement, IsDerivedFromSVGElement<SVGRectElement>::value>::ownerElement(imp), imp->systemLanguage())));
return result;
}
示例9: jsSVGRectElementRequiredExtensions
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
return result;
}
示例10: jsSVGRectElementTransform
JSValue jsSVGRectElementTransform(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
return result;
}
示例11: jsSVGRectElementConstructor
EncodedJSValue jsSVGRectElementConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
JSSVGRectElement* domObject = jsDynamicCast<JSSVGRectElement*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
if (!domObject)
return throwVMTypeError(exec);
return JSValue::encode(JSSVGRectElement::getConstructor(exec->vm(), domObject->globalObject()));
}
示例12: jsSVGRectElementExternalResourcesRequired
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
return result;
}
示例13: jsSVGRectElementExternalResourcesRequired
EncodedJSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName)
{
JSSVGRectElement* castedThis = jsDynamicCast<JSSVGRectElement*>(JSValue::decode(thisValue));
UNUSED_PARAM(slotBase);
if (!castedThis)
return throwVMTypeError(exec);
UNUSED_PARAM(exec);
SVGRectElement& impl = castedThis->impl();
RefPtr<SVGAnimatedBoolean> obj = impl.externalResourcesRequiredAnimated();
JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
return JSValue::encode(result);
}
示例14: throwError
JSValue* JSSVGRectElementPrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
{
if (!thisObj->inherits(&JSSVGRectElement::info))
return throwError(exec, TypeError);
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(thisObj);
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
switch (id) {
case JSSVGRectElement::HasExtensionFuncNum: {
String extension = args[0]->toString(exec);
KJS::JSValue* result = jsBoolean(imp->hasExtension(extension));
return result;
}
case JSSVGRectElement::GetPresentationAttributeFuncNum: {
String name = args[0]->toString(exec);
KJS::JSValue* result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name)));
return result;
}
case JSSVGRectElement::GetBBoxFuncNum: {
KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<FloatRect>(imp->getBBox()), imp);
return result;
}
case JSSVGRectElement::GetCTMFuncNum: {
KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getCTM()), imp);
return result;
}
case JSSVGRectElement::GetScreenCTMFuncNum: {
KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getScreenCTM()), imp);
return result;
}
case JSSVGRectElement::GetTransformToElementFuncNum: {
ExceptionCode ec = 0;
SVGElement* element = toSVGElement(args[0]);
KJS::JSValue* result = toJS(exec, new JSSVGPODTypeWrapperCreatorReadOnly<AffineTransform>(imp->getTransformToElement(element, ec)), imp);
setDOMException(exec, ec);
return result;
}
}
return 0;
}
示例15: jsSVGRectElementPrototypeFunctionGetCTM
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSSVGRectElement::s_info))
return throwError(exec, TypeError);
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getCTM()).get(), 0 /* no context on purpose */);
return result;
}