| Top |
| GocIntArray * | goc_int_array_new () |
| GocIntArray * | goc_int_array_ref () |
| void | goc_int_array_unref () |
| GocPoints * | goc_points_new () |
| GocPoints * | goc_points_ref () |
| void | goc_points_unref () |
GocIntArray *
goc_int_array_new (unsigned n);
Creates a new GocIntArray instances with n
values initialized to 0.
The values can be changed using direct access:
GocIntArray *array = goc_int_array_new (2);
array->vals[0] = my_first_int;
array->vals[1] = my_second_int;
Since: 0.8.2
GocIntArray *
goc_int_array_ref (GocIntArray *array);
Increases the reference count of array
by 1.
Since: 0.8.2
void
goc_int_array_unref (GocIntArray *array);
Decreases the reference count of array
by 1, and destroys it if the
reference count becomes 0.
Since: 0.8.2
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 reference count of points
by 1.