Home | Trees | Index | Help |
|
---|
Package wx :: Class GraphicsPath |
|
object
--+ |Object
--+ |GraphicsObject
--+ | GraphicsPath
Proxy of C++ GraphicsPath class
Method Summary | |
---|---|
__init__(self)
| |
__del__(self)
| |
bool clockwise=True) | |
Appends an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1) | |
Appends a circle around (x,y) with radius r as a new closed subpath. | |
AddCurveToPoint(self, Point2D c1, Point2D c2, Point2D e) | |
Appends an ellipse fitting into the passed in rectangle. | |
AddLineToPoint(self, Point2D p) | |
Adds another path | |
Adds a quadratic Bezier curve from the current point, using a control point and an end point | |
Appends a rectangle as a new closed subpath. | |
Appends a rounded rectangle. | |
Closes the current sub-path. | |
bool |
Contains(self, Point2D c, int fillStyle=ODDEVEN_RULE) -> bool |
Rect2D |
Gets the bounding box enclosing all points (possibly including control points) |
Point2D |
Gets the last point of the current path, (0,0) if not yet set |
void |
Returns the native path (CGPathRef for Core Graphics, Path pointer for GDIPlus and a cairo_path_t pointer for cairo). |
MoveToPoint(self, Point2D p) | |
Transforms each point of this path by the matrix | |
Gives back the native path returned by GetNativePath() because there might be some deallocations necessary (eg on cairo the native path returned by GetNativePath is newly allocated each time). |
Property Summary | |
---|---|
thisown : The membership flag |
Method Details |
---|
AddArc(self, x, y, r, startAngle, endAngle, clockwise=True)
Adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle
|
AddArcToPoint(self, x1, y1, x2, y2, r)Appends an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
|
AddCircle(self, x, y, r)Appends a circle around (x,y) with radius r as a new closed subpath.
|
AddCurveToPoint(self, cx1, cy1, cx2, cy2, x, y)AddCurveToPoint(self, Point2D c1, Point2D c2, Point2D e) Adds a cubic Bezier curve from the current point, using two control points and an end point
|
AddEllipse(self, x, y, w, h)Appends an ellipse fitting into the passed in rectangle.
|
AddLineToPoint(self, x, y)AddLineToPoint(self, Point2D p) Adds a straight line from the current point to the specified point.
|
AddPath(self, path)Adds another path
|
AddQuadCurveToPoint(self, cx, cy, x, y)Adds a quadratic Bezier curve from the current point, using a control point and an end point
|
AddRectangle(self, x, y, w, h)Appends a rectangle as a new closed subpath.
|
AddRoundedRectangle(self, x, y, w, h, radius)Appends a rounded rectangle.
|
CloseSubpath(self)Closes the current sub-path. |
Contains(self, x, y, fillStyle=ODDEVEN_RULE)Contains(self, Point2D c, int fillStyle=ODDEVEN_RULE) -> bool Returns True if the point is within the path.
|
GetBox(self)Gets the bounding box enclosing all points (possibly including control points)
|
GetCurrentPoint(self)Gets the last point of the current path, (0,0) if not yet set
|
GetNativePath(self)Returns the native path (CGPathRef for Core Graphics, Path pointer for GDIPlus and a cairo_path_t pointer for cairo). NOTE: For wxPython we still need a way to make this value usable.
|
MoveToPoint(self, x, y)MoveToPoint(self, Point2D p) Begins a new subpath at the specified point.
|
Transform(self, matrix)Transforms each point of this path by the matrix
|
UnGetNativePath(self, p)Gives back the native path returned by GetNativePath() because there might be some deallocations necessary (eg on cairo the native path returned by GetNativePath is newly allocated each time).
|
Property Details |
---|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:08:46 2007 | http://epydoc.sf.net |