4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimppatterns</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
8
<link rel="up" href="libgimp-data.html" title="Data Objects">
9
9
<link rel="prev" href="libgimp-gimppattern.html" title="gimppattern">
10
10
<link rel="next" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-selectors.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2625655" class="shortcut">Top</a>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2641745" class="shortcut">Top</a>
33
<a href="#id2639864" class="shortcut">Description</a></nobr></td></tr>
36
<a href="#id2692727" class="shortcut">Description</a></nobr></td></tr>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimppatterns"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
40
<a name="id2625655"></a><span class="refentrytitle">gimppatterns</span>
43
<a name="id2641745"></a><span class="refentrytitle">gimppatterns</span>
42
45
<p>gimppatterns — Functions relating to patterns.</p>
52
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-refresh">gimp_patterns_refresh</a> (void);
53
gchar** <a href="libgimp-gimppatterns.html#gimp-patterns-get-list">gimp_patterns_get_list</a> (const gchar *filter,
55
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern">gimp_patterns_get_pattern</a> (gint *width,
57
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-set-pattern">gimp_patterns_set_pattern</a> (const gchar *name);
58
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern-data">gimp_patterns_get_pattern_data</a> (const gchar *name,
55
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-refresh">gimp_patterns_refresh</a> (void);
56
gchar** <a href="libgimp-gimppatterns.html#gimp-patterns-get-list">gimp_patterns_get_list</a> (const gchar *filter,
58
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern">gimp_patterns_get_pattern</a> (gint *width,
60
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-set-pattern">gimp_patterns_set_pattern</a> (const gchar *name);
61
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern-data">gimp_patterns_get_pattern_data</a> (const gchar *name,
66
69
<div class="refsect1" lang="en">
67
<a name="id2639864"></a><h2>Description</h2>
70
<a name="id2692727"></a><h2>Description</h2>
69
72
Functions relating to patterns.
73
76
<div class="refsect1" lang="en">
74
<a name="id2639880"></a><h2>Details</h2>
77
<a name="id2692743"></a><h2>Details</h2>
75
78
<div class="refsect2" lang="en">
76
<a name="id2639890"></a><h3>
79
<a name="id2692753"></a><h3>
77
80
<a name="gimp-patterns-refresh"></a>gimp_patterns_refresh ()</h3>
78
<a class="indexterm" name="id2639901"></a><pre class="programlisting">gboolean gimp_patterns_refresh (void);</pre>
81
<a class="indexterm" name="id2692764"></a><pre class="programlisting">gboolean gimp_patterns_refresh (void);</pre>
80
83
Refresh current patterns. This function always succeeds.
88
91
<div class="variablelist"><table border="0">
89
92
<col align="left" valign="top">
92
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
94
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
93
95
<td> TRUE on success.
99
101
<div class="refsect2" lang="en">
100
<a name="id2639537"></a><h3>
102
<a name="id2692810"></a><h3>
101
103
<a name="gimp-patterns-get-list"></a>gimp_patterns_get_list ()</h3>
102
<a class="indexterm" name="id2639548"></a><pre class="programlisting">gchar** gimp_patterns_get_list (const gchar *filter,
103
gint *num_patterns);</pre>
104
<a class="indexterm" name="id2694815"></a><pre class="programlisting">gchar** gimp_patterns_get_list (const gchar *filter,
105
gint *num_patterns);</pre>
105
107
Retrieve a complete listing of the available patterns.
108
110
This procedure returns a complete listing of available GIMP
109
111
patterns. Each name returned can be used as input to the
110
'gimp_context_set_pattern'.</p>
112
<a href="libgimp-gimpcontext.html#gimp-context-set-pattern"><code class="function">gimp_context_set_pattern()</code></a>.</p>
115
117
<col align="left" valign="top">
119
<span class="term"><em class="parameter"><code>filter</code></em> :</span></td>
120
<td><span class="term"><em class="parameter"><code>filter</code></em> :</span></td>
120
121
<td> An optional regular expression used to filter the list.
125
<span class="term"><em class="parameter"><code>num_patterns</code></em> :</span></td>
125
<td><span class="term"><em class="parameter"><code>num_patterns</code></em> :</span></td>
126
126
<td> The number of patterns in the pattern list.
131
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
130
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
132
131
<td> The list of pattern names.
139
138
<div class="refsect2" lang="en">
140
<a name="id2639636"></a><h3>
139
<a name="id2694912"></a><h3>
141
140
<a name="gimp-patterns-get-pattern"></a>gimp_patterns_get_pattern ()</h3>
142
<a class="indexterm" name="id2639649"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern (gint *width,
141
<a class="indexterm" name="id2694925"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern (gint *width,
144
143
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
145
144
<h3 class="title">Warning</h3>
146
145
<p><code class="literal">gimp_patterns_get_pattern</code> is deprecated and should not be used in newly-written code.</p>
155
154
<col align="left" valign="top">
159
<span class="term"><em class="parameter"><code>width</code></em> :</span></td>
157
<td><span class="term"><em class="parameter"><code>width</code></em> :</span></td>
160
158
<td> The pattern width.
165
<span class="term"><em class="parameter"><code>height</code></em> :</span></td>
162
<td><span class="term"><em class="parameter"><code>height</code></em> :</span></td>
166
163
<td> The pattern height.
171
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
167
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
172
168
<td> The pattern name.
179
175
<div class="refsect2" lang="en">
180
<a name="id2640192"></a><h3>
176
<a name="id2700648"></a><h3>
181
177
<a name="gimp-patterns-set-pattern"></a>gimp_patterns_set_pattern ()</h3>
182
<a class="indexterm" name="id2640206"></a><pre class="programlisting">gboolean gimp_patterns_set_pattern (const gchar *name);</pre>
178
<a class="indexterm" name="id2700661"></a><pre class="programlisting">gboolean gimp_patterns_set_pattern (const gchar *name);</pre>
183
179
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
184
180
<h3 class="title">Warning</h3>
185
181
<p><code class="literal">gimp_patterns_set_pattern</code> is deprecated and should not be used in newly-written code.</p>
193
189
<col align="left" valign="top">
197
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
192
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
198
193
<td> The pattern name.
203
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
197
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
204
198
<td> TRUE on success.
211
205
<div class="refsect2" lang="en">
212
<a name="id2640285"></a><h3>
206
<a name="id2700741"></a><h3>
213
207
<a name="gimp-patterns-get-pattern-data"></a>gimp_patterns_get_pattern_data ()</h3>
214
<a class="indexterm" name="id2640298"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern_data (const gchar *name,
219
guint8 **mask_data);</pre>
208
<a class="indexterm" name="id2700755"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern_data (const gchar *name,
213
guint8 **mask_data);</pre>
220
214
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
221
215
<h3 class="title">Warning</h3>
222
216
<p><code class="literal">gimp_patterns_get_pattern_data</code> is deprecated and should not be used in newly-written code.</p>
230
224
<col align="left" valign="top">
234
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
227
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
235
228
<td> The pattern name (\"\" means currently active pattern).
240
<span class="term"><em class="parameter"><code>width</code></em> :</span></td>
232
<td><span class="term"><em class="parameter"><code>width</code></em> :</span></td>
241
233
<td> The pattern width.
246
<span class="term"><em class="parameter"><code>height</code></em> :</span></td>
237
<td><span class="term"><em class="parameter"><code>height</code></em> :</span></td>
247
238
<td> The pattern height.
252
<span class="term"><em class="parameter"><code>mask_bpp</code></em> :</span></td>
242
<td><span class="term"><em class="parameter"><code>mask_bpp</code></em> :</span></td>
253
243
<td> Pattern bytes per pixel.
258
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
247
<td><span class="term"><em class="parameter"><code>length</code></em> :</span></td>
259
248
<td> Length of pattern mask data.
264
<span class="term"><em class="parameter"><code>mask_data</code></em> :</span></td>
252
<td><span class="term"><em class="parameter"><code>mask_data</code></em> :</span></td>
265
253
<td> The pattern mask data.
270
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
257
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
271
258
<td> The pattern name.