GOffice.CanvasPoints¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
n |
r |
||
points |
r/w |
The embedded points. |
|
refs |
r |
Methods¶
class |
|
|
|
|
Details¶
- class GOffice.CanvasPoints¶
A boxed type used to hold a list of
GOffice.CanvasPoint
instances.- classmethod new(n)¶
- Parameters:
n (
int
) – the number ofGOffice.CanvasPoint
instances.- Returns:
the newly created
GOffice.CanvasPoints
with an initial referenceGOffice.count
of 1.- Return type:
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:
Increases the reference
GOffice.count
of self by 1.
- unref()¶
Decreases the reference
GOffice.count
of self by 1, and destroys it if the referenceGOffice.count
becomes 0.