File: //usr/share/gtk-doc/html/libgnomecanvas/libgnomecanvas-gnome-canvas-path-def.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gnome-canvas-path-def</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GNOME Canvas Library Reference Manual">
<link rel="up" href="ch02.html" title="GNOME Canvas Library (libgnomecanvas)">
<link rel="prev" href="GnomeCanvasWidget.html" title="GnomeCanvasWidget">
<link rel="next" href="libgnomecanvas-gnome-canvas-util.html" title="gnome-canvas-util">
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="GNOME Canvas Library (libgnomecanvas)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="GnomeCanvasWidget.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Canvas Library Reference Manual</th>
<td><a accesskey="n" href="libgnomecanvas-gnome-canvas-util.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry" lang="en">
<a name="libgnomecanvas-gnome-canvas-path-def"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">gnome-canvas-path-def</span></h2>
<p>gnome-canvas-path-def — Container and functions for manipulating ArtBpaths</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomecanvas/libgnomecanvas.h>
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>;
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new">gnome_canvas_path_def_new</a>
(void);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-sized">gnome_canvas_path_def_new_sized</a>
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> length);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-bpath">gnome_canvas_path_def_new_from_bpath</a>
(ArtBpath *bpath);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-static-bpath">gnome_canvas_path_def_new_from_static_bpath</a>
(ArtBpath *bpath);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-foreign-bpath">gnome_canvas_path_def_new_from_foreign_bpath</a>
(ArtBpath *bpath);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-ref">gnome_canvas_path_def_ref</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-finish">gnome_canvas_path_def_finish</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-ensure-space">gnome_canvas_path_def_ensure_space</a>
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> space);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-copy">gnome_canvas_path_def_copy</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *dst,
const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *src);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-duplicate">gnome_canvas_path_def_duplicate</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-concat">gnome_canvas_path_def_concat</a>
(const <a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *list);
<a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-split">gnome_canvas_path_def_split</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-open-parts">gnome_canvas_path_def_open_parts</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closed-parts">gnome_canvas_path_def_closed_parts</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-close-all">gnome_canvas_path_def_close_all</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-unref">gnome_canvas_path_def_unref</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-reset">gnome_canvas_path_def_reset</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-moveto">gnome_canvas_path_def_moveto</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-lineto">gnome_canvas_path_def_lineto</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-lineto-moving">gnome_canvas_path_def_lineto_moving</a>
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-curveto">gnome_canvas_path_def_curveto</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y2);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closepath">gnome_canvas_path_def_closepath</a> (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-closepath-current">gnome_canvas_path_def_closepath_current</a>
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
ArtBpath* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-bpath">gnome_canvas_path_def_bpath</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-length">gnome_canvas_path_def_length</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-is-empty">gnome_canvas_path_def_is_empty</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-has-currentpoint">gnome_canvas_path_def_has_currentpoint</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
void <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-currentpoint">gnome_canvas_path_def_currentpoint</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
ArtPoint *p);
ArtBpath* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-last-bpath">gnome_canvas_path_def_last_bpath</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
ArtBpath* <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-first-bpath">gnome_canvas_path_def_first_bpath</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-any-open">gnome_canvas_path_def_any_open</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-all-open">gnome_canvas_path_def_all_open</a> (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-any-closed">gnome_canvas_path_def_any_closed</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-all-closed">gnome_canvas_path_def_all_closed</a>
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2693762"></a><h2>Description</h2>
<p>
Convenient container and functions for manipulating ArtBpaths, which are paths
defined by line and curve segments.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2693774"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2693780"></a><h3>
<a name="GnomeCanvasPathDef"></a>GnomeCanvasPathDef</h3>
<a class="indexterm" name="id2693790"></a><pre class="programlisting">typedef struct _GnomeCanvasPathDef GnomeCanvasPathDef;</pre>
<p>
This structure should not be accessed directly. Use the functions defined
below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2693807"></a><h3>
<a name="gnome-canvas-path-def-new"></a>gnome_canvas_path_def_new ()</h3>
<a class="indexterm" name="id2693819"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_new
(void);</pre>
<p>
This function creates a new empty <span class="type">gnome_canvas_path_def</span>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new canvas path definition.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2693870"></a><h3>
<a name="gnome-canvas-path-def-new-sized"></a>gnome_canvas_path_def_new_sized ()</h3>
<a class="indexterm" name="id2693881"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_new_sized
(<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> length);</pre>
<p>
This function creates a new <span class="type">gnome_canvas_path_def</span> with <em class="parameter"><code>length</code></em>
number of points allocated. It is useful, if you know the exact
number of points in path, so you can avoid automatic point
array reallocation.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
<td> number of points to allocate for the path
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new canvas path definition
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2693961"></a><h3>
<a name="gnome-canvas-path-def-new-from-bpath"></a>gnome_canvas_path_def_new_from_bpath ()</h3>
<a class="indexterm" name="id2693973"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_new_from_bpath
(ArtBpath *bpath);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and uses the
passed <em class="parameter"><code>bpath</code></em> as the contents. The passed bpath should not be
static as the path definition is editable when constructed with
this function. Also, passed bpath will be freed with art_free, if
path is destroyed, so use it with caution.
For constructing a <span class="type">gnome_canvas_path_def</span>
from (non-modifiable) bpath use
<a href="libgnomecanvas-gnome-canvas-path-def.html#gnome-canvas-path-def-new-from-static-bpath"><span class="type">gnome_canvas_path_def_new_from_static_bpath</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>bpath</code></em> :</span></td>
<td> libart bezier path
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new canvas path definition that is populated with the
passed bezier path, if the <em class="parameter"><code>bpath</code></em> is bad NULL is returned.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694080"></a><h3>
<a name="gnome-canvas-path-def-new-from-static-bpath"></a>gnome_canvas_path_def_new_from_static_bpath ()</h3>
<a class="indexterm" name="id2694093"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_new_from_static_bpath
(ArtBpath *bpath);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and
references the passed <em class="parameter"><code>bpath</code></em> as its contents. The
<span class="type">gnome_canvas_path_def</span> returned from this function is to be
considered static and non-editable (meaning you cannot change the
path from what you passed in <em class="parameter"><code>bpath</code></em>). The bpath will not be freed,
if path will be destroyed, so use it with caution.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>bpath</code></em> :</span></td>
<td> libart bezier path
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new canvas path definition that references the passed
<em class="parameter"><code>bpath</code></em>, or if the path is bad NULL is returned.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694195"></a><h3>
<a name="gnome-canvas-path-def-new-from-foreign-bpath"></a>gnome_canvas_path_def_new_from_foreign_bpath ()</h3>
<a class="indexterm" name="id2694207"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_new_from_foreign_bpath
(ArtBpath *bpath);</pre>
<p>
This function constructs a new <span class="type">gnome_canvas_path_def</span> and
duplicates the contents of the passed <em class="parameter"><code>bpath</code></em> in the definition.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>bpath</code></em> :</span></td>
<td> libart bezier path
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the newly created <span class="type">gnome_canvas_path_def</span> or NULL if the
path is invalid.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694294"></a><h3>
<a name="gnome-canvas-path-def-ref"></a>gnome_canvas_path_def_ref ()</h3>
<a class="indexterm" name="id2694306"></a><pre class="programlisting">void gnome_canvas_path_def_ref (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
Increment the reference count of the GnomeCanvasPathDef.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694357"></a><h3>
<a name="gnome-canvas-path-def-finish"></a>gnome_canvas_path_def_finish ()</h3>
<a class="indexterm" name="id2694368"></a><pre class="programlisting">void gnome_canvas_path_def_finish (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
Trims dynamic point array to exact length of path.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694419"></a><h3>
<a name="gnome-canvas-path-def-ensure-space"></a>gnome_canvas_path_def_ensure_space ()</h3>
<a class="indexterm" name="id2694431"></a><pre class="programlisting">void gnome_canvas_path_def_ensure_space
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> space);</pre>
<p>
This function ensures that enough space for <em class="parameter"><code>space</code></em> points is
allocated at the end of the path.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>space</code></em> :</span></td>
<td> number of points to guarantee are allocated at the end of
the path.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694511"></a><h3>
<a name="gnome-canvas-path-def-copy"></a>gnome_canvas_path_def_copy ()</h3>
<a class="indexterm" name="id2694523"></a><pre class="programlisting">void gnome_canvas_path_def_copy (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *dst,
const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *src);</pre>
<p>
This function copies the contents <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em>. The old <em class="parameter"><code>dest</code></em> path
array is freed and <em class="parameter"><code>dest</code></em> is marked as non-static (editable),
regardless of the status of <em class="parameter"><code>src</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>dst</code></em> :</span></td>
<td> a GnomeCanvasPathDef where the contents of <em class="parameter"><code>src</code></em> will be stored.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>src</code></em> :</span></td>
<td> a GnomeCanvasPathDef whose contents will be copied it <em class="parameter"><code>src</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694638"></a><h3>
<a name="gnome-canvas-path-def-duplicate"></a>gnome_canvas_path_def_duplicate ()</h3>
<a class="indexterm" name="id2694649"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_duplicate
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function duplicates the passed <em class="parameter"><code>path</code></em>. The new path is
marked as non-static regardless of the state of original.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef to duplicate
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a GnomeCanvasPathDef which is a duplicate of <em class="parameter"><code>path</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694726"></a><h3>
<a name="gnome-canvas-path-def-concat"></a>gnome_canvas_path_def_concat ()</h3>
<a class="indexterm" name="id2694737"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_concat
(const <a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *list);</pre>
<p>
This function concatenates a list of GnomeCanvasPathDefs into one
newly created GnomeCanvasPathDef.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>list</code></em> :</span></td>
<td> a GSList of GnomeCanvasPathDefs to concatenate into one new
path.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new GnomeCanvasPathDef
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694801"></a><h3>
<a name="gnome-canvas-path-def-split"></a>gnome_canvas_path_def_split ()</h3>
<a class="indexterm" name="id2694812"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a>* gnome_canvas_path_def_split (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function splits the passed <em class="parameter"><code>path</code></em> into a list of
GnomeCanvasPathDefs which represent each segment of the origional
path. The path is split when ever an ART_MOVETO or ART_MOVETO_OPEN
is encountered. The closedness of resulting paths is set accordingly
to closedness of corresponding segment.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a list of GnomeCanvasPathDef(s).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694884"></a><h3>
<a name="gnome-canvas-path-def-open-parts"></a>gnome_canvas_path_def_open_parts ()</h3>
<a class="indexterm" name="id2694895"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_open_parts
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function creates a new GnomeCanvasPathDef that contains all of
the open segments on the passed <em class="parameter"><code>path</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new GnomeCanvasPathDef that contains all of the open segemtns in <em class="parameter"><code>path</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2694971"></a><h3>
<a name="gnome-canvas-path-def-closed-parts"></a>gnome_canvas_path_def_closed_parts ()</h3>
<a class="indexterm" name="id2694983"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_closed_parts
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a new GnomeCanvasPathDef that contains the
all of close parts of passed <em class="parameter"><code>path</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new GnomeCanvasPathDef that contains all of the closed
parts of passed <em class="parameter"><code>path</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695059"></a><h3>
<a name="gnome-canvas-path-def-close-all"></a>gnome_canvas_path_def_close_all ()</h3>
<a class="indexterm" name="id2695070"></a><pre class="programlisting"><a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a>* gnome_canvas_path_def_close_all
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function closes all of the open segments in the passed path
and returns a new GnomeCanvasPathDef.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a GnomeCanvasPathDef that contains the contents of <em class="parameter"><code>path</code></em>
but has modified the path is fully closed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695141"></a><h3>
<a name="gnome-canvas-path-def-unref"></a>gnome_canvas_path_def_unref ()</h3>
<a class="indexterm" name="id2695152"></a><pre class="programlisting">void gnome_canvas_path_def_unref (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
Decrease the reference count of the passed <em class="parameter"><code>path</code></em>. If the reference
count is < 1 the path is deallocated.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695209"></a><h3>
<a name="gnome-canvas-path-def-reset"></a>gnome_canvas_path_def_reset ()</h3>
<a class="indexterm" name="id2695221"></a><pre class="programlisting">void gnome_canvas_path_def_reset (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function clears the contents of the passed <em class="parameter"><code>path</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695277"></a><h3>
<a name="gnome-canvas-path-def-moveto"></a>gnome_canvas_path_def_moveto ()</h3>
<a class="indexterm" name="id2695289"></a><pre class="programlisting">void gnome_canvas_path_def_moveto (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);</pre>
<p>
This function adds starts new subpath on <em class="parameter"><code>path</code></em>, and sets its
starting point to <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. If current subpath is empty, it
simply changes its starting coordinates to new values.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> y coordinate
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695402"></a><h3>
<a name="gnome-canvas-path-def-lineto"></a>gnome_canvas_path_def_lineto ()</h3>
<a class="indexterm" name="id2695413"></a><pre class="programlisting">void gnome_canvas_path_def_lineto (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);</pre>
<p>
This function add a line segment to the passed <em class="parameter"><code>path</code></em> with the
specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> coordinates.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> y coordinate
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695524"></a><h3>
<a name="gnome-canvas-path-def-lineto-moving"></a>gnome_canvas_path_def_lineto_moving ()</h3>
<a class="indexterm" name="id2695536"></a><pre class="programlisting">void gnome_canvas_path_def_lineto_moving
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y);</pre>
<p>
This functions adds a new line segment with loose endpoint to the path, or
if endpoint is already loose, changes its coordinates to <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>. You
can change the coordinates of loose endpoint as many times as you want,
the last ones set will be fixed, if you continue line. This is useful
for handling drawing with mouse.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> y coordinate
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695646"></a><h3>
<a name="gnome-canvas-path-def-curveto"></a>gnome_canvas_path_def_curveto ()</h3>
<a class="indexterm" name="id2695657"></a><pre class="programlisting">void gnome_canvas_path_def_curveto (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y2);</pre>
<p>
This function adds a bezier curve segment to the path definition.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x0</code></em> :</span></td>
<td> first control point x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
<td> first control point y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x1</code></em> :</span></td>
<td> second control point x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y1</code></em> :</span></td>
<td> second control point y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x2</code></em> :</span></td>
<td> end of curve x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y2</code></em> :</span></td>
<td> end of curve y coordinate
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695838"></a><h3>
<a name="gnome-canvas-path-def-closepath"></a>gnome_canvas_path_def_closepath ()</h3>
<a class="indexterm" name="id2695850"></a><pre class="programlisting">void gnome_canvas_path_def_closepath (<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function closes the last subpath of <em class="parameter"><code>path</code></em>, adding a ART_LINETO to
subpath starting point, if needed and changing starting pathcode to
ART_MOVETO</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695908"></a><h3>
<a name="gnome-canvas-path-def-closepath-current"></a>gnome_canvas_path_def_closepath_current ()</h3>
<a class="indexterm" name="id2695920"></a><pre class="programlisting">void gnome_canvas_path_def_closepath_current
(<a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function closes the last subpath by setting the coordinates of
the endpoint of the last segment (line or curve) to starting point.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2695974"></a><h3>
<a name="gnome-canvas-path-def-bpath"></a>gnome_canvas_path_def_bpath ()</h3>
<a class="indexterm" name="id2695985"></a><pre class="programlisting">ArtBpath* gnome_canvas_path_def_bpath (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a ArtBpath that consists of the path
definition.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> ArtBpath
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696047"></a><h3>
<a name="gnome-canvas-path-def-length"></a>gnome_canvas_path_def_length ()</h3>
<a class="indexterm" name="id2696058"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gnome_canvas_path_def_length (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns the length of the path definition. Not
Euclidian length of the path but rather the number of points on the
path.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> integer, number of points on the path.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696122"></a><h3>
<a name="gnome-canvas-path-def-is-empty"></a>gnome_canvas_path_def_is_empty ()</h3>
<a class="indexterm" name="id2696133"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_is_empty (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function is a boolean test to see if the path is empty,
meaning containing no line segments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path is empty.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696196"></a><h3>
<a name="gnome-canvas-path-def-has-currentpoint"></a>gnome_canvas_path_def_has_currentpoint ()</h3>
<a class="indexterm" name="id2696208"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_has_currentpoint
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function is a boolean test checking to see if the path has a
current point defined. Current point will be set by line operators,
and cleared by closing subpath.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathdef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path has a current point defined.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696273"></a><h3>
<a name="gnome-canvas-path-def-currentpoint"></a>gnome_canvas_path_def_currentpoint ()</h3>
<a class="indexterm" name="id2696285"></a><pre class="programlisting">void gnome_canvas_path_def_currentpoint
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path,
ArtPoint *p);</pre>
<p>
Stores the current point of the path definition in the passed ArtPoint <em class="parameter"><code>p</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>p</code></em> :</span></td>
<td> a ArtPoint where to store the current point
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696364"></a><h3>
<a name="gnome-canvas-path-def-last-bpath"></a>gnome_canvas_path_def_last_bpath ()</h3>
<a class="indexterm" name="id2696376"></a><pre class="programlisting">ArtBpath* gnome_canvas_path_def_last_bpath
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns pointer to the last ArtBpath segment in the path
definition.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> ArtBpath, being the last segment in the path definition or
null if no line segments have been defined.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696440"></a><h3>
<a name="gnome-canvas-path-def-first-bpath"></a>gnome_canvas_path_def_first_bpath ()</h3>
<a class="indexterm" name="id2696452"></a><pre class="programlisting">ArtBpath* gnome_canvas_path_def_first_bpath
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns the first ArtBpath point in the definition.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> ArtBpath being the first point in the path definition or
null if no points are defined
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696516"></a><h3>
<a name="gnome-canvas-path-def-any-open"></a>gnome_canvas_path_def_any_open ()</h3>
<a class="indexterm" name="id2696527"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_any_open (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a boolean value indicating if the path has
any open segments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path has any open segments.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696590"></a><h3>
<a name="gnome-canvas-path-def-all-open"></a>gnome_canvas_path_def_all_open ()</h3>
<a class="indexterm" name="id2696602"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_all_open (const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a boolean value indicating if the path only
contains open segments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path has all open segments.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696665"></a><h3>
<a name="gnome-canvas-path-def-any-closed"></a>gnome_canvas_path_def_any_closed ()</h3>
<a class="indexterm" name="id2696676"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_any_closed
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a boolean valid indicating if the path has
any closed segements.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path has any closed segments.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2696740"></a><h3>
<a name="gnome-canvas-path-def-all-closed"></a>gnome_canvas_path_def_all_closed ()</h3>
<a class="indexterm" name="id2696751"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gnome_canvas_path_def_all_closed
(const <a href="libgnomecanvas-gnome-canvas-path-def.html#GnomeCanvasPathDef">GnomeCanvasPathDef</a> *path);</pre>
<p>
This function returns a boolean value indicating if the path only
contains closed segments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em> :</span></td>
<td> a GnomeCanvasPathDef
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> boolean, indicating if the path has all closed segments.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
<td align="left"><a accesskey="p" href="GnomeCanvasWidget.html"><b><< GnomeCanvasWidget</b></a></td>
<td align="right"><a accesskey="n" href="libgnomecanvas-gnome-canvas-util.html"><b>gnome-canvas-util >></b></a></td>
</tr></table>
</body>
</html>