GooCanvas.CanvasLineDash¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
dash_offset |
r/w |
the start offset into the dash pattern. |
|
dashes |
r/w |
the sizes of each dash and gap. |
|
num_dashes |
r/w |
the number of dashes and gaps between them. |
|
ref_count |
r/w |
the reference count of the struct. |
Methods¶
class |
|
|
|
|
|
|
Details¶
- class GooCanvas.CanvasLineDash¶
GooCanvas.CanvasLineDash
specifies a dash pattern to be used when drawing items.- classmethod newv(dashes)¶
- Parameters:
dashes ([
float
]) – a g_new-allocated vector of doubles, the length of each dash and gap.- Returns:
a new dash pattern.
- Return type:
Creates a new dash pattern. Takes ownership of the dashes vector.
- ref()¶
- Returns:
the dash pattern.
- Return type:
Increments the reference count of the dash pattern.
- set_offset(dash_offset)¶
- Parameters:
dash_offset (
float
) – the start offset into the dash pattern.
Sets the start offset into the dash pattern.
New in version 2.0.2.
- unref()¶
Decrements the reference count of the dash pattern. If it falls to 0 it is freed.