WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMSVGLength

IID:2596325c-aed0-487e-96a1-0a6d589b9c6b
Inherits From:nsISupports

Constants

PRUint16 SVG_LENGTHTYPE_UNKNOWN = 0
PRUint16 SVG_LENGTHTYPE_NUMBER = 1
PRUint16 SVG_LENGTHTYPE_PERCENTAGE = 2
PRUint16 SVG_LENGTHTYPE_EMS = 3
PRUint16 SVG_LENGTHTYPE_EXS = 4
PRUint16 SVG_LENGTHTYPE_PX = 5
PRUint16 SVG_LENGTHTYPE_CM = 6
PRUint16 SVG_LENGTHTYPE_MM = 7
PRUint16 SVG_LENGTHTYPE_IN = 8
PRUint16 SVG_LENGTHTYPE_PT = 9
PRUint16 SVG_LENGTHTYPE_PC = 10

Properties

readonly PRUint16 unitType

float value

DOMString valueAsString

float valueInSpecifiedUnits


Methods

void convertToSpecifiedUnits ( PRUint16 unitType ) void newValueSpecifiedUnits ( PRUint16 unitType , float valueInSpecifiedUnits )

void convertToSpecifiedUnits ( PRUint16 unitType )

Arguments:
unitType

void newValueSpecifiedUnits ( PRUint16 unitType , float valueInSpecifiedUnits )

Arguments:
unitType
valueInSpecifiedUnits

References

This interface is the type of the following properties:

nsIDOMSVGAnimatedLength.animVal, nsIDOMSVGAnimatedLength.baseVal

This interface is passed as an argument to the following methods:

nsIDOMSVGLengthList.appendItem, nsIDOMSVGLengthList.initialize, nsIDOMSVGLengthList.insertItemBefore, nsIDOMSVGLengthList.replaceItem

This interface is returned from the following methods:

nsIDOMSVGLengthList.appendItem, nsIDOMSVGLengthList.getItem, nsIDOMSVGLengthList.initialize, nsIDOMSVGLengthList.insertItemBefore, nsIDOMSVGLengthList.removeItem, nsIDOMSVGLengthList.replaceItem, nsIDOMSVGSVGElement.createSVGLength

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com