Inheritance
System.Object
Path
Constructors
Declaration
public Path(int capacity = 128)
Parameters
Type |
Name |
Description |
System.Int32 |
capacity |
|
Methods
Declaration
public void addArc(float cx, float cy, float r, float a0, float a1, PathWinding dir, bool forceMoveTo = true)
Parameters
Type |
Name |
Description |
System.Single |
cx |
|
System.Single |
cy |
|
System.Single |
r |
|
System.Single |
a0 |
|
System.Single |
a1 |
|
PathWinding |
dir |
|
System.Boolean |
forceMoveTo |
|
Declaration
public void addArc(Rect rect, float startAngle, float sweepAngle)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
startAngle |
|
System.Single |
sweepAngle |
|
Declaration
public void addCircle(float cx, float cy, float r)
Parameters
Type |
Name |
Description |
System.Single |
cx |
|
System.Single |
cy |
|
System.Single |
r |
|
Declaration
public void addEllipse(float cx, float cy, float rx, float ry)
Parameters
Type |
Name |
Description |
System.Single |
cx |
|
System.Single |
cy |
|
System.Single |
rx |
|
System.Single |
ry |
|
Declaration
public void addOval(Rect oval)
Parameters
Type |
Name |
Description |
Rect |
oval |
|
Declaration
public void addPath(Path path, Matrix3 transform = null)
Parameters
Declaration
public void addPath(Path path, Offset offset)
Parameters
Declaration
public void addPolygon(IList<Offset> points, bool close)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<Offset> |
points |
|
System.Boolean |
close |
|
Declaration
public void addRect(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Declaration
public void addRRect(RRect rrect)
Parameters
Type |
Name |
Description |
RRect |
rrect |
|
Declaration
public void arcTo(float x1, float y1, float x2, float y2, float radius)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
radius |
|
Declaration
public void arcTo(Rect rect, float startAngle, float sweepAngle, bool forceMoveTo = true)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
startAngle |
|
System.Single |
sweepAngle |
|
System.Boolean |
forceMoveTo |
|
Declaration
public void arcToPoint(Offset arcEnd, Radius radius = null, float rotation = 0F, bool largeArc = false, bool clockwise = false)
Parameters
Type |
Name |
Description |
Offset |
arcEnd |
|
Radius |
radius |
|
System.Single |
rotation |
|
System.Boolean |
largeArc |
|
System.Boolean |
clockwise |
|
Declaration
Declaration
public void conicTo(float x1, float y1, float x2, float y2, float w)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
w |
|
Declaration
public bool contains(Offset point)
Parameters
Type |
Name |
Description |
Offset |
point |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void cubicTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
c1x |
|
System.Single |
c1y |
|
System.Single |
c2x |
|
System.Single |
c2y |
|
System.Single |
x |
|
System.Single |
y |
|
Declaration
Returns
Declaration
public void lineTo(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void moveTo(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void quadraticBezierTo(float cx, float cy, float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
cx |
|
System.Single |
cy |
|
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void relativeConicTo(float x1, float y1, float x2, float y2, float w)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
w |
|
Declaration
public void relativeCubicTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
c1x |
|
System.Single |
c1y |
|
System.Single |
c2x |
|
System.Single |
c2y |
|
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void relativeLineTo(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void relativeMoveTo(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Declaration
public void relativeQuadraticBezierTo(float cx, float cy, float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
cx |
|
System.Single |
cy |
|
System.Single |
x |
|
System.Single |
y |
|
Declaration
public Path shift(Offset offset)
Parameters
Type |
Name |
Description |
Offset |
offset |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Declaration
public Path transform(Matrix3 mat)
Parameters
Returns
Declaration
public void winding(PathWinding dir)
Parameters