Inheritance diagram for wx.GraphicsPath:
A wx.GraphicsPath is a native representation of an geometric path. The contents are specific an private to the respective renderer. Instances are ref counted and can therefore be assigned as usual. The only way to get a valid instance is via a CreatePath call on the graphics context or the renderer instance.
Adds an arc of a circle centering at (x, y) with radius r from startAngle to endAngle.
Parameters:
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).
Parameters:
Appends a circle around (x, y) with radius r as a new closed subpath.
Parameters:
Adds a cubic Bezier curve from the current point, using two control points and an end point.
Parameters:
Appends an ellipse fitting into the passed in rectangle.
Parameters:
Adds a straight line from the current point to (x, y).
Parameters:
Adds another path.
Parameters:
Adds a quadratic Bezier curve from the current point, using a control point and an end point.
Parameters:
Appends a rectangle as a new closed subpath.
Parameters:
Appends a rounded rectangle as a new closed subpath.
Parameters:
Returns True if the point is within the path.
Parameters:
Returns:
bool
Gets the bounding box enclosing all points (possibly including control points).
Returns:
wx.Rect2DDouble
Gets the last point of the current path, (0, 0) if not yet set.
Returns:
wx.Point2DDouble
Returns the native path (CGPathRef for Core Graphics, Path pointer for GDIPlus and a cairo_path_t pointer for cairo).
Returns:
void
Note
For wxPython we still need a way to make this value usable.
Begins a new subpath at (x, y)
Parameters:
Transforms each point of this path by the matrix.
Parameters:
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).
Parameters: