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.

nsIDOMSVGTransform

IID:29cc2e14-6d18-4710-bda9-a88d9d3bc8dc
Inherits From:nsISupports

Constants

PRUint16 SVG_TRANSFORM_UNKNOWN = 0
PRUint16 SVG_TRANSFORM_MATRIX = 1
PRUint16 SVG_TRANSFORM_TRANSLATE = 2
PRUint16 SVG_TRANSFORM_SCALE = 3
PRUint16 SVG_TRANSFORM_ROTATE = 4
PRUint16 SVG_TRANSFORM_SKEWX = 5
PRUint16 SVG_TRANSFORM_SKEWY = 6

Properties

readonly float angle

readonly nsIDOMSVGMatrix matrix

readonly PRUint16 type


Methods

void setMatrix ( nsIDOMSVGMatrix matrix ) void setRotate ( float angle , float cx , float cy ) void setScale ( float sx , float sy ) void setSkewX ( float angle ) void setSkewY ( float angle ) void setTranslate ( float tx , float ty )

void setMatrix ( nsIDOMSVGMatrix matrix )

Arguments:
matrix

void setRotate ( float angle , float cx , float cy )

Arguments:
angle
cx
cy

void setScale ( float sx , float sy )

Arguments:
sx
sy

void setSkewX ( float angle )

Arguments:
angle

void setSkewY ( float angle )

Arguments:
angle

void setTranslate ( float tx , float ty )

Arguments:
tx
ty

References

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

nsIDOMSVGTransformList.appendItem, nsIDOMSVGTransformList.initialize, nsIDOMSVGTransformList.insertItemBefore, nsIDOMSVGTransformList.replaceItem

This interface is returned from the following methods:

nsIDOMSVGSVGElement.createSVGTransform, nsIDOMSVGSVGElement.createSVGTransformFromMatrix, nsIDOMSVGTransformList.appendItem, nsIDOMSVGTransformList.consolidate, nsIDOMSVGTransformList.createSVGTransformFromMatrix, nsIDOMSVGTransformList.getItem, nsIDOMSVGTransformList.initialize, nsIDOMSVGTransformList.insertItemBefore, nsIDOMSVGTransformList.removeItem, nsIDOMSVGTransformList.replaceItem

Reference documentation is generated from Mozilla's source.