Clutter.PathNode

Fields

Name

Type

Access

Description

points

[Clutter.Knot]

r/w

the coordinates of the node

type

Clutter.PathNodeType

r/w

the node’s type

Methods

copy ()

equal (node_b)

free ()

Details

class Clutter.PathNode

Represents a single node of a Clutter.Path.

Some of the coordinates in points may be unused for some node types. Clutter.PathNodeType.MOVE_TO and Clutter.PathNodeType.LINE_TO use only one pair of coordinates, Clutter.PathNodeType.CURVE_TO uses all three and Clutter.PathNodeType.CLOSE uses none.

New in version 1.0.

copy()
Returns:

the copied node.

Return type:

Clutter.PathNode

Makes an allocated copy of a node.

New in version 1.0.

equal(node_b)
Parameters:

node_b (Clutter.PathNode) – Second node

Returns:

True if the nodes are the same.

Return type:

bool

Compares two nodes and checks if they are the same type with the same coordinates.

New in version 1.0.

free()

Frees the memory of an allocated node.

New in version 1.0.