| Top |
| void | go_bezier_spline_destroy () |
| GOBezierSpline * | go_bezier_spline_init () |
| void | go_bezier_spline_to_cairo () |
| GOPath * | go_bezier_spline_to_path () |
void
go_bezier_spline_destroy (GOBezierSpline *sp);
Destroys the given structures after cleaning all allocated fields.
GOBezierSpline * go_bezier_spline_init (double const *x,double const *y,int n,gboolean closed);
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.
void go_bezier_spline_to_cairo (GOBezierSpline *sp,cairo_t *cr,gboolean horiz_flip);
Renders the spline in \a cr
GOPath *
go_bezier_spline_to_path (GOBezierSpline *sp);
Builds a GOPath using the control points evaluated in go_bezier_spline_init.
typedef struct {
double *x, *y;
int n;
gboolean closed;
/* private */
unsigned ref_count;
} GOBezierSpline;
control points abscissa. |
||
control points ordinates. |
||
spline segments number. |
||
gboolean |
whether the curve is closed. |