GOffice.CanvasPoints

Fields

Name

Type

Access

Description

n

int

r

points

GOffice.CanvasPoint

r/w

The embedded points.

refs

int

r

Methods

class

new (n)

ref ()

unref ()

Details

class GOffice.CanvasPoints

A boxed type used to hold a list of GOffice.CanvasPoint instances.

classmethod new(n)
Parameters:

n (int) – the number of GOffice.CanvasPoint instances.

Returns:

the newly created GOffice.CanvasPoints with an initial reference GOffice.count of 1.

Return type:

GOffice.CanvasPoints

Creates a new GOffice.CanvasPoints 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;
ref()
Returns:

the referenced GOffice.CanvasPoints.

Return type:

GOffice.CanvasPoints

Increases the reference GOffice.count of self by 1.

unref()

Decreases the reference GOffice.count of self by 1, and destroys it if the reference GOffice.count becomes 0.