GOffice.BezierSpline¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| closed | bool | r/w | whether the curve is closed. | 
| n | int | r/w | spline segments number. | 
| ref_count | int | r | |
| x | float | r/w | control points abscissa. | 
| y | float | r/w | control points ordinates. | 
Details¶
- 
class GOffice.BezierSpline¶
- 
classmethod init(x, y, n, closed)¶
- Parameters: - Returns: - a newly created struct - GOffice.BezierSplineinstance which should be destroyed by a call to- GOffice.BezierSpline.destroy.- Return type: - x and y values must be valid and finite. The returned structure contains the x and y coordinates of all control points, including the incoming data. the n and closed fields are just copies of the corresponding arguments. 
 - 
destroy()¶
- Destroys the given structures after cleaning all allocated fields. 
 - 
to_cairo(cr, horiz_flip)¶
- Parameters: - cr (cairo.Context) – a cairo context
- horiz_flip (bool) – whether to flip horizontally (for a RTL canvas).
 - Renders the spline in \a cr 
- cr (
 - 
to_path()¶
- Returns: - a newly created - GOffice.Pathwhich should be destroyed by a call to- GOffice.Path.free.- Return type: - GOffice.Path- Builds a - GOffice.Pathusing the control points evaluated in- GOffice.BezierSpline.init.
 
- 
classmethod