1/* 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 5 * Copyright (C) 2006 Apple Inc. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public License 18 * along with this library; see the file COPYING.LIB. If not, write to 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23// http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement 24 25// TODO: no css::ViewCSS available! 26// TODO: no events::DocumentEvent available! 27[ 28 TypeChecking=Interface, 29] interface SVGSVGElement : SVGGraphicsElement { 30 31 readonly attribute SVGAnimatedLength x; 32 readonly attribute SVGAnimatedLength y; 33 readonly attribute SVGAnimatedLength width; 34 readonly attribute SVGAnimatedLength height; 35 readonly attribute SVGRect viewport; 36 readonly attribute float pixelUnitToMillimeterX; 37 readonly attribute float pixelUnitToMillimeterY; 38 readonly attribute float screenPixelToMillimeterX; 39 readonly attribute float screenPixelToMillimeterY; 40 readonly attribute boolean useCurrentView; 41 readonly attribute SVGViewSpec currentView; 42 attribute float currentScale; 43 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint currentTranslate; 44 45 unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); 46 void unsuspendRedraw(unsigned long suspendHandleId); 47 void unsuspendRedrawAll(); 48 void forceRedraw(); 49 void pauseAnimations(); 50 void unpauseAnimations(); 51 boolean animationsPaused(); 52 float getCurrentTime(); 53 void setCurrentTime(float seconds); 54 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement); 55 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement); 56 boolean checkIntersection(SVGElement element, SVGRect rect); 57 boolean checkEnclosure(SVGElement element, SVGRect rect); 58 void deselectAll(); 59 60 SVGNumber createSVGNumber(); 61 SVGLength createSVGLength(); 62 SVGAngle createSVGAngle(); 63 SVGPoint createSVGPoint(); 64 SVGMatrix createSVGMatrix(); 65 SVGRect createSVGRect(); 66 SVGTransform createSVGTransform(); 67 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); 68 Element getElementById(DOMString elementId); 69}; 70 71SVGSVGElement implements SVGFitToViewBox; 72SVGSVGElement implements SVGZoomAndPan; 73