nsISVGRendererPathBuilder Interface Reference
[Rendering Engine Interfaces]

import "nsISVGRendererPathBuilder.idl";

Inheritance diagram for nsISVGRendererPathBuilder:

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.

This interface is used by an nsISVGRendererPathGeometry object in a call to nsISVGPathGeometrySource::constructPath() to obtain a native representation of the path described by nsISVGPathGeometrySource.

Definition at line 57 of file nsISVGRendererPathBuilder.idl.

Public Member Functions


Member Function Documentation

void nsISVGRendererPathBuilder::moveto in float  x,
in float  y
 

Move current position and start new sub-path.

Parameters:
x X-coordinate (untransformed).
y Y-coordinate (untransformed).

void nsISVGRendererPathBuilder::lineto in float  x,
in float  y
 

Draw a straight line from the current position to (x,y). Advance current position to (x,y).

Parameters:
x X-coordinate of end point (untransformed).
y Y-coordinate of end point (untransformed).

void nsISVGRendererPathBuilder::curveto in float  x,
in float  y,
in float  x1,
in float  y1,
in float  x2,
in float  y2
 

Draw cubic Bezier curve from the current position to (x,y) using (x1,y1) as the control point at the beginning og the curve and (x2,y2) as the control point at the end of the curve. Advance current position to (x,y).

Parameters:
x X-coordinate of end point (untransformed).
y Y-coordinate of end point (untransformed).
x1 X-coordinate of first control point (untransformed).
y1 Y-coordinate of first control point (untransformed).
x2 X-coordinate of second control point (untransformed).
y2 Y-coordinate of second control point (untransformed).

void nsISVGRendererPathBuilder::arcto in float  x,
in float  y,
in float  r1,
in float  r2,
in float  angle,
in boolean  largeArcFlag,
in boolean  sweepFlag
 

Draw an elliptical arc from the current position to (x,y). Advance current position to (x,y).

Parameters:
x X-coordinate of end point (untransformed).
y Y-coordinate of end point (untransformed).
r1 Radius of ellipse in X direction (untransformed).
r2 Radius of ellipse in Y direction (untransformed).
angle Rotation of ellipse as a whole (untransformed).
largeArcFlag PR_TRUE: choose the large arc (>=180 degrees), PR_FALSE: choose the smaller arc (<=180 degrees)
sweepFlag PR_TRUE: sweep in positive angle direction, PR_FALSE: sweep in negative angle direction

void nsISVGRendererPathBuilder::closePath out float  newX,
out float  newY
 

Close the current subpath. Move current position back to beginning of subpath.

Parameters:
newX X-coordinate of new current position (untransformed).
newY Y-coordinate of new current position (untransformed).

void nsISVGRendererPathBuilder::endPath  ) 
 

End the path description. Guaranteed to be the last function called.


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