GooCanvas.CanvasLineDash

Fields

Name

Type

Access

Description

dash_offset

float

r/w

the start offset into the dash pattern.

dashes

float

r/w

the sizes of each dash and gap.

num_dashes

int

r/w

the number of dashes and gaps between them.

ref_count

int

r/w

the reference count of the struct.

Methods

class

newv (dashes)

ref ()

set_offset (dash_offset)

unref ()

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:

GooCanvas.CanvasLineDash

Creates a new dash pattern. Takes ownership of the dashes vector.

ref()
Returns:

the dash pattern.

Return type:

GooCanvas.CanvasLineDash

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.