Champlain.PathLayer¶
- Subclasses:
None
Methods¶
- Inherited:
Champlain.Layer (2), Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4), Champlain.Exportable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The Path is Closed |
||
r/w |
The shape is filled |
||
r/w |
The path’s fill color |
||
r/w |
The shape is stroked |
||
r/w |
The path’s stroke color |
||
r/w |
The path’s stroke width |
Signals¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Fields¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.PathLayer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.PathLayer
structure contains only private data and should be accessed using the provided APINew in version 0.10.
- classmethod new()¶
- Returns:
a new instance of
Champlain.PathLayer
.- Return type:
Creates a new instance of
Champlain.PathLayer
.New in version 0.10.
- add_node(location)¶
- Parameters:
location (
Champlain.Location
) – aChamplain.Location
Adds a
Champlain.Location
object to the layer. The node is prepended to the list.New in version 0.10.
- get_closed()¶
-
Gets information whether the path is closed.
New in version 0.10.
- get_dash()¶
- Returns:
the list
- Return type:
[
int
]
Returns the list of dash segment lengths.
New in version 0.12.4.
- get_fill()¶
-
Checks whether the path is filled.
New in version 0.10.
- get_fill_color()¶
- Returns:
the path’s fill color.
- Return type:
Gets the path’s fill color.
New in version 0.10.
- get_nodes()¶
- Returns:
the list
- Return type:
Gets a copy of the list of all
Champlain.Location
objects inserted into the layer. You should free the list but not its contents.New in version 0.10.
- get_stroke()¶
-
Checks whether the path is stroked.
New in version 0.10.
- get_stroke_color()¶
- Returns:
the path’s stroke color.
- Return type:
Gets the path’s stroke color.
New in version 0.10.
- get_stroke_width()¶
- Returns:
the width of the stroke
- Return type:
Gets the width of the stroke.
New in version 0.10.
- get_visible()¶
-
Gets path visibility.
New in version 0.10.
- insert_node(location, position)¶
- Parameters:
location (
Champlain.Location
) – aChamplain.Location
position (
int
) – position in the list where theChamplain.Location
object should be inserted
Inserts a
Champlain.Location
object to the specified position.New in version 0.10.
- remove_all()¶
Removes all
Champlain.Location
objects from the layer.New in version 0.10.
- remove_node(location)¶
- Parameters:
location (
Champlain.Location
) – aChamplain.Location
Removes the
Champlain.Location
object from the layer.New in version 0.10.
- set_closed(value)¶
-
Makes the path closed.
New in version 0.10.
- set_dash(dash_pattern)¶
- Parameters:
dash_pattern ([
int
]) – list of integer values representing lengths of dashes/spaces (see cairo documentation ofcairo.Context.set_dash
())
Sets dashed line pattern in a way similar to
cairo.Context.set_dash
() of cairo. This method supports only integer values for segment lengths. The values have to be passed inside the data pointer of the list (using the GUINT_TO_POINTER conversion)Pass
None
to use solid line.New in version 0.12.4.
- set_fill(value)¶
- Parameters:
value (
bool
) – if the path is filled
Sets the path to be filled
New in version 0.10.
- set_fill_color(color)¶
- Parameters:
color (
Clutter.Color
orNone
) – The path’s fill color orNone
to reset to the default color. The color parameter is copied.
Set the path’s fill color.
New in version 0.10.
- set_stroke(value)¶
- Parameters:
value (
bool
) – if the path is stroked
Sets the path to be stroked
New in version 0.10.
- set_stroke_color(color)¶
- Parameters:
color (
Clutter.Color
orNone
) – The path’s stroke color orNone
to reset to the default color. The color parameter is copied.
Set the path’s stroke color.
New in version 0.10.
Property Details¶
- Champlain.PathLayer.props.closed¶
-
The shape is a closed path
New in version 0.10.
- Champlain.PathLayer.props.fill¶
-
The shape should be filled
New in version 0.10.
- Champlain.PathLayer.props.fill_color¶
- Name:
fill-color
- Type:
- Default Value:
<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>
- Flags:
The path’s fill color
New in version 0.10.
- Champlain.PathLayer.props.stroke¶
-
The shape should be stroked
New in version 0.10.
- Champlain.PathLayer.props.stroke_color¶
- Name:
stroke-color
- Type:
- Default Value:
<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>
- Flags:
The path’s stroke color
New in version 0.10.