GOffice.CanvasIntArray

Fields

Name

Type

Access

Description

n

int

r/w

the size of the array. A boxed type used to hold an array of integers.

refs

int

r

vals

int

r/w

The embedded values.

Methods

class

new (n)

ref ()

unref ()

Details

class GOffice.CanvasIntArray

New in version 0.8.2.

classmethod new(n)
Parameters:

n (int) – the number of integers in the array.

Returns:

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

Return type:

GOffice.CanvasIntArray

Creates a new GOffice.CanvasIntArray 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;

New in version 0.8.2.

ref()
Returns:

the referenced GOffice.CanvasIntArray.

Return type:

GOffice.CanvasIntArray

Increases the reference GOffice.count of self by 1.

New in version 0.8.2.

unref()

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

New in version 0.8.2.