<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ClutterPaintNode: Clutter Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> <link rel="home" href="index.html" title="Clutter Reference Manual"> <link rel="up" href="ch08.html" title="Paint Objects"> <link rel="prev" href="ch08.html" title="Paint Objects"> <link rel="next" href="clutter-Paint-Nodes.html" title="Paint Nodes"> <meta name="generator" content="GTK-Doc V1.25.1 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"> <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> <a href="#ClutterPaintNode.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> <a href="#ClutterPaintNode.object-hierarchy" class="shortcut">Object Hierarchy</a></span> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="ch08.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="ch08.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="clutter-Paint-Nodes.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="ClutterPaintNode"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="ClutterPaintNode.top_of_page"></a>ClutterPaintNode</span></h2> <p>ClutterPaintNode — Paint objects</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsect1"> <a name="ClutterPaintNode.functions"></a><h2>Functions</h2> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="functions_return"> <col class="functions_name"> </colgroup> <tbody> <tr> <td class="function_type"> <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="returnvalue">ClutterPaintNode</span></a> * </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-ref" title="clutter_paint_node_ref ()">clutter_paint_node_ref</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-unref" title="clutter_paint_node_unref ()">clutter_paint_node_unref</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-set-name" title="clutter_paint_node_set_name ()">clutter_paint_node_set_name</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-add-child" title="clutter_paint_node_add_child ()">clutter_paint_node_add_child</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-add-rectangle" title="clutter_paint_node_add_rectangle ()">clutter_paint_node_add_rectangle</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-add-texture-rectangle" title="clutter_paint_node_add_texture_rectangle ()">clutter_paint_node_add_texture_rectangle</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-add-path" title="clutter_paint_node_add_path ()">clutter_paint_node_add_path</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-paint-node-add-primitive" title="clutter_paint_node_add_primitive ()">clutter_paint_node_add_primitive</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="define_keyword">#define</td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#CLUTTER-VALUE-HOLDS-PAINT-NODE:CAPS" title="CLUTTER_VALUE_HOLDS_PAINT_NODE()">CLUTTER_VALUE_HOLDS_PAINT_NODE</a><span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-value-set-paint-node" title="clutter_value_set_paint_node ()">clutter_value_set_paint_node</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">void</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-value-take-paint-node" title="clutter_value_take_paint_node ()">clutter_value_take_paint_node</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">gpointer</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-value-get-paint-node" title="clutter_value_get_paint_node ()">clutter_value_get_paint_node</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <span class="returnvalue">gpointer</span> </td> <td class="function_name"> <a class="link" href="ClutterPaintNode.html#clutter-value-dup-paint-node" title="clutter_value_dup_paint_node ()">clutter_value_dup_paint_node</a> <span class="c_punctuation">()</span> </td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="ClutterPaintNode.other"></a><h2>Types and Values</h2> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="name"> <col class="description"> </colgroup> <tbody> <tr> <td class="datatype_keyword"> </td> <td class="function_name"><a class="link" href="ClutterPaintNode.html#ClutterPaintNode-struct" title="ClutterPaintNode">ClutterPaintNode</a></td> </tr> <tr> <td class="datatype_keyword"> </td> <td class="function_name"><a class="link" href="ClutterPaintNode.html#ClutterPaintNodeClass" title="ClutterPaintNodeClass">ClutterPaintNodeClass</a></td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="ClutterPaintNode.object-hierarchy"></a><h2>Object Hierarchy</h2> <pre class="screen"> ClutterPaintNode <span class="lineart">├──</span> <a class="link" href="clutter-Paint-Nodes.html#ClutterClipNode">ClutterClipNode</a> <span class="lineart">├──</span> <a class="link" href="clutter-Paint-Nodes.html#ClutterPipelineNode">ClutterPipelineNode</a> <span class="lineart">╰──</span> <a class="link" href="clutter-Paint-Nodes.html#ClutterTextNode">ClutterTextNode</a> </pre> </div> <div class="refsect1"> <a name="ClutterPaintNode.description"></a><h2>Description</h2> <p><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> is an element in the render graph.</p> <p>The render graph contains all the elements that need to be painted by Clutter when submitting a frame to the graphics system.</p> <p>The render graph is distinct from the scene graph: the scene graph is composed by actors, which can be visible or invisible; the scene graph elements also respond to events. The render graph, instead, is only composed by nodes that will be painted.</p> <p>Each <a class="link" href="ClutterActor.html" title="ClutterActor"><span class="type">ClutterActor</span></a> can submit multiple <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>s to the render graph.</p> </div> <div class="refsect1"> <a name="ClutterPaintNode.functions_details"></a><h2>Functions</h2> <div class="refsect2"> <a name="clutter-paint-node-ref"></a><h3>clutter_paint_node_ref ()</h3> <pre class="programlisting"><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="returnvalue">ClutterPaintNode</span></a> * clutter_paint_node_ref (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>);</pre> <p>Acquires a reference on <em class="parameter"><code>node</code></em> .</p> <div class="refsect3"> <a name="clutter-paint-node-ref.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <div class="refsect3"> <a name="clutter-paint-node-ref.returns"></a><h4>Returns</h4> <p> the <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>. </p> <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-unref"></a><h3>clutter_paint_node_unref ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_unref (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>);</pre> <p>Releases a reference on <em class="parameter"><code>node</code></em> .</p> <div class="refsect3"> <a name="clutter-paint-node-unref.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-set-name"></a><h3>clutter_paint_node_set_name ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_set_name (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre> <p>Sets a user-readable <em class="parameter"><code>name</code></em> for <em class="parameter"><code>node</code></em> .</p> <p>The <em class="parameter"><code>name</code></em> will be used for debugging purposes.</p> <p>The <em class="parameter"><code>node</code></em> will copy the passed string.</p> <div class="refsect3"> <a name="clutter-paint-node-set-name.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>name</p></td> <td class="parameter_description"><p>a string annotating the <em class="parameter"><code>node</code></em> </p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-add-child"></a><h3>clutter_paint_node_add_child ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_add_child (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *child</code></em>);</pre> <p>Adds <em class="parameter"><code>child</code></em> to the list of children of <em class="parameter"><code>node</code></em> .</p> <p>This function will acquire a reference on <em class="parameter"><code>child</code></em> .</p> <div class="refsect3"> <a name="clutter-paint-node-add-child.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>child</p></td> <td class="parameter_description"><p>the child <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> to add</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-add-rectangle"></a><h3>clutter_paint_node_add_rectangle ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_add_rectangle (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code>const <a class="link" href="clutter-Base-geometric-types.html#ClutterActorBox"><span class="type">ClutterActorBox</span></a> *rect</code></em>);</pre> <p>Adds a rectangle region to the <em class="parameter"><code>node</code></em> , as described by the passed <em class="parameter"><code>rect</code></em> .</p> <div class="refsect3"> <a name="clutter-paint-node-add-rectangle.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>rect</p></td> <td class="parameter_description"><p>a <a class="link" href="clutter-Base-geometric-types.html#ClutterActorBox"><span class="type">ClutterActorBox</span></a></p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-add-texture-rectangle"></a><h3>clutter_paint_node_add_texture_rectangle ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_add_texture_rectangle (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code>const <a class="link" href="clutter-Base-geometric-types.html#ClutterActorBox"><span class="type">ClutterActorBox</span></a> *rect</code></em>, <em class="parameter"><code><span class="type">float</span> x_1</code></em>, <em class="parameter"><code><span class="type">float</span> y_1</code></em>, <em class="parameter"><code><span class="type">float</span> x_2</code></em>, <em class="parameter"><code><span class="type">float</span> y_2</code></em>);</pre> <p>Adds a rectangle region to the <em class="parameter"><code>node</code></em> , with texture coordinates.</p> <div class="refsect3"> <a name="clutter-paint-node-add-texture-rectangle.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>rect</p></td> <td class="parameter_description"><p>a <a class="link" href="clutter-Base-geometric-types.html#ClutterActorBox"><span class="type">ClutterActorBox</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>x_1</p></td> <td class="parameter_description"><p>the left X coordinate of the texture</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>y_1</p></td> <td class="parameter_description"><p>the top Y coordinate of the texture</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>x_2</p></td> <td class="parameter_description"><p>the right X coordinate of the texture</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>y_2</p></td> <td class="parameter_description"><p>the bottom Y coordinate of the texture</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-add-path"></a><h3>clutter_paint_node_add_path ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_add_path (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code><span class="type">CoglPath</span> *path</code></em>);</pre> <p>Adds a region described as a path to the <em class="parameter"><code>node</code></em> .</p> <p>This function acquires a reference on the passed <em class="parameter"><code>path</code></em> , so it is safe to call <code class="function">cogl_object_unref()</code> when it returns.</p> <div class="refsect3"> <a name="clutter-paint-node-add-path.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>path</p></td> <td class="parameter_description"><p>a Cogl path</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> <p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to give outside developers early access to new or rapidly changing technology, or to provide an interim solution to a problem where a more general solution is anticipated. No claims are made about either source or binary compatibility from one minor release to the next. The Unstable interface level is a warning that these interfaces are subject to change without warning and should not be used in unbundled products. Given such caveats, customer impact need not be a factor when considering incompatible changes to an Unstable interface in a major or minor release. Nonetheless, when such changes are introduced, the changes should still be mentioned in the release notes for the affected release. "><span class="acronym">Unstable</span></acronym></p> </div> <hr> <div class="refsect2"> <a name="clutter-paint-node-add-primitive"></a><h3>clutter_paint_node_add_primitive ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_paint_node_add_primitive (<em class="parameter"><code><a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> *node</code></em>, <em class="parameter"><code><span class="type">CoglPrimitive</span> *primitive</code></em>);</pre> <p>Adds a region described by a Cogl primitive to the <em class="parameter"><code>node</code></em> .</p> <p>This function acquires a reference on <em class="parameter"><code>primitive</code></em> , so it is safe to call <code class="function">cogl_object_unref()</code> when it returns.</p> <div class="refsect3"> <a name="clutter-paint-node-add-primitive.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p>a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>primitive</p></td> <td class="parameter_description"><p>a Cogl primitive</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="CLUTTER-VALUE-HOLDS-PAINT-NODE:CAPS"></a><h3>CLUTTER_VALUE_HOLDS_PAINT_NODE()</h3> <pre class="programlisting">#define CLUTTER_VALUE_HOLDS_PAINT_NODE(value) (G_VALUE_HOLDS (value, CLUTTER_TYPE_PAINT_NODE)) </pre> <p>Evaluates to <code class="literal">TRUE</code> if the <em class="parameter"><code>value</code></em> has been initialized to hold a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>.</p> <div class="refsect3"> <a name="CLUTTER-VALUE-HOLDS-PAINT-NODE.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>value</p></td> <td class="parameter_description"><p>a <span class="type">GValue</span></p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-value-set-paint-node"></a><h3>clutter_value_set_paint_node ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_value_set_paint_node (<em class="parameter"><code><span class="type">GValue</span> *value</code></em>, <em class="parameter"><code><span class="type">gpointer</span> node</code></em>);</pre> <p>Sets the contents of a <span class="type">GValue</span> initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code>.</p> <p>This function increased the reference count of <em class="parameter"><code>node</code></em> ; if you do not wish to increase the reference count, use <a class="link" href="ClutterPaintNode.html#clutter-value-take-paint-node" title="clutter_value_take_paint_node ()"><code class="function">clutter_value_take_paint_node()</code></a> instead. The reference count will be released by <code class="function">g_value_unset()</code>.</p> <div class="refsect3"> <a name="clutter-value-set-paint-node.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>value</p></td> <td class="parameter_description"><p>a <span class="type">GValue</span> initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p> a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>, or <code class="literal">NULL</code>. </p></td> <td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Clutter.PaintNode][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-value-take-paint-node"></a><h3>clutter_value_take_paint_node ()</h3> <pre class="programlisting"><span class="returnvalue">void</span> clutter_value_take_paint_node (<em class="parameter"><code><span class="type">GValue</span> *value</code></em>, <em class="parameter"><code><span class="type">gpointer</span> node</code></em>);</pre> <p>Sets the contents of a <span class="type">GValue</span> initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code>.</p> <p>Unlike <a class="link" href="ClutterPaintNode.html#clutter-value-set-paint-node" title="clutter_value_set_paint_node ()"><code class="function">clutter_value_set_paint_node()</code></a>, this function will not take a reference on the passed <em class="parameter"><code>node</code></em> : instead, it will take ownership of the current reference count.</p> <div class="refsect3"> <a name="clutter-value-take-paint-node.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody> <tr> <td class="parameter_name"><p>value</p></td> <td class="parameter_description"><p>a <span class="type">GValue</span>, initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code></p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>node</p></td> <td class="parameter_description"><p> a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>, or <code class="literal">NULL</code>. </p></td> <td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Clutter.PaintNode][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> </tr> </tbody> </table></div> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-value-get-paint-node"></a><h3>clutter_value_get_paint_node ()</h3> <pre class="programlisting"><span class="returnvalue">gpointer</span> clutter_value_get_paint_node (<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>);</pre> <p>Retrieves a pointer to the <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> contained inside the passed <span class="type">GValue</span>.</p> <div class="refsect3"> <a name="clutter-value-get-paint-node.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>value</p></td> <td class="parameter_description"><p>a <span class="type">GValue</span> initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code></p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <div class="refsect3"> <a name="clutter-value-get-paint-node.returns"></a><h4>Returns</h4> <p> a pointer to a <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>, or <code class="literal">NULL</code>. </p> <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Clutter.PaintNode]</span></p> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="clutter-value-dup-paint-node"></a><h3>clutter_value_dup_paint_node ()</h3> <pre class="programlisting"><span class="returnvalue">gpointer</span> clutter_value_dup_paint_node (<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>);</pre> <p>Retrieves a pointer to the <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a> contained inside the passed <span class="type">GValue</span>, and if not <code class="literal">NULL</code> it will increase the reference count.</p> <div class="refsect3"> <a name="clutter-value-dup-paint-node.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>value</p></td> <td class="parameter_description"><p>a <span class="type">GValue</span> initialized with <code class="literal">CLUTTER_TYPE_PAINT_NODE</code></p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> <div class="refsect3"> <a name="clutter-value-dup-paint-node.returns"></a><h4>Returns</h4> <p> a pointer to the <a class="link" href="ClutterPaintNode.html" title="ClutterPaintNode"><span class="type">ClutterPaintNode</span></a>, with its reference count increased, or <code class="literal">NULL</code>. </p> <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Clutter.PaintNode]</span></p> </div> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> </div> <div class="refsect1"> <a name="ClutterPaintNode.other_details"></a><h2>Types and Values</h2> <div class="refsect2"> <a name="ClutterPaintNode-struct"></a><h3>ClutterPaintNode</h3> <pre class="programlisting">typedef struct _ClutterPaintNode ClutterPaintNode;</pre> <p>The <code class="literal">ClutterPaintNode</code> structure contains only private data and it should be accessed using the provided API.</p> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> <hr> <div class="refsect2"> <a name="ClutterPaintNodeClass"></a><h3>ClutterPaintNodeClass</h3> <pre class="programlisting">typedef struct _ClutterPaintNodeClass ClutterPaintNodeClass;</pre> <p>The <code class="literal">ClutterPaintNodeClass</code> structure contains only private data.</p> <p class="since">Since: <a class="link" href="ix12.html#api-index-1.10">1.10</a></p> </div> </div> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.25.1</div> </body> </html>