Next: , Previous: ClutterPageTurnEffect, Up: Top


51 Paint Nodes

ClutterPaintNode implementations

51.1 Overview

Clutter provides a set of predefined <clutter-paint-node> implementations that cover all the state changes available.

51.2 Usage

— Function: clutter-color-node-new (self <clutter-color>) ⇒  (ret <clutter-paint-node>)

Creates a new <clutter-paint-node> that will paint a solid color fill using color.

color
the color to paint, or ‘#f’.
ret
the newly created <clutter-paint-node>. Use clutter-paint-node-unref when done.

Since 1.10

— Function: clutter-text-node-new (layout <pango-layout>) (color <clutter-color>) ⇒  (ret <clutter-paint-node>)

Creates a new <clutter-paint-node> that will paint a <pango-layout> with the given color.

This function takes a reference on the passed layout, so it is safe to call g-object-unref after it returns.

layout
a <pango-layout>, or ‘#f’.
color
the color used to paint the layout, or ‘#f’.
ret
the newly created <clutter-paint-node>. Use clutter-paint-node-unref when done.

Since 1.10

— Function: clutter-clip-node-new ⇒  (ret <clutter-paint-node>)

Creates a new <clutter-paint-node> that will clip its child nodes to the 2D regions added to it.

ret
the newly created <clutter-paint-node>. Use clutter-paint-node-unref when done.

Since 1.10