558 lines
17 KiB
HTML
558 lines
17 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>gimpgrid</title>
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
|
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
|
|
<link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties">
|
|
<link rel="prev" href="libgimp-gimpfloatingsel.html" title="gimpfloatingsel">
|
|
<link rel="next" href="libgimp-gimpguides.html" title="gimpguides">
|
|
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
|
|
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
|
|
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
|
|
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
|
|
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
|
|
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
|
|
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
|
|
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
|
|
<link rel="index" href="ix01.html" title="Index">
|
|
<link rel="index" href="ix02.html" title="Index of new symbols in GIMP 2.2">
|
|
<link rel="index" href="ix03.html" title="Index of new symbols in GIMP 2.4">
|
|
<link rel="index" href="ix04.html" title="Index of deprecated symbols">
|
|
</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="2">
|
|
<tr valign="middle">
|
|
<td><a accesskey="p" href="libgimp-gimpfloatingsel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
|
<td><a accesskey="u" href="libgimp-image.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">GIMP Library Reference Manual</th>
|
|
<td><a accesskey="n" href="libgimp-gimpguides.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
|
</tr>
|
|
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
|
|
 | 
|
|
<a href="#desc" class="shortcut">Description</a></nobr></td></tr>
|
|
</table>
|
|
<div class="refentry" lang="en">
|
|
<a name="libgimp-gimpgrid"></a><div class="titlepage"></div>
|
|
<div class="refnamediv"><table width="100%"><tr>
|
|
<td valign="top">
|
|
<h2><span class="refentrytitle"><a name="top_of_page"></a>gimpgrid</span></h2>
|
|
<p>gimpgrid — </p>
|
|
</td>
|
|
<td valign="top" align="right"></td>
|
|
</tr></table></div>
|
|
<div class="refsynopsisdiv">
|
|
<a name="synopsis"></a><h2>Synopsis</h2>
|
|
<pre class="synopsis">
|
|
|
|
|
|
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-get-spacing">gimp_image_grid_get_spacing</a> (gint32 image_ID,
|
|
gdouble *xspacing,
|
|
gdouble *yspacing);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-set-spacing">gimp_image_grid_set_spacing</a> (gint32 image_ID,
|
|
gdouble xspacing,
|
|
gdouble yspacing);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-get-offset">gimp_image_grid_get_offset</a> (gint32 image_ID,
|
|
gdouble *xoffset,
|
|
gdouble *yoffset);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-set-offset">gimp_image_grid_set_offset</a> (gint32 image_ID,
|
|
gdouble xoffset,
|
|
gdouble yoffset);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-get-foreground-color">gimp_image_grid_get_foreground_color</a>
|
|
(gint32 image_ID,
|
|
<a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *fgcolor);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-set-foreground-color">gimp_image_grid_set_foreground_color</a>
|
|
(gint32 image_ID,
|
|
const <a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *fgcolor);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-get-background-color">gimp_image_grid_get_background_color</a>
|
|
(gint32 image_ID,
|
|
<a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *bgcolor);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-set-background-color">gimp_image_grid_set_background_color</a>
|
|
(gint32 image_ID,
|
|
const <a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *bgcolor);
|
|
<a
|
|
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpGridStyle"
|
|
>GimpGridStyle</a> <a href="libgimp-gimpgrid.html#gimp-image-grid-get-style">gimp_image_grid_get_style</a> (gint32 image_ID);
|
|
gboolean <a href="libgimp-gimpgrid.html#gimp-image-grid-set-style">gimp_image_grid_set_style</a> (gint32 image_ID,
|
|
<a
|
|
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpGridStyle"
|
|
>GimpGridStyle</a> style);
|
|
</pre>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="desc"></a><h2>Description</h2>
|
|
<p>
|
|
|
|
</p>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="details"></a><h2>Details</h2>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2603485"></a><h3>
|
|
<a name="gimp-image-grid-get-spacing"></a>gimp_image_grid_get_spacing ()</h3>
|
|
<a class="indexterm" name="id2603498"></a><pre class="programlisting">gboolean gimp_image_grid_get_spacing (gint32 image_ID,
|
|
gdouble *xspacing,
|
|
gdouble *yspacing);</pre>
|
|
<p>
|
|
Gets the spacing of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure retrieves the horizontal and vertical spacing of an
|
|
image's grid. It takes the image as parameter.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>xspacing</code></em> :</span></td>
|
|
<td> The image's grid horizontal spacing.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>yspacing</code></em> :</span></td>
|
|
<td> The image's grid vertical spacing.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2588793"></a><h3>
|
|
<a name="gimp-image-grid-set-spacing"></a>gimp_image_grid_set_spacing ()</h3>
|
|
<a class="indexterm" name="id2588807"></a><pre class="programlisting">gboolean gimp_image_grid_set_spacing (gint32 image_ID,
|
|
gdouble xspacing,
|
|
gdouble yspacing);</pre>
|
|
<p>
|
|
Sets the spacing of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure sets the horizontal and vertical spacing of an
|
|
image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>xspacing</code></em> :</span></td>
|
|
<td> The image's grid horizontal spacing.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>yspacing</code></em> :</span></td>
|
|
<td> The image's grid vertical spacing.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2588920"></a><h3>
|
|
<a name="gimp-image-grid-get-offset"></a>gimp_image_grid_get_offset ()</h3>
|
|
<a class="indexterm" name="id2588934"></a><pre class="programlisting">gboolean gimp_image_grid_get_offset (gint32 image_ID,
|
|
gdouble *xoffset,
|
|
gdouble *yoffset);</pre>
|
|
<p>
|
|
Gets the offset of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure retrieves the horizontal and vertical offset of an
|
|
image's grid. It takes the image as parameter.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>xoffset</code></em> :</span></td>
|
|
<td> The image's grid horizontal offset.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>yoffset</code></em> :</span></td>
|
|
<td> The image's grid vertical offset.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2602791"></a><h3>
|
|
<a name="gimp-image-grid-set-offset"></a>gimp_image_grid_set_offset ()</h3>
|
|
<a class="indexterm" name="id2602805"></a><pre class="programlisting">gboolean gimp_image_grid_set_offset (gint32 image_ID,
|
|
gdouble xoffset,
|
|
gdouble yoffset);</pre>
|
|
<p>
|
|
Sets the offset of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure sets the horizontal and vertical offset of an image's
|
|
grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>xoffset</code></em> :</span></td>
|
|
<td> The image's grid horizontal offset.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>yoffset</code></em> :</span></td>
|
|
<td> The image's grid vertical offset.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2602918"></a><h3>
|
|
<a name="gimp-image-grid-get-foreground-color"></a>gimp_image_grid_get_foreground_color ()</h3>
|
|
<a class="indexterm" name="id2602934"></a><pre class="programlisting">gboolean gimp_image_grid_get_foreground_color
|
|
(gint32 image_ID,
|
|
<a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *fgcolor);</pre>
|
|
<p>
|
|
Sets the foreground color of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure gets the foreground color of an image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>fgcolor</code></em> :</span></td>
|
|
<td> The image's grid foreground color.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2589508"></a><h3>
|
|
<a name="gimp-image-grid-set-foreground-color"></a>gimp_image_grid_set_foreground_color ()</h3>
|
|
<a class="indexterm" name="id2589524"></a><pre class="programlisting">gboolean gimp_image_grid_set_foreground_color
|
|
(gint32 image_ID,
|
|
const <a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *fgcolor);</pre>
|
|
<p>
|
|
Gets the foreground color of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure sets the foreground color of an image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>fgcolor</code></em> :</span></td>
|
|
<td> The new foreground color.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2589617"></a><h3>
|
|
<a name="gimp-image-grid-get-background-color"></a>gimp_image_grid_get_background_color ()</h3>
|
|
<a class="indexterm" name="id2589633"></a><pre class="programlisting">gboolean gimp_image_grid_get_background_color
|
|
(gint32 image_ID,
|
|
<a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *bgcolor);</pre>
|
|
<p>
|
|
Sets the background color of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure gets the background color of an image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>bgcolor</code></em> :</span></td>
|
|
<td> The image's grid background color.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2589726"></a><h3>
|
|
<a name="gimp-image-grid-set-background-color"></a>gimp_image_grid_set_background_color ()</h3>
|
|
<a class="indexterm" name="id2589742"></a><pre class="programlisting">gboolean gimp_image_grid_set_background_color
|
|
(gint32 image_ID,
|
|
const <a
|
|
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
|
>GimpRGB</a> *bgcolor);</pre>
|
|
<p>
|
|
Gets the background color of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure sets the background color of an image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>bgcolor</code></em> :</span></td>
|
|
<td> The new background color.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2604385"></a><h3>
|
|
<a name="gimp-image-grid-get-style"></a>gimp_image_grid_get_style ()</h3>
|
|
<a class="indexterm" name="id2604397"></a><pre class="programlisting"><a
|
|
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpGridStyle"
|
|
>GimpGridStyle</a> gimp_image_grid_get_style (gint32 image_ID);</pre>
|
|
<p>
|
|
Gets the style of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure retrieves the style of an image's grid.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The image's grid style.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2604459"></a><h3>
|
|
<a name="gimp-image-grid-set-style"></a>gimp_image_grid_set_style ()</h3>
|
|
<a class="indexterm" name="id2604471"></a><pre class="programlisting">gboolean gimp_image_grid_set_style (gint32 image_ID,
|
|
<a
|
|
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpGridStyle"
|
|
>GimpGridStyle</a> style);</pre>
|
|
<p>
|
|
Sets the style unit of an image's grid.
|
|
</p>
|
|
<p>
|
|
This procedure sets the style of an image's grid. It takes the image
|
|
and the new style as parameters.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
|
<td> The image.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>style</code></em> :</span></td>
|
|
<td> The image's grid style.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE on success.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|