1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Iterating over a ClutterPath</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="Clutter Reference Manual">
8 <link rel="up" href="migrating-ClutterPath.html" title="Migrating to ClutterPath">
9 <link rel="prev" href="migrating-ClutterPath.html" title="Migrating to ClutterPath">
10 <link rel="next" href="using-cairo.html" title="Integration with Cairo">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16 <td><a accesskey="p" href="migrating-ClutterPath.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="migrating-ClutterPath.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Clutter Reference Manual</th>
20 <td><a accesskey="n" href="using-cairo.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
24 <a name="iterating-paths"></a>Iterating over a <a class="link" href="ClutterPath.html" title="ClutterPath"><span class="type">ClutterPath</span></a>
25 </h2></div></div></div>
26 <p>It is possible to iterate over all the <a class="link" href="ClutterPath.html#ClutterPathNode" title="struct ClutterPathNode"><span class="type">ClutterPathNode</span></a>s
27 inside a <a class="link" href="ClutterPath.html" title="ClutterPath"><span class="type">ClutterPath</span></a> by using <a class="link" href="ClutterPath.html#clutter-path-get-nodes" title="clutter_path_get_nodes ()"><code class="function">clutter_path_get_nodes()</code></a>, which will return
28 a <a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> of <a class="link" href="ClutterPath.html#ClutterPathNode" title="struct ClutterPathNode"><span class="type">ClutterPathNode</span></a>s; or by using <a class="link" href="ClutterPath.html#clutter-path-foreach" title="clutter_path_foreach ()"><code class="function">clutter_path_foreach()</code></a>
30 <p>The function pointer passed to <a class="link" href="ClutterPath.html#clutter-path-foreach" title="clutter_path_foreach ()"><code class="function">clutter_path_foreach()</code></a> should have the
31 following definition:</p>
32 <div class="informalexample">
33 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
36 <td class="listing_lines" align="right"><pre>1
41 <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
42 <span class="function">foreach_node</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">ClutterPathNode</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">path_node</span><span class="symbol">,</span>
43 <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
44 <span class="cbracket">{</span>
45 <span class="cbracket">}</span></pre></td>
54 Generated by GTK-Doc V1.18.1</div>