本文整理汇总了C++中SVGPolylineElement类的典型用法代码示例。如果您正苦于以下问题:C++ SVGPolylineElement类的具体用法?C++ SVGPolylineElement怎么用?C++ SVGPolylineElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SVGPolylineElement类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: systemLanguageAttrGetter
static v8::Handle<v8::Value> systemLanguageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder());
return toV8Fast(WTF::getPtr(SVGStaticListPropertyTearOff<SVGStringList>::create(imp, imp->systemLanguage())), info, imp);
}
示例2: xmllangAttrGetter
static v8::Handle<v8::Value> xmllangAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder());
return v8String(imp->xmllang(), info.GetIsolate());
}
示例3: getScreenCTMCallback
static v8::Handle<v8::Value> getScreenCTMCallback(const v8::Arguments& args)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(args.Holder());
return toV8Fast(WTF::getPtr(SVGPropertyTearOff<SVGMatrix>::create(imp->getScreenCTM())), args, imp);
}
示例4: animatedPointsAttrGetter
static v8::Handle<v8::Value> animatedPointsAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder());
return toV8Fast(WTF::getPtr(imp->animatedPoints()), info, imp);
}
示例5: getPresentationAttributeCallback
static v8::Handle<v8::Value> getPresentationAttributeCallback(const v8::Arguments& args)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(args.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, name, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined));
return toV8Fast(imp->getPresentationAttribute(name), args, imp);
}
示例6: hasExtensionCallback
static v8::Handle<v8::Value> hasExtensionCallback(const v8::Arguments& args)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(args.Holder());
V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, extension, MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined));
return v8Boolean(imp->hasExtension(extension), args.GetIsolate());
}
示例7: farthestViewportElementAttrGetter
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder());
return toV8Fast(imp->farthestViewportElement(), info, imp);
}
示例8: transformAttrGetter
static v8::Handle<v8::Value> transformAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
SVGPolylineElement* imp = V8SVGPolylineElement::toNative(info.Holder());
return toV8Fast(imp->transformAnimated(), info, imp);
}
示例9: switch
JSValue* JSSVGPolylineElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case RequiredFeaturesAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredFeatures()));
}
case RequiredExtensionsAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->requiredExtensions()));
}
case SystemLanguageAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->systemLanguage()));
}
case XmllangAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return jsString(imp->xmllang());
}
case XmlspaceAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return jsString(imp->xmlspace());
}
case ExternalResourcesRequiredAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedBoolean>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedBoolean>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedBoolean>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case ClassNameAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedString>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedString>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedString>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case StyleAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->style()));
}
case TransformAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
ASSERT(exec && exec->dynamicInterpreter());
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame();
if (activeFrame) {
SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0);
if (extensions) {
if (extensions->hasGenericContext<SVGAnimatedTransformList>(obj.get()))
ASSERT(extensions->genericContext<SVGAnimatedTransformList>(obj.get()) == imp);
else
extensions->setGenericContext<SVGAnimatedTransformList>(obj.get(), imp);
}
}
return toJS(exec, obj.get());
}
case NearestViewportElementAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
}
case FarthestViewportElementAttrNum: {
SVGPolylineElement* imp = static_cast<SVGPolylineElement*>(impl());
return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
}
//.........这里部分代码省略.........