nsISVGGradient

IID:62e79ab2-5bf9-4372-b397-7a942bc4c649
Inherits From:nsISupports

\addtogroup rendering_backend_interfaces Rendering Backend Interfaces Describes the 'gradient' objects (either linear or a radial) to the rendering backends.


Constants

PRUint32 SVG_UNKNOWN_GRADIENT = 0
PRUint32 SVG_LINEAR_GRADIENT = 1
PRUint32 SVG_RADIAL_GRADIENT = 2

Properties

readonly PRUint32 gradientType

readonly PRUint16 gradientUnits

readonly PRUint16 spreadMethod


Methods

void GetGradientTransform ( out nsIDOMSVGMatrix retval , nsISVGGeometrySource source ) void GetNextGradient ( out nsISVGGradient nextGrad , PRUint32 type ) void GetStopColor ( PRInt32 index , out nscolor stopColor ) void GetStopCount ( out PRUint32 stopCount ) void GetStopOffset ( PRInt32 index , out float offset ) void GetStopOpacity ( PRInt32 index , out float stopOpacity )

void GetGradientTransform ( out nsIDOMSVGMatrix retval , nsISVGGeometrySource source )

Arguments:
retval
source

void GetNextGradient ( out nsISVGGradient nextGrad , PRUint32 type )

Arguments:
nextGrad
type

void GetStopColor ( PRInt32 index , out nscolor stopColor )

Arguments:
index
stopColor

void GetStopCount ( out PRUint32 stopCount )

Arguments:
stopCount

void GetStopOffset ( PRInt32 index , out float offset )

Arguments:
index
offset

void GetStopOpacity ( PRInt32 index , out float stopOpacity )

Arguments:
index
stopOpacity

References

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

nsISVGGeometrySource.GetFillGradient, nsISVGGeometrySource.GetStrokeGradient, nsISVGGradient.GetNextGradient

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com