gecko/dom/interfaces/svg/nsIDOMSVGSVGElement.idl

89 lines
3.3 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsIDOMSVGElement.idl"
interface nsIDOMSVGAnimatedLength;
interface nsIDOMSVGRect;
interface nsIDOMSVGNumber;
interface nsIDOMSVGLength;
// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
%{C++
#ifdef GetCurrentTime
#undef GetCurrentTime
#endif
%}
[scriptable, uuid(4670a204-4ef1-455f-9595-9847b077c624)]
interface nsIDOMSVGSVGElement
: nsIDOMSVGElement
/*
The SVG DOM makes use of multiple interface inheritance.
Since XPCOM only supports single interface inheritance,
the best thing that we can do is to promise that whenever
an object implements _this_ interface it will also
implement the following interfaces. (We then have to QI to
hop between them.)
nsIDOMSVGTests,
nsIDOMSVGLangSpace,
nsIDOMSVGExternalResourcesRequired,
nsIDOMSVGStylable,
nsIDOMSVGFitToViewBox,
nsIDOMSVGZoomAndPan,
events::nsIDOMEventTarget,
*/
{
readonly attribute nsIDOMSVGAnimatedLength x;
readonly attribute nsIDOMSVGAnimatedLength y;
readonly attribute nsIDOMSVGAnimatedLength width;
readonly attribute nsIDOMSVGAnimatedLength height;
// readonly attribute nsIDOMSVGRect viewport;
readonly attribute float pixelUnitToMillimeterX;
readonly attribute float pixelUnitToMillimeterY;
readonly attribute float screenPixelToMillimeterX;
readonly attribute float screenPixelToMillimeterY;
readonly attribute boolean useCurrentView;
// readonly attribute nsIDOMSVGViewSpec currentView;
attribute float currentScale;
// raises DOMException on setting
// SVGPoint
readonly attribute nsISupports currentTranslate;
unsigned long suspendRedraw(in unsigned long max_wait_milliseconds);
void unsuspendRedraw(in unsigned long suspend_handle_id);
// raises( DOMException );
void unsuspendRedrawAll();
void forceRedraw();
void pauseAnimations();
void unpauseAnimations();
boolean animationsPaused();
float getCurrentTime();
void setCurrentTime(in float seconds);
/*
nsIDOMNodeList getIntersectionList(in nsIDOMSVGRect rect,
in nsIDOMSVGElement referenceElement);
nsIDOMNodeList getEnclosureList(in nsIDOMSVGRect rect, in nsIDOMSVGElement referenceElement);
boolean checkIntersection(in nsIDOMSVGElement element, in nsIDOMSVGRect rect);
boolean checkEnclosure(in nsIDOMSVGElement element, in nsIDOMSVGRect rect);
void deSelectAll();
*/
nsIDOMSVGNumber createSVGNumber();
nsIDOMSVGLength createSVGLength();
// SVGAngle
nsISupports createSVGAngle();
// SVGPoint
nsISupports createSVGPoint();
// SVGMatrix
nsISupports createSVGMatrix();
nsIDOMSVGRect createSVGRect();
// SVGTransform
nsISupports createSVGTransform();
// SVGTransform SVGMatrix
nsISupports createSVGTransformFromMatrix(in nsISupports matrix);
nsIDOMElement getElementById(in DOMString elementId);
};