| Goffice Reference Manual | ||||
|---|---|---|---|---|
GocPoints;
GocPoints* goc_points_new (unsigned n);
GocPoints* goc_points_ref (GocPoints *points);
void goc_points_unref (GocPoints *points);
typedef struct {
GocPoint *points;
} GocPoints;
A boxed type used to hold a list of GocPoint instances.
GocPoint * |
The embedded points. |
GocPoints* goc_points_new (unsigned n);
Creates a new GocPoints instances with n points with nul initial
coordinates. The coordinates can be changed using direct access:
GocPoints points = goc_points_new (1);
points->points[0].x = my_x;
points->points[0].y = my_y;
GocPoints* goc_points_ref (GocPoints *points);
Increases the references count of points by 1.