Clutter.PaintNode

g Clutter.PaintNode Clutter.PaintNode

Subclasses:

Clutter.ClipNode, Clutter.PipelineNode, Clutter.TextNode

Methods

add_child (child)

add_rectangle (rect)

add_texture_rectangle (rect, x_1, y_1, x_2, y_2)

ref ()

set_name (name)

unref ()

Virtual Methods

None

Fields

None

Class Details

class Clutter.PaintNode
Abstract:

Yes

Structure:

Clutter.PaintNodeClass

The ClutterPaintNode structure contains only private data and it should be accessed using the provided API.

New in version 1.10.

add_child(child)
Parameters:

child (Clutter.PaintNode) – the child Clutter.PaintNode to add

Adds child to the list of children of self.

This function will acquire a reference on child.

New in version 1.10.

add_rectangle(rect)
Parameters:

rect (Clutter.ActorBox) – a Clutter.ActorBox

Adds a rectangle region to the self, as described by the passed rect.

New in version 1.10.

add_texture_rectangle(rect, x_1, y_1, x_2, y_2)
Parameters:
  • rect (Clutter.ActorBox) – a Clutter.ActorBox

  • x_1 (float) – the left X coordinate of the texture

  • y_1 (float) – the top Y coordinate of the texture

  • x_2 (float) – the right X coordinate of the texture

  • y_2 (float) – the bottom Y coordinate of the texture

Adds a rectangle region to the self, with texture coordinates.

New in version 1.10.

ref()
Returns:

the Clutter.PaintNode

Return type:

Clutter.PaintNode

Acquires a reference on self.

New in version 1.10.

set_name(name)
Parameters:

name (str) – a string annotating the self

Sets a user-readable name for self.

The name will be used for debugging purposes.

The self will copy the passed string.

New in version 1.10.

unref()

Releases a reference on self.

New in version 1.10.