nsISVGRenderer

IID:14e914e0-f283-4fd0-9d71-d3e842927007
Inherits From:nsISupports

\addtogroup renderer_interfaces Rendering Engine Interfaces One of a number of interfaces (all starting with nsISVGRenderer*) to be implemented by an SVG rendering engine.

This interface serves as a factory for rendering engine-related objects. Each rendering engine needs to make available an nsIRenderer-object with a contract id of the form "@mozilla.org/svg/renderer;1?tech=NAME".

Engines implemented at the moment include an ms windows gdi+ engine ("@mozilla.org/svg/renderer;1?tech=GDIPLUS") and a (somewhat) cross-platform libart engine ("@mozilla.org/svg/renderer;1?tech=LIBART").


Methods

[noscript] nsISVGRendererCanvas createCanvas ( nsIRenderingContext ctx , nsPresContext* presContext , nsRectRef dirtyRect ) nsISVGRendererGlyphGeometry createGlyphGeometry ( nsISVGGlyphGeometrySource src ) nsISVGRendererGlyphMetrics createGlyphMetrics ( nsISVGGlyphMetricsSource src ) nsISVGRendererPathGeometry createPathGeometry ( nsISVGPathGeometrySource src ) nsISVGRendererRegion createRectRegion ( float x , float y , float width , float height ) [noscript] nsISVGRendererSurface createSurface ( PRUint32 width , PRUint32 height )

nsISVGRendererCanvas createCanvas ( nsIRenderingContext ctx , nsPresContext* presContext , nsRectRef dirtyRect )

Create a rendering engine-native canvas object for the Mozilla-native rendering context 'ctx' and presentation context 'presContext'.

Arguments:
ctx: Mozilla-native rendering context.
presContext: Presentation context.
dirtyRect: Area that the canvas should cover.
Returns:
A rendering engine-native canvas object.

nsISVGRendererGlyphGeometry createGlyphGeometry ( nsISVGGlyphGeometrySource src )

Create a rendering engine-native glyph geometry object for the source object given by 'src'.

Arguments:
src: The source object describing the glyph for which this object is being created.
Returns:
A rendering engine-native glyph geometry object.

nsISVGRendererGlyphMetrics createGlyphMetrics ( nsISVGGlyphMetricsSource src )

Create a rendering engine-native glyph metrics object for the source object given by 'src'.

Arguments:
src: The source object describing the glyph for which this metrics object is being created.
Returns:
A rendering engine-native glyph metrics object.

nsISVGRendererPathGeometry createPathGeometry ( nsISVGPathGeometrySource src )

Create a rendering engine-native path geometry object for the source object given by 'src'.

Arguments:
src: The source object describing the path for which this object is being created.
Returns:
A rendering engine-native path geometry object.

nsISVGRendererRegion createRectRegion ( float x , float y , float width , float height )

Create a rendering engine-native region object for the given axis-aligned rectangle.

Arguments:
x: X-coordinate of rectangle (pixels).
y: Y-coordinate of rectangle (pixels).
width: Width of rectangle (pixels).
height: Height of rectangle (pixels).
Returns:
A rendering engine-native region object.

nsISVGRendererSurface createSurface ( PRUint32 width , PRUint32 height )

Create a rendering engine-native surface object.

Arguments:
width: Width of rectangle (pixels).
height: Height of rectangle (pixels).
Returns:
A rendering engine-native surface object.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com