nsISVGGeometrySource

IID:b2c3119b-a27d-4b25-97a9-a9d60981a95e
Inherits From:nsISupports

\addtogroup rendering_backend_interfaces Rendering Backend Interfaces Describes a 'geometry' object (either a path or a glyph) in the SVG rendering backend. The rendering backend maintains an object implementing this interface for each rendering engine-native geometry object.

An engine-native geometry object will be informed of changes in a geometry's description with a call to its 'update' method with an OR-ed combination of the UPDATEMASK_* constants defined in this interface (or one of its sub-interfaces).


Constants

PRUint32 UPDATEMASK_NOTHING = 0
PRUint32 UPDATEMASK_ALL = -1
PRUint32 UPDATEMASK_PRES_CONTEXT = 1
PRUint32 UPDATEMASK_CANVAS_TM = 2
PRUint32 UPDATEMASK_STROKE_OPACITY = 4
PRUint32 UPDATEMASK_STROKE_WIDTH = 8
PRUint32 UPDATEMASK_STROKE_DASH_ARRAY = 16
PRUint32 UPDATEMASK_STROKE_DASHOFFSET = 32
PRUint16 STROKE_LINECAP_BUTT = 0
PRUint16 STROKE_LINECAP_ROUND = 1
PRUint16 STROKE_LINECAP_SQUARE = 2
PRUint32 UPDATEMASK_STROKE_LINECAP = 64
PRUint16 STROKE_LINEJOIN_MITER = 0
PRUint16 STROKE_LINEJOIN_ROUND = 1
PRUint16 STROKE_LINEJOIN_BEVEL = 2
PRUint32 UPDATEMASK_STROKE_LINEJOIN = 128
PRUint32 UPDATEMASK_STROKE_MITERLIMIT = 256
PRUint32 UPDATEMASK_FILL_OPACITY = 512
PRUint16 FILL_RULE_NONZERO = 0
PRUint16 FILL_RULE_EVENODD = 1
PRUint32 UPDATEMASK_FILL_RULE = 1024
PRUint16 PAINT_TYPE_NONE = 0
PRUint16 PAINT_TYPE_SOLID_COLOR = 1
PRUint16 PAINT_TYPE_SERVER = 2
PRUint16 PAINT_TYPE_GRADIENT = 3
PRUint16 PAINT_TYPE_PATTERN = 4
PRUint32 UPDATEMASK_STROKE_PAINT_TYPE = 2048
PRUint32 UPDATEMASK_STROKE_PAINT = 4096
PRUint32 UPDATEMASK_FILL_PAINT_TYPE = 16384
PRUint32 UPDATEMASK_FILL_PAINT = 32768

Properties

readonly nsIDOMSVGMatrix canvasTM

readonly PRUint16 clipRule

readonly float fillOpacity

readonly nscolor fillPaint

readonly PRUint16 fillPaintServerType

readonly PRUint16 fillPaintType

readonly PRUint16 fillRule

readonly nsPresContext* presContext

readonly float strokeDashoffset

readonly PRUint16 strokeLinecap

readonly PRUint16 strokeLinejoin

readonly float strokeMiterlimit

readonly float strokeOpacity

readonly nscolor strokePaint

readonly PRUint16 strokePaintServerType

readonly PRUint16 strokePaintType

readonly float strokeWidth


Methods

void GetFillGradient ( out nsISVGGradient grad ) void getStrokeDashArray ( out arrayof float arr , out PRUint32 count ) void GetStrokeGradient ( out nsISVGGradient grad ) PRBool IsClipChild ( )

void GetFillGradient ( out nsISVGGradient grad )

Arguments:
grad

void getStrokeDashArray ( out arrayof float arr , out PRUint32 count )

Arguments:
arr
count

void GetStrokeGradient ( out nsISVGGradient grad )

Arguments:
grad

PRBool IsClipChild ( )


References

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

nsISVGGradient.GetGradientTransform

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com