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