예제 #1
0
JSValue jsSVGZoomAndPanZoomAndPan(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSSVGZoomAndPan* castedThis = static_cast<JSSVGZoomAndPan*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(castedThis->impl());
    JSValue result = jsNumber(imp->zoomAndPan());
    return result;
}
예제 #2
0
void JSSVGZoomAndPan::putValueProperty(ExecState* exec, int token, JSValue* value)
{
    switch (token) {
    case ZoomAndPanAttrNum: {
        SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(impl());
        imp->setZoomAndPan(value->toInt32(exec));
        if (context())
            context()->svgAttributeChanged(impl()->associatedAttributeName());
        break;
    }
    }
}
예제 #3
0
JSValue* JSSVGZoomAndPan::getValueProperty(ExecState* exec, int token) const
{
    switch (token) {
    case ZoomAndPanAttrNum: {
        SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(impl());
        return jsNumber(exec, imp->zoomAndPan());
    }
    case ConstructorAttrNum:
        return getConstructor(exec);
    }
    return 0;
}
예제 #4
0
void setJSSVGZoomAndPanZoomAndPan(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSSVGZoomAndPan* castedThis = static_cast<JSSVGZoomAndPan*>(thisObject);
    SVGZoomAndPan* imp = static_cast<SVGZoomAndPan*>(castedThis->impl());
    imp->setZoomAndPan(value.toUInt32(exec));
}