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.CanvasPointinstances.- classmethod new(n)¶
- Parameters:
n (
int) – the number ofGOffice.CanvasPointinstances.- Returns:
the newly created
GOffice.CanvasPointswith an initial referenceGOffice.countof 1.- Return type:
Creates a new
GOffice.CanvasPointsinstances 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.countof self by 1.
- unref()¶
Decreases the reference
GOffice.countof self by 1, and destroys it if the referenceGOffice.countbecomes 0.