nsISVGRendererPathGeometry Interface Reference
[Rendering Engine Interfaces]

import "nsISVGRendererPathGeometry.idl";

Inheritance diagram for nsISVGRendererPathGeometry:

Inheritance graph
[legend]
List of all members.

Detailed Description

One of a number of interfaces (all starting with nsISVGRenderer*) to be implemented by an SVG rendering engine. See nsISVGRenderer for more details.

The SVG rendering backend uses this interface to communicate to the rendering engine-native path objects.

A path geometry object is instantiated by the rendering backend for a given nsISVGPathGeometrySource object with a call to nsISVGRenderer::createPathGeometry(). The path geometry object is assumed to store a reference to its associated source object and provide rendering, hit-testing and metrics for the path described by the nsISVGPathGeometrySource members.

Definition at line 65 of file nsISVGRendererPathGeometry.idl.

Public Member Functions


Member Function Documentation

void nsISVGRendererPathGeometry::render in nsISVGRendererCanvas  canvas  ) 
 

Paint this object.

Parameters:
canvas The canvas to render to.

Referenced by nsSVGLibartPathGeometry::Render().

nsISVGRendererRegion nsISVGRendererPathGeometry::update in unsigned long  updatemask  ) 
 

Called by this object's corresponding nsISVGPathGeometrySource as a notification that some of the source's data (identified by paramter 'updatemask') has changed.

Parameters:
updatemask An OR-ed combination of the UPDATEMASK_* constants defined in nsISVGPathGeometrySource.
Returns:
Region that needs to be redrawn.

nsISVGRendererRegion nsISVGRendererPathGeometry::getCoveredRegion  ) 
 

Get a region object describing the area covered with paint by this path geometry.

Returns:
Covered region.

boolean nsISVGRendererPathGeometry::containsPoint in float  x,
in float  y
 

Hit-testing method. Does this path geometry (with all relevant transformations applied) contain the point x,y? Mode of operation (e.g. whether to test fill or stroke) is determined by nsISVGPathGeometrySource::hittestMask.

Parameters:
x X-coordinate of test point.
y Y-coordinate of test point.
Returns:
PR_TRUE if the path geometry contains the point, PR_FALSE otherwise.


The documentation for this interface was generated from the following file:
Generated on Wed Sep 10 22:25:42 2003 for Mozilla SVG Project Rendering Backend by doxygen1.3