GOffice.CanvasIntArray¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
n |
r/w |
the size of the array. A boxed type used to hold an array of integers. |
|
refs |
r |
||
vals |
r/w |
The embedded values. |
Methods¶
class |
|
|
|
|
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 referenceGOffice.count
of 1.- Return type:
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:
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 referenceGOffice.count
becomes 0.New in version 0.8.2.