~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimpwidgets/html/libgimpwidgets-GimpPropWidgets.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070502163303-6wchheivjxgjtlna
Tags: upstream-2.3.16
ImportĀ upstreamĀ versionĀ 2.3.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
5
<title>GimpPropWidgets</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
 
8
<link rel="up" href="libgimpwidgets-utils.html" title="Part&#160;V.&#160;GIMP Widgets Utilities">
 
9
<link rel="prev" href="libgimpwidgets-GimpEnumWidgets.html" title="GimpEnumWidgets">
 
10
<link rel="next" href="libgimpwidgets-GimpWidgets.html" title="GimpWidgets">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part&#160;I.&#160;GIMP Widgets">
 
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
 
15
<link rel="chapter" href="libgimpwidgets-gallery.html" title="Widget Gallery">
 
16
<link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView">
 
17
<link rel="part" href="libgimpwidgets-colordisplay.html" title="Part&#160;II.&#160;GIMP Display Filters">
 
18
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part&#160;III.&#160;GIMP Color Selectors">
 
19
<link rel="part" href="libgimpwidgets-controller.html" title="Part&#160;IV.&#160;GIMP Controllers">
 
20
<link rel="part" href="libgimpwidgets-utils.html" title="Part&#160;V.&#160;GIMP Widgets Utilities">
 
21
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part&#160;VI.&#160;Deprecated API">
 
22
<link rel="index" href="libgimpwidgets-index.html" title="Index">
 
23
<link rel="index" href="libgimpwidgets-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
 
24
<link rel="index" href="libgimpwidgets-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
 
25
<link rel="index" href="libgimpwidgets-index-deprecated.html" title="Index of deprecated symbols">
 
26
</head>
 
27
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
28
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
29
<tr valign="middle">
 
30
<td><a accesskey="p" href="libgimpwidgets-GimpEnumWidgets.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
31
<td><a accesskey="u" href="libgimpwidgets-utils.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
32
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
33
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
 
34
<td><a accesskey="n" href="libgimpwidgets-GimpWidgets.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
35
</tr>
 
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2646482" class="shortcut">Top</a>
 
37
                  &#160;|&#160;
 
38
                  <a href="#id2669367" class="shortcut">Description</a></nobr></td></tr>
 
39
</table>
 
40
<div class="refentry" lang="en">
 
41
<a name="libgimpwidgets-GimpPropWidgets"></a><div class="titlepage"></div>
 
42
<div class="refnamediv"><table width="100%"><tr>
 
43
<td valign="top">
 
44
<h2>
 
45
<a name="id2646482"></a><span class="refentrytitle">GimpPropWidgets</span>
 
46
</h2>
 
47
<p>GimpPropWidgets</p>
 
48
</td>
 
49
<td valign="top" align="right"></td>
 
50
</tr></table></div>
 
51
<div class="refsynopsisdiv">
 
52
<h2>Synopsis</h2>
 
53
<pre class="synopsis">
 
54
 
 
55
 
 
56
 
 
57
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-boolean-combo-box-new">gimp_prop_boolean_combo_box_new</a>     (GObject *config,
 
58
                                                         const gchar *property_name,
 
59
                                                         const gchar *true_text,
 
60
                                                         const gchar *false_text);
 
61
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-boolean-radio-frame-new">gimp_prop_boolean_radio_frame_new</a>   (GObject *config,
 
62
                                                         const gchar *property_name,
 
63
                                                         const gchar *title,
 
64
                                                         const gchar *true_text,
 
65
                                                         const gchar *false_text);
 
66
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-check-button-new">gimp_prop_check_button_new</a>          (GObject *config,
 
67
                                                         const gchar *property_name,
 
68
                                                         const gchar *label);
 
69
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-color-area-new">gimp_prop_color_area_new</a>            (GObject *config,
 
70
                                                         const gchar *property_name,
 
71
                                                         gint width,
 
72
                                                         gint height,
 
73
                                                         <a href="GimpColorArea.html#GimpColorAreaType">GimpColorAreaType</a> type);
 
74
gboolean            <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-coordinates-connect">gimp_prop_coordinates_connect</a>       (GObject *config,
 
75
                                                         const gchar *x_property_name,
 
76
                                                         const gchar *y_property_name,
 
77
                                                         const gchar *unit_property_name,
 
78
                                                         GtkWidget *sizeentry,
 
79
                                                         GtkWidget *chainbutton,
 
80
                                                         gdouble xresolution,
 
81
                                                         gdouble yresolution);
 
82
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-coordinates-new">gimp_prop_coordinates_new</a>           (GObject *config,
 
83
                                                         const gchar *x_property_name,
 
84
                                                         const gchar *y_property_name,
 
85
                                                         const gchar *unit_property_name,
 
86
                                                         const gchar *unit_format,
 
87
                                                         <a href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy,
 
88
                                                         gdouble xresolution,
 
89
                                                         gdouble yresolution,
 
90
                                                         gboolean has_chainbutton);
 
91
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-entry-new">gimp_prop_entry_new</a>                 (GObject *config,
 
92
                                                         const gchar *property_name,
 
93
                                                         gint max_len);
 
94
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-check-button-new">gimp_prop_enum_check_button_new</a>     (GObject *config,
 
95
                                                         const gchar *property_name,
 
96
                                                         const gchar *label,
 
97
                                                         gint false_value,
 
98
                                                         gint true_value);
 
99
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-combo-box-new">gimp_prop_enum_combo_box_new</a>        (GObject *config,
 
100
                                                         const gchar *property_name,
 
101
                                                         gint minimum,
 
102
                                                         gint maximum);
 
103
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-label-new">gimp_prop_enum_label_new</a>            (GObject *config,
 
104
                                                         const gchar *property_name);
 
105
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-radio-box-new">gimp_prop_enum_radio_box_new</a>        (GObject *config,
 
106
                                                         const gchar *property_name,
 
107
                                                         gint minimum,
 
108
                                                         gint maximum);
 
109
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-radio-frame-new">gimp_prop_enum_radio_frame_new</a>      (GObject *config,
 
110
                                                         const gchar *property_name,
 
111
                                                         const gchar *title,
 
112
                                                         gint minimum,
 
113
                                                         gint maximum);
 
114
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-stock-box-new">gimp_prop_enum_stock_box_new</a>        (GObject *config,
 
115
                                                         const gchar *property_name,
 
116
                                                         const gchar *stock_prefix,
 
117
                                                         gint minimum,
 
118
                                                         gint maximum);
 
119
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-expander-new">gimp_prop_expander_new</a>              (GObject *config,
 
120
                                                         const gchar *property_name,
 
121
                                                         const gchar *label);
 
122
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-file-chooser-button-new">gimp_prop_file_chooser_button_new</a>   (GObject *config,
 
123
                                                         const gchar *property_name,
 
124
                                                         const gchar *title,
 
125
                                                         GtkFileChooserAction action);
 
126
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-file-chooser-button-new-with-dialog">gimp_prop_file_chooser_button_new_with_dialog</a>
 
127
                                                        (GObject *config,
 
128
                                                         const gchar *property_name,
 
129
                                                         GtkWidget *dialog);
 
130
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-hscale-new">gimp_prop_hscale_new</a>                (GObject *config,
 
131
                                                         const gchar *property_name,
 
132
                                                         gdouble step_increment,
 
133
                                                         gdouble page_increment,
 
134
                                                         gint digits);
 
135
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-int-combo-box-new">gimp_prop_int_combo_box_new</a>         (GObject *config,
 
136
                                                         const gchar *property_name,
 
137
                                                         <a href="GimpIntStore.html" title="GimpIntStore">GimpIntStore</a> *store);
 
138
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-label-new">gimp_prop_label_new</a>                 (GObject *config,
 
139
                                                         const gchar *property_name);
 
140
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-memsize-entry-new">gimp_prop_memsize_entry_new</a>         (GObject *config,
 
141
                                                         const gchar *property_name);
 
142
GtkObject*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-opacity-entry-new">gimp_prop_opacity_entry_new</a>         (GObject *config,
 
143
                                                         const gchar *property_name,
 
144
                                                         GtkTable *table,
 
145
                                                         gint column,
 
146
                                                         gint row,
 
147
                                                         const gchar *label);
 
148
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-path-editor-new">gimp_prop_path_editor_new</a>           (GObject *config,
 
149
                                                         const gchar *path_property_name,
 
150
                                                         const gchar *writable_property_name,
 
151
                                                         const gchar *filesel_title);
 
152
GtkObject*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-scale-entry-new">gimp_prop_scale_entry_new</a>           (GObject *config,
 
153
                                                         const gchar *property_name,
 
154
                                                         GtkTable *table,
 
155
                                                         gint column,
 
156
                                                         gint row,
 
157
                                                         const gchar *label,
 
158
                                                         gdouble step_increment,
 
159
                                                         gdouble page_increment,
 
160
                                                         gint digits,
 
161
                                                         gboolean limit_scale,
 
162
                                                         gdouble lower_limit,
 
163
                                                         gdouble upper_limit);
 
164
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-size-entry-new">gimp_prop_size_entry_new</a>            (GObject *config,
 
165
                                                         const gchar *property_name,
 
166
                                                         const gchar *unit_property_name,
 
167
                                                         const gchar *unit_format,
 
168
                                                         <a href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy,
 
169
                                                         gdouble resolution);
 
170
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-spin-button-new">gimp_prop_spin_button_new</a>           (GObject *config,
 
171
                                                         const gchar *property_name,
 
172
                                                         gdouble step_increment,
 
173
                                                         gdouble page_increment,
 
174
                                                         gint digits);
 
175
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-stock-image-new">gimp_prop_stock_image_new</a>           (GObject *config,
 
176
                                                         const gchar *property_name,
 
177
                                                         GtkIconSize icon_size);
 
178
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-string-combo-box-new">gimp_prop_string_combo_box_new</a>      (GObject *config,
 
179
                                                         const gchar *property_name,
 
180
                                                         GtkTreeModel *model,
 
181
                                                         gint id_column,
 
182
                                                         gint label_column);
 
183
GtkTextBuffer*      <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-text-buffer-new">gimp_prop_text_buffer_new</a>           (GObject *config,
 
184
                                                         const gchar *property_name,
 
185
                                                         gint max_len);
 
186
GtkWidget*          <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-unit-menu-new">gimp_prop_unit_menu_new</a>             (GObject *config,
 
187
                                                         const gchar *property_name,
 
188
                                                         const gchar *unit_format);
 
189
</pre>
 
190
</div>
 
191
<div class="refsect1" lang="en">
 
192
<a name="id2669367"></a><h2>Description</h2>
 
193
<p>
 
194
 
 
195
</p>
 
196
</div>
 
197
<div class="refsect1" lang="en">
 
198
<a name="id2669383"></a><h2>Details</h2>
 
199
<div class="refsect2" lang="en">
 
200
<a name="id2669393"></a><h3>
 
201
<a name="gimp-prop-boolean-combo-box-new"></a>gimp_prop_boolean_combo_box_new ()</h3>
 
202
<a class="indexterm" name="id2669407"></a><pre class="programlisting">GtkWidget*          gimp_prop_boolean_combo_box_new     (GObject *config,
 
203
                                                         const gchar *property_name,
 
204
                                                         const gchar *true_text,
 
205
                                                         const gchar *false_text);</pre>
 
206
<p>
 
207
Creates a <span class="type">GtkComboBox</span> widget to display and set the specified
 
208
boolean property.  The combo box will have two entries, one
 
209
displaying the <em class="parameter"><code>true_text</code></em> label, the other displaying the
 
210
<em class="parameter"><code>false_text</code></em> label.</p>
 
211
<p>
 
212
 
 
213
</p>
 
214
<div class="variablelist"><table border="0">
 
215
<col align="left" valign="top">
 
216
<tbody>
 
217
<tr>
 
218
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
219
<td>        Object to which property is attached.
 
220
</td>
 
221
</tr>
 
222
<tr>
 
223
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
224
<td> Name of boolean property controlled by combo box.
 
225
</td>
 
226
</tr>
 
227
<tr>
 
228
<td><span class="term"><em class="parameter"><code>true_text</code></em>&#160;:</span></td>
 
229
<td>     Label used for entry corresponding to <code class="literal">TRUE</code> value.
 
230
</td>
 
231
</tr>
 
232
<tr>
 
233
<td><span class="term"><em class="parameter"><code>false_text</code></em>&#160;:</span></td>
 
234
<td>    Label used for entry corresponding to <code class="literal">FALSE</code> value.
 
235
</td>
 
236
</tr>
 
237
<tr>
 
238
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
239
<td> The newly created <span class="type">GtkComboBox</span> widget, optionally
 
240
              wrapped into a <span class="type">GtkEventBox</span>..
 
241
 
 
242
Since GIMP 2.4
 
243
</td>
 
244
</tr>
 
245
</tbody>
 
246
</table></div>
 
247
</div>
 
248
<hr>
 
249
<div class="refsect2" lang="en">
 
250
<a name="id2669588"></a><h3>
 
251
<a name="gimp-prop-boolean-radio-frame-new"></a>gimp_prop_boolean_radio_frame_new ()</h3>
 
252
<a class="indexterm" name="id2669601"></a><pre class="programlisting">GtkWidget*          gimp_prop_boolean_radio_frame_new   (GObject *config,
 
253
                                                         const gchar *property_name,
 
254
                                                         const gchar *title,
 
255
                                                         const gchar *true_text,
 
256
                                                         const gchar *false_text);</pre>
 
257
<p>
 
258
Creates a pair of radio buttons which function to set and display
 
259
the specified boolean property.</p>
 
260
<p>
 
261
 
 
262
</p>
 
263
<div class="variablelist"><table border="0">
 
264
<col align="left" valign="top">
 
265
<tbody>
 
266
<tr>
 
267
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
268
<td>        Object to which property is attached.
 
269
</td>
 
270
</tr>
 
271
<tr>
 
272
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
273
<td> Name of boolean property controlled by the radio buttons.
 
274
</td>
 
275
</tr>
 
276
<tr>
 
277
<td><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></td>
 
278
<td>         Label for the frame.
 
279
</td>
 
280
</tr>
 
281
<tr>
 
282
<td><span class="term"><em class="parameter"><code>true_text</code></em>&#160;:</span></td>
 
283
<td>     Label for the button corresponding to <code class="literal">TRUE</code>.
 
284
</td>
 
285
</tr>
 
286
<tr>
 
287
<td><span class="term"><em class="parameter"><code>false_text</code></em>&#160;:</span></td>
 
288
<td>    Label for the button corresponding to <code class="literal">FALSE</code>.
 
289
</td>
 
290
</tr>
 
291
<tr>
 
292
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
293
<td> A <a href="GimpFrame.html" title="GimpFrame"><span class="type">GimpFrame</span></a> containing the radio buttons.
 
294
 
 
295
Since GIMP 2.4
 
296
</td>
 
297
</tr>
 
298
</tbody>
 
299
</table></div>
 
300
</div>
 
301
<hr>
 
302
<div class="refsect2" lang="en">
 
303
<a name="id2669777"></a><h3>
 
304
<a name="gimp-prop-check-button-new"></a>gimp_prop_check_button_new ()</h3>
 
305
<a class="indexterm" name="id2669789"></a><pre class="programlisting">GtkWidget*          gimp_prop_check_button_new          (GObject *config,
 
306
                                                         const gchar *property_name,
 
307
                                                         const gchar *label);</pre>
 
308
<p>
 
309
Creates a <span class="type">GtkCheckButton</span> that displays and sets the specified
 
310
boolean property.</p>
 
311
<p>
 
312
 
 
313
</p>
 
314
<div class="variablelist"><table border="0">
 
315
<col align="left" valign="top">
 
316
<tbody>
 
317
<tr>
 
318
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
319
<td>        Object to which property is attached.
 
320
</td>
 
321
</tr>
 
322
<tr>
 
323
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
324
<td> Name of boolean property controlled by checkbutton.
 
325
</td>
 
326
</tr>
 
327
<tr>
 
328
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
329
<td>         Label to give checkbutton (including mnemonic).
 
330
</td>
 
331
</tr>
 
332
<tr>
 
333
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
334
<td> The newly created <span class="type">GtkCheckButton</span> widget.
 
335
 
 
336
Since GIMP 2.4
 
337
</td>
 
338
</tr>
 
339
</tbody>
 
340
</table></div>
 
341
</div>
 
342
<hr>
 
343
<div class="refsect2" lang="en">
 
344
<a name="id2669909"></a><h3>
 
345
<a name="gimp-prop-color-area-new"></a>gimp_prop_color_area_new ()</h3>
 
346
<a class="indexterm" name="id2669920"></a><pre class="programlisting">GtkWidget*          gimp_prop_color_area_new            (GObject *config,
 
347
                                                         const gchar *property_name,
 
348
                                                         gint width,
 
349
                                                         gint height,
 
350
                                                         <a href="GimpColorArea.html#GimpColorAreaType">GimpColorAreaType</a> type);</pre>
 
351
<p>
 
352
Creates a <a href="GimpColorArea.html" title="GimpColorArea"><span class="type">GimpColorArea</span></a> to set and display the value of an RGB
 
353
property.</p>
 
354
<p>
 
355
 
 
356
</p>
 
357
<div class="variablelist"><table border="0">
 
358
<col align="left" valign="top">
 
359
<tbody>
 
360
<tr>
 
361
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
362
<td>        Object to which property is attached.
 
363
</td>
 
364
</tr>
 
365
<tr>
 
366
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
367
<td> Name of RGB property.
 
368
</td>
 
369
</tr>
 
370
<tr>
 
371
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
 
372
<td>         Width of color area.
 
373
</td>
 
374
</tr>
 
375
<tr>
 
376
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
 
377
<td>        Height of color area.
 
378
</td>
 
379
</tr>
 
380
<tr>
 
381
<td><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
 
382
<td>          How transparency is represented.
 
383
</td>
 
384
</tr>
 
385
<tr>
 
386
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
387
<td>  A new <a href="GimpColorArea.html" title="GimpColorArea"><span class="type">GimpColorArea</span></a> widget.
 
388
 
 
389
Since GIMP 2.4
 
390
</td>
 
391
</tr>
 
392
</tbody>
 
393
</table></div>
 
394
</div>
 
395
<hr>
 
396
<div class="refsect2" lang="en">
 
397
<a name="id2670083"></a><h3>
 
398
<a name="gimp-prop-coordinates-connect"></a>gimp_prop_coordinates_connect ()</h3>
 
399
<a class="indexterm" name="id2670096"></a><pre class="programlisting">gboolean            gimp_prop_coordinates_connect       (GObject *config,
 
400
                                                         const gchar *x_property_name,
 
401
                                                         const gchar *y_property_name,
 
402
                                                         const gchar *unit_property_name,
 
403
                                                         GtkWidget *sizeentry,
 
404
                                                         GtkWidget *chainbutton,
 
405
                                                         gdouble xresolution,
 
406
                                                         gdouble yresolution);</pre>
 
407
<p>
 
408
 
 
409
</p>
 
410
<div class="variablelist"><table border="0">
 
411
<col align="left" valign="top">
 
412
<tbody>
 
413
<tr>
 
414
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
415
<td>
 
416
</td>
 
417
</tr>
 
418
<tr>
 
419
<td><span class="term"><em class="parameter"><code>x_property_name</code></em>&#160;:</span></td>
 
420
<td>
 
421
</td>
 
422
</tr>
 
423
<tr>
 
424
<td><span class="term"><em class="parameter"><code>y_property_name</code></em>&#160;:</span></td>
 
425
<td>
 
426
</td>
 
427
</tr>
 
428
<tr>
 
429
<td><span class="term"><em class="parameter"><code>unit_property_name</code></em>&#160;:</span></td>
 
430
<td>
 
431
</td>
 
432
</tr>
 
433
<tr>
 
434
<td><span class="term"><em class="parameter"><code>sizeentry</code></em>&#160;:</span></td>
 
435
<td>
 
436
</td>
 
437
</tr>
 
438
<tr>
 
439
<td><span class="term"><em class="parameter"><code>chainbutton</code></em>&#160;:</span></td>
 
440
<td>
 
441
</td>
 
442
</tr>
 
443
<tr>
 
444
<td><span class="term"><em class="parameter"><code>xresolution</code></em>&#160;:</span></td>
 
445
<td>
 
446
</td>
 
447
</tr>
 
448
<tr>
 
449
<td><span class="term"><em class="parameter"><code>yresolution</code></em>&#160;:</span></td>
 
450
<td>
 
451
</td>
 
452
</tr>
 
453
<tr>
 
454
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
455
<td>
 
456
 
 
457
 
 
458
</td>
 
459
</tr>
 
460
</tbody>
 
461
</table></div>
 
462
</div>
 
463
<hr>
 
464
<div class="refsect2" lang="en">
 
465
<a name="id2670303"></a><h3>
 
466
<a name="gimp-prop-coordinates-new"></a>gimp_prop_coordinates_new ()</h3>
 
467
<a class="indexterm" name="id2670315"></a><pre class="programlisting">GtkWidget*          gimp_prop_coordinates_new           (GObject *config,
 
468
                                                         const gchar *x_property_name,
 
469
                                                         const gchar *y_property_name,
 
470
                                                         const gchar *unit_property_name,
 
471
                                                         const gchar *unit_format,
 
472
                                                         <a href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy,
 
473
                                                         gdouble xresolution,
 
474
                                                         gdouble yresolution,
 
475
                                                         gboolean has_chainbutton);</pre>
 
476
<p>
 
477
Creates a <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> to set and display two double or int
 
478
properties, which will usually represent X and Y coordinates, and
 
479
their associated unit property.</p>
 
480
<p>
 
481
 
 
482
</p>
 
483
<div class="variablelist"><table border="0">
 
484
<col align="left" valign="top">
 
485
<tbody>
 
486
<tr>
 
487
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
488
<td>             Object to which property is attached.
 
489
</td>
 
490
</tr>
 
491
<tr>
 
492
<td><span class="term"><em class="parameter"><code>x_property_name</code></em>&#160;:</span></td>
 
493
<td>    Name of int or double property for X coordinate.
 
494
</td>
 
495
</tr>
 
496
<tr>
 
497
<td><span class="term"><em class="parameter"><code>y_property_name</code></em>&#160;:</span></td>
 
498
<td>    Name of int or double property for Y coordinate.
 
499
</td>
 
500
</tr>
 
501
<tr>
 
502
<td><span class="term"><em class="parameter"><code>unit_property_name</code></em>&#160;:</span></td>
 
503
<td> Name of unit property.
 
504
</td>
 
505
</tr>
 
506
<tr>
 
507
<td><span class="term"><em class="parameter"><code>unit_format</code></em>&#160;:</span></td>
 
508
<td>        A printf-like unit-format string as is used with
 
509
                     <a href="GimpUnitMenu.html#gimp-unit-menu-new"><code class="function">gimp_unit_menu_new()</code></a>.
 
510
</td>
 
511
</tr>
 
512
<tr>
 
513
<td><span class="term"><em class="parameter"><code>update_policy</code></em>&#160;:</span></td>
 
514
<td>      How the automatic pixel &lt;-&gt; real-world-unit
 
515
                     calculations should be done.
 
516
</td>
 
517
</tr>
 
518
<tr>
 
519
<td><span class="term"><em class="parameter"><code>xresolution</code></em>&#160;:</span></td>
 
520
<td>        The resolution (in dpi) for the X coordinate.
 
521
</td>
 
522
</tr>
 
523
<tr>
 
524
<td><span class="term"><em class="parameter"><code>yresolution</code></em>&#160;:</span></td>
 
525
<td>        The resolution (in dpi) for the Y coordinate.
 
526
</td>
 
527
</tr>
 
528
<tr>
 
529
<td><span class="term"><em class="parameter"><code>has_chainbutton</code></em>&#160;:</span></td>
 
530
<td>    Whether to add a chainbutton to the size entry.
 
531
</td>
 
532
</tr>
 
533
<tr>
 
534
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
535
<td>  A new <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> widget.
 
536
 
 
537
Since GIMP 2.4
 
538
</td>
 
539
</tr>
 
540
</tbody>
 
541
</table></div>
 
542
</div>
 
543
<hr>
 
544
<div class="refsect2" lang="en">
 
545
<a name="id2670547"></a><h3>
 
546
<a name="gimp-prop-entry-new"></a>gimp_prop_entry_new ()</h3>
 
547
<a class="indexterm" name="id2670558"></a><pre class="programlisting">GtkWidget*          gimp_prop_entry_new                 (GObject *config,
 
548
                                                         const gchar *property_name,
 
549
                                                         gint max_len);</pre>
 
550
<p>
 
551
Creates a <span class="type">GtkEntry</span> to set and display the value of the specified
 
552
string property.</p>
 
553
<p>
 
554
 
 
555
</p>
 
556
<div class="variablelist"><table border="0">
 
557
<col align="left" valign="top">
 
558
<tbody>
 
559
<tr>
 
560
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
561
<td>        Object to which property is attached.
 
562
</td>
 
563
</tr>
 
564
<tr>
 
565
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
566
<td> Name of string property.
 
567
</td>
 
568
</tr>
 
569
<tr>
 
570
<td><span class="term"><em class="parameter"><code>max_len</code></em>&#160;:</span></td>
 
571
<td>       Maximum allowed length of string.
 
572
</td>
 
573
</tr>
 
574
<tr>
 
575
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
576
<td>  A new <span class="type">GtkEntry</span> widget.
 
577
 
 
578
Since GIMP 2.4
 
579
</td>
 
580
</tr>
 
581
</tbody>
 
582
</table></div>
 
583
</div>
 
584
<hr>
 
585
<div class="refsect2" lang="en">
 
586
<a name="id2670665"></a><h3>
 
587
<a name="gimp-prop-enum-check-button-new"></a>gimp_prop_enum_check_button_new ()</h3>
 
588
<a class="indexterm" name="id2670678"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_check_button_new     (GObject *config,
 
589
                                                         const gchar *property_name,
 
590
                                                         const gchar *label,
 
591
                                                         gint false_value,
 
592
                                                         gint true_value);</pre>
 
593
<p>
 
594
Creates a <span class="type">GtkCheckButton</span> that displays and sets the specified
 
595
property of type Enum.  Note that this widget only allows two values
 
596
for the enum, one corresponding to the "checked" state and the
 
597
other to the "unchecked" state.</p>
 
598
<p>
 
599
 
 
600
</p>
 
601
<div class="variablelist"><table border="0">
 
602
<col align="left" valign="top">
 
603
<tbody>
 
604
<tr>
 
605
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
606
<td>        Object to which property is attached.
 
607
</td>
 
608
</tr>
 
609
<tr>
 
610
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
611
<td> Name of enum property controlled by checkbutton.
 
612
</td>
 
613
</tr>
 
614
<tr>
 
615
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
616
<td>         Label to give checkbutton (including mnemonic).
 
617
</td>
 
618
</tr>
 
619
<tr>
 
620
<td><span class="term"><em class="parameter"><code>false_value</code></em>&#160;:</span></td>
 
621
<td>   Enum value corresponding to unchecked state.
 
622
</td>
 
623
</tr>
 
624
<tr>
 
625
<td><span class="term"><em class="parameter"><code>true_value</code></em>&#160;:</span></td>
 
626
<td>    Enum value corresonding to checked state.
 
627
</td>
 
628
</tr>
 
629
<tr>
 
630
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
631
<td> The newly created <span class="type">GtkCheckButton</span> widget.
 
632
 
 
633
Since GIMP 2.4
 
634
</td>
 
635
</tr>
 
636
</tbody>
 
637
</table></div>
 
638
</div>
 
639
<hr>
 
640
<div class="refsect2" lang="en">
 
641
<a name="id2670829"></a><h3>
 
642
<a name="gimp-prop-enum-combo-box-new"></a>gimp_prop_enum_combo_box_new ()</h3>
 
643
<a class="indexterm" name="id2670842"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_combo_box_new        (GObject *config,
 
644
                                                         const gchar *property_name,
 
645
                                                         gint minimum,
 
646
                                                         gint maximum);</pre>
 
647
<p>
 
648
Creates a <a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a> widget to display and set the specified
 
649
enum property.  The <em class="parameter"><code>mimimum_value</code></em> and <em class="parameter"><code>maximum_value</code></em> give the
 
650
possibility of restricting the allowed range to a subset of the
 
651
enum.  If the two values are equal (e.g., 0, 0), then the full
 
652
range of the Enum is used.</p>
 
653
<p>
 
654
 
 
655
</p>
 
656
<div class="variablelist"><table border="0">
 
657
<col align="left" valign="top">
 
658
<tbody>
 
659
<tr>
 
660
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
661
<td>        Object to which property is attached.
 
662
</td>
 
663
</tr>
 
664
<tr>
 
665
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
666
<td> Name of enum property controlled by combo box.
 
667
</td>
 
668
</tr>
 
669
<tr>
 
670
<td><span class="term"><em class="parameter"><code>minimum</code></em>&#160;:</span></td>
 
671
<td>       Smallest allowed value of enum.
 
672
</td>
 
673
</tr>
 
674
<tr>
 
675
<td><span class="term"><em class="parameter"><code>maximum</code></em>&#160;:</span></td>
 
676
<td>       Largest allowed value of enum.
 
677
</td>
 
678
</tr>
 
679
<tr>
 
680
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
681
<td> The newly created <a href="GimpEnumComboBox.html" title="GimpEnumComboBox"><span class="type">GimpEnumComboBox</span></a> widget, optionally
 
682
              wrapped into a <span class="type">GtkEventBox</span>.
 
683
 
 
684
Since GIMP 2.4
 
685
</td>
 
686
</tr>
 
687
</tbody>
 
688
</table></div>
 
689
</div>
 
690
<hr>
 
691
<div class="refsect2" lang="en">
 
692
<a name="id2670991"></a><h3>
 
693
<a name="gimp-prop-enum-label-new"></a>gimp_prop_enum_label_new ()</h3>
 
694
<a class="indexterm" name="id2671001"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_label_new            (GObject *config,
 
695
                                                         const gchar *property_name);</pre>
 
696
<p>
 
697
</p>
 
698
<p>
 
699
 
 
700
</p>
 
701
<div class="variablelist"><table border="0">
 
702
<col align="left" valign="top">
 
703
<tbody>
 
704
<tr>
 
705
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
706
<td>         Object to which property is attached.
 
707
</td>
 
708
</tr>
 
709
<tr>
 
710
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
711
<td>  Name of enum property to be displayed.
 
712
</td>
 
713
</tr>
 
714
<tr>
 
715
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
716
<td> The newly created <a href="GimpEnumLabel.html" title="GimpEnumLabel"><span class="type">GimpEnumLabel</span></a> widget.
 
717
 
 
718
Since GIMP 2.4
 
719
</td>
 
720
</tr>
 
721
</tbody>
 
722
</table></div>
 
723
</div>
 
724
<hr>
 
725
<div class="refsect2" lang="en">
 
726
<a name="id2671082"></a><h3>
 
727
<a name="gimp-prop-enum-radio-box-new"></a>gimp_prop_enum_radio_box_new ()</h3>
 
728
<a class="indexterm" name="id2671094"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_radio_box_new        (GObject *config,
 
729
                                                         const gchar *property_name,
 
730
                                                         gint minimum,
 
731
                                                         gint maximum);</pre>
 
732
<p>
 
733
Creates a group of radio buttons which function to set and display
 
734
the specified enum property.  The <em class="parameter"><code>minimum</code></em> and <em class="parameter"><code>maximum</code></em> arguments
 
735
allow only a subset of the enum to be used.  If the two arguments
 
736
are equal (e.g., 0, 0), then the full range of the enum will be used.
 
737
If you want to assign a label to the group of radio buttons, use
 
738
<a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-enum-radio-frame-new"><code class="function">gimp_prop_enum_radio_frame_new()</code></a> instead of this function.</p>
 
739
<p>
 
740
 
 
741
</p>
 
742
<div class="variablelist"><table border="0">
 
743
<col align="left" valign="top">
 
744
<tbody>
 
745
<tr>
 
746
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
747
<td>        Object to which property is attached.
 
748
</td>
 
749
</tr>
 
750
<tr>
 
751
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
752
<td> Name of enum property controlled by the radio buttons.
 
753
</td>
 
754
</tr>
 
755
<tr>
 
756
<td><span class="term"><em class="parameter"><code>minimum</code></em>&#160;:</span></td>
 
757
<td>       Smallest value of enum to be included.
 
758
</td>
 
759
</tr>
 
760
<tr>
 
761
<td><span class="term"><em class="parameter"><code>maximum</code></em>&#160;:</span></td>
 
762
<td>       Largest value of enum to be included.
 
763
</td>
 
764
</tr>
 
765
<tr>
 
766
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
767
<td> A <span class="type">GtkVBox</span> containing the radio buttons.
 
768
 
 
769
Since GIMP 2.4
 
770
</td>
 
771
</tr>
 
772
</tbody>
 
773
</table></div>
 
774
</div>
 
775
<hr>
 
776
<div class="refsect2" lang="en">
 
777
<a name="id2671243"></a><h3>
 
778
<a name="gimp-prop-enum-radio-frame-new"></a>gimp_prop_enum_radio_frame_new ()</h3>
 
779
<a class="indexterm" name="id2671255"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_radio_frame_new      (GObject *config,
 
780
                                                         const gchar *property_name,
 
781
                                                         const gchar *title,
 
782
                                                         gint minimum,
 
783
                                                         gint maximum);</pre>
 
784
<p>
 
785
Creates a group of radio buttons which function to set and display
 
786
the specified enum property.  The <em class="parameter"><code>minimum</code></em> and <em class="parameter"><code>maximum</code></em> arguments
 
787
allow only a subset of the enum to be used.  If the two arguments
 
788
are equal (e.g., 0, 0), then the full range of the enum will be used.</p>
 
789
<p>
 
790
 
 
791
</p>
 
792
<div class="variablelist"><table border="0">
 
793
<col align="left" valign="top">
 
794
<tbody>
 
795
<tr>
 
796
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
797
<td>        Object to which property is attached.
 
798
</td>
 
799
</tr>
 
800
<tr>
 
801
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
802
<td> Name of enum property controlled by the radio buttons.
 
803
</td>
 
804
</tr>
 
805
<tr>
 
806
<td><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></td>
 
807
<td>         Label for the frame holding the buttons
 
808
</td>
 
809
</tr>
 
810
<tr>
 
811
<td><span class="term"><em class="parameter"><code>minimum</code></em>&#160;:</span></td>
 
812
<td>       Smallest value of enum to be included.
 
813
</td>
 
814
</tr>
 
815
<tr>
 
816
<td><span class="term"><em class="parameter"><code>maximum</code></em>&#160;:</span></td>
 
817
<td>       Largest value of enum to be included.
 
818
</td>
 
819
</tr>
 
820
<tr>
 
821
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
822
<td> A <a href="GimpFrame.html" title="GimpFrame"><span class="type">GimpFrame</span></a> containing the radio buttons.
 
823
 
 
824
Since GIMP 2.4
 
825
</td>
 
826
</tr>
 
827
</tbody>
 
828
</table></div>
 
829
</div>
 
830
<hr>
 
831
<div class="refsect2" lang="en">
 
832
<a name="id2671413"></a><h3>
 
833
<a name="gimp-prop-enum-stock-box-new"></a>gimp_prop_enum_stock_box_new ()</h3>
 
834
<a class="indexterm" name="id2671425"></a><pre class="programlisting">GtkWidget*          gimp_prop_enum_stock_box_new        (GObject *config,
 
835
                                                         const gchar *property_name,
 
836
                                                         const gchar *stock_prefix,
 
837
                                                         gint minimum,
 
838
                                                         gint maximum);</pre>
 
839
<p>
 
840
Creates a horizontal box of radio buttons with stock icons, which
 
841
function to set and display the value of the specified Enum
 
842
property.  The stock_id for each icon is created by appending the
 
843
enum_value's nick to the given <em class="parameter"><code>stock_prefix</code></em>.  See
 
844
<a href="libgimpwidgets-GimpEnumWidgets.html#gimp-enum-stock-box-new"><code class="function">gimp_enum_stock_box_new()</code></a> for more information.</p>
 
845
<p>
 
846
 
 
847
</p>
 
848
<div class="variablelist"><table border="0">
 
849
<col align="left" valign="top">
 
850
<tbody>
 
851
<tr>
 
852
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
853
<td>        Object to which property is attached.
 
854
</td>
 
855
</tr>
 
856
<tr>
 
857
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
858
<td> Name of enum property controlled by the radio buttons.
 
859
</td>
 
860
</tr>
 
861
<tr>
 
862
<td><span class="term"><em class="parameter"><code>stock_prefix</code></em>&#160;:</span></td>
 
863
<td>  The prefix of the group of stock ids to use.
 
864
</td>
 
865
</tr>
 
866
<tr>
 
867
<td><span class="term"><em class="parameter"><code>minimum</code></em>&#160;:</span></td>
 
868
<td>       Smallest value of enum to be included.
 
869
</td>
 
870
</tr>
 
871
<tr>
 
872
<td><span class="term"><em class="parameter"><code>maximum</code></em>&#160;:</span></td>
 
873
<td>       Largest value of enum to be included.
 
874
</td>
 
875
</tr>
 
876
<tr>
 
877
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
878
<td> A <span class="type">GimpEnumStockBox</span> containing the radio buttons.
 
879
 
 
880
Since GIMP 2.4
 
881
</td>
 
882
</tr>
 
883
</tbody>
 
884
</table></div>
 
885
</div>
 
886
<hr>
 
887
<div class="refsect2" lang="en">
 
888
<a name="id2671585"></a><h3>
 
889
<a name="gimp-prop-expander-new"></a>gimp_prop_expander_new ()</h3>
 
890
<a class="indexterm" name="id2671596"></a><pre class="programlisting">GtkWidget*          gimp_prop_expander_new              (GObject *config,
 
891
                                                         const gchar *property_name,
 
892
                                                         const gchar *label);</pre>
 
893
<p>
 
894
Creates a <span class="type">GtkExpander</span> controlled by the specified boolean property.
 
895
A value of <code class="literal">TRUE</code> for the property corresponds to the expanded state
 
896
for the widget.</p>
 
897
<p>
 
898
 
 
899
</p>
 
900
<div class="variablelist"><table border="0">
 
901
<col align="left" valign="top">
 
902
<tbody>
 
903
<tr>
 
904
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
905
<td>        Object to which property is attached.
 
906
</td>
 
907
</tr>
 
908
<tr>
 
909
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
910
<td> Name of boolean property.
 
911
</td>
 
912
</tr>
 
913
<tr>
 
914
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
915
<td>         Label for expander.
 
916
</td>
 
917
</tr>
 
918
<tr>
 
919
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
920
<td>  A new <span class="type">GtkExpander</span> widget.
 
921
 
 
922
Since GIMP 2.4
 
923
</td>
 
924
</tr>
 
925
</tbody>
 
926
</table></div>
 
927
</div>
 
928
<hr>
 
929
<div class="refsect2" lang="en">
 
930
<a name="id2671712"></a><h3>
 
931
<a name="gimp-prop-file-chooser-button-new"></a>gimp_prop_file_chooser_button_new ()</h3>
 
932
<a class="indexterm" name="id2671726"></a><pre class="programlisting">GtkWidget*          gimp_prop_file_chooser_button_new   (GObject *config,
 
933
                                                         const gchar *property_name,
 
934
                                                         const gchar *title,
 
935
                                                         GtkFileChooserAction action);</pre>
 
936
<p>
 
937
Creates a <span class="type">GtkFileChooserButton</span> to edit the specified path property.
 
938
</p>
 
939
<p>
 
940
Note that <span class="type">GtkFileChooserButton</span> implements the <span class="type">GtkFileChooser</span>
 
941
interface; you can use the <span class="type">GtkFileChooser</span> API with it.</p>
 
942
<p>
 
943
 
 
944
</p>
 
945
<div class="variablelist"><table border="0">
 
946
<col align="left" valign="top">
 
947
<tbody>
 
948
<tr>
 
949
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
950
<td>        object to which property is attached.
 
951
</td>
 
952
</tr>
 
953
<tr>
 
954
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
955
<td> name of path property.
 
956
</td>
 
957
</tr>
 
958
<tr>
 
959
<td><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></td>
 
960
<td>         the title of the browse dialog.
 
961
</td>
 
962
</tr>
 
963
<tr>
 
964
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
965
<td>        the open mode for the widget.
 
966
</td>
 
967
</tr>
 
968
<tr>
 
969
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
970
<td>  A new <span class="type">GtkFileChooserButton</span>.
 
971
 
 
972
Since GIMP 2.4
 
973
</td>
 
974
</tr>
 
975
</tbody>
 
976
</table></div>
 
977
</div>
 
978
<hr>
 
979
<div class="refsect2" lang="en">
 
980
<a name="id2671875"></a><h3>
 
981
<a name="gimp-prop-file-chooser-button-new-with-dialog"></a>gimp_prop_file_chooser_button_new_with_dialog ()</h3>
 
982
<a class="indexterm" name="id2671888"></a><pre class="programlisting">GtkWidget*          gimp_prop_file_chooser_button_new_with_dialog
 
983
                                                        (GObject *config,
 
984
                                                         const gchar *property_name,
 
985
                                                         GtkWidget *dialog);</pre>
 
986
<p>
 
987
Creates a <span class="type">GtkFileChooserButton</span> to edit the specified path property.
 
988
</p>
 
989
<p>
 
990
The button uses <em class="parameter"><code>dialog</code></em> as it's file-picking window. Note that <em class="parameter"><code>dialog</code></em>
 
991
must be a <span class="type">GtkFileChooserDialog</span> (or subclass) and must not have
 
992
<code class="literal">GTK_DIALOG_DESTROY_WITH_PARENT</code> set.
 
993
</p>
 
994
<p>
 
995
Note that <span class="type">GtkFileChooserButton</span> implements the <span class="type">GtkFileChooser</span>
 
996
interface; you can use the <span class="type">GtkFileChooser</span> API with it.</p>
 
997
<p>
 
998
 
 
999
</p>
 
1000
<div class="variablelist"><table border="0">
 
1001
<col align="left" valign="top">
 
1002
<tbody>
 
1003
<tr>
 
1004
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1005
<td>        object to which property is attached.
 
1006
</td>
 
1007
</tr>
 
1008
<tr>
 
1009
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1010
<td> name of path property.
 
1011
</td>
 
1012
</tr>
 
1013
<tr>
 
1014
<td><span class="term"><em class="parameter"><code>dialog</code></em>&#160;:</span></td>
 
1015
<td>        the <span class="type">GtkFileChooserDialog</span> widget to use.
 
1016
</td>
 
1017
</tr>
 
1018
<tr>
 
1019
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1020
<td>  A new <span class="type">GtkFileChooserButton</span>.
 
1021
 
 
1022
Since GIMP 2.4
 
1023
</td>
 
1024
</tr>
 
1025
</tbody>
 
1026
</table></div>
 
1027
</div>
 
1028
<hr>
 
1029
<div class="refsect2" lang="en">
 
1030
<a name="id2672056"></a><h3>
 
1031
<a name="gimp-prop-hscale-new"></a>gimp_prop_hscale_new ()</h3>
 
1032
<a class="indexterm" name="id2672067"></a><pre class="programlisting">GtkWidget*          gimp_prop_hscale_new                (GObject *config,
 
1033
                                                         const gchar *property_name,
 
1034
                                                         gdouble step_increment,
 
1035
                                                         gdouble page_increment,
 
1036
                                                         gint digits);</pre>
 
1037
<p>
 
1038
Creates a horizontal scale to control the value of the specified
 
1039
integer or double property.</p>
 
1040
<p>
 
1041
 
 
1042
</p>
 
1043
<div class="variablelist"><table border="0">
 
1044
<col align="left" valign="top">
 
1045
<tbody>
 
1046
<tr>
 
1047
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1048
<td>         Object to which property is attached.
 
1049
</td>
 
1050
</tr>
 
1051
<tr>
 
1052
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1053
<td>  Name of integer or double property controlled by the scale.
 
1054
</td>
 
1055
</tr>
 
1056
<tr>
 
1057
<td><span class="term"><em class="parameter"><code>step_increment</code></em>&#160;:</span></td>
 
1058
<td> Step size.
 
1059
</td>
 
1060
</tr>
 
1061
<tr>
 
1062
<td><span class="term"><em class="parameter"><code>page_increment</code></em>&#160;:</span></td>
 
1063
<td> Page size.
 
1064
</td>
 
1065
</tr>
 
1066
<tr>
 
1067
<td><span class="term"><em class="parameter"><code>digits</code></em>&#160;:</span></td>
 
1068
<td>         Number of digits after decimal point to display.
 
1069
</td>
 
1070
</tr>
 
1071
<tr>
 
1072
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1073
<td> A new <span class="type">GtkScale</span>.
 
1074
 
 
1075
Since GIMP 2.4
 
1076
</td>
 
1077
</tr>
 
1078
</tbody>
 
1079
</table></div>
 
1080
</div>
 
1081
<hr>
 
1082
<div class="refsect2" lang="en">
 
1083
<a name="id2672208"></a><h3>
 
1084
<a name="gimp-prop-int-combo-box-new"></a>gimp_prop_int_combo_box_new ()</h3>
 
1085
<a class="indexterm" name="id2672219"></a><pre class="programlisting">GtkWidget*          gimp_prop_int_combo_box_new         (GObject *config,
 
1086
                                                         const gchar *property_name,
 
1087
                                                         <a href="GimpIntStore.html" title="GimpIntStore">GimpIntStore</a> *store);</pre>
 
1088
<p>
 
1089
Creates a <a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a> widget to display and set the specified
 
1090
property.  The contents of the widget are determined by <em class="parameter"><code>store</code></em>,
 
1091
which should be created using <a href="GimpIntStore.html#gimp-int-store-new"><code class="function">gimp_int_store_new()</code></a>.</p>
 
1092
<p>
 
1093
 
 
1094
</p>
 
1095
<div class="variablelist"><table border="0">
 
1096
<col align="left" valign="top">
 
1097
<tbody>
 
1098
<tr>
 
1099
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1100
<td>        Object to which property is attached.
 
1101
</td>
 
1102
</tr>
 
1103
<tr>
 
1104
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1105
<td> Name of int property controlled by combo box.
 
1106
</td>
 
1107
</tr>
 
1108
<tr>
 
1109
<td><span class="term"><em class="parameter"><code>store</code></em>&#160;:</span></td>
 
1110
<td>         <a href="GimpIntStore.html" title="GimpIntStore"><span class="type">GimpIntStore</span></a> holding list of labels, values, etc.
 
1111
</td>
 
1112
</tr>
 
1113
<tr>
 
1114
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1115
<td> The newly created <a href="GimpIntComboBox.html" title="GimpIntComboBox"><span class="type">GimpIntComboBox</span></a> widget, optionally
 
1116
              wrapped into a <span class="type">GtkEventBox</span>.
 
1117
 
 
1118
Since GIMP 2.4
 
1119
</td>
 
1120
</tr>
 
1121
</tbody>
 
1122
</table></div>
 
1123
</div>
 
1124
<hr>
 
1125
<div class="refsect2" lang="en">
 
1126
<a name="id2672356"></a><h3>
 
1127
<a name="gimp-prop-label-new"></a>gimp_prop_label_new ()</h3>
 
1128
<a class="indexterm" name="id2672366"></a><pre class="programlisting">GtkWidget*          gimp_prop_label_new                 (GObject *config,
 
1129
                                                         const gchar *property_name);</pre>
 
1130
<p>
 
1131
Creates a <span class="type">GtkLabel</span> to display the value of the specified property.
 
1132
The property should be a string property or at least transformable
 
1133
to a string.  If the user should be able to edit the string, use
 
1134
<a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-entry-new"><code class="function">gimp_prop_entry_new()</code></a> instead.</p>
 
1135
<p>
 
1136
 
 
1137
</p>
 
1138
<div class="variablelist"><table border="0">
 
1139
<col align="left" valign="top">
 
1140
<tbody>
 
1141
<tr>
 
1142
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1143
<td>        Object to which property is attached.
 
1144
</td>
 
1145
</tr>
 
1146
<tr>
 
1147
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1148
<td> Name of string property.
 
1149
</td>
 
1150
</tr>
 
1151
<tr>
 
1152
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1153
<td>  A new <span class="type">GtkLabel</span> widget.
 
1154
 
 
1155
Since GIMP 2.4
 
1156
</td>
 
1157
</tr>
 
1158
</tbody>
 
1159
</table></div>
 
1160
</div>
 
1161
<hr>
 
1162
<div class="refsect2" lang="en">
 
1163
<a name="id2672464"></a><h3>
 
1164
<a name="gimp-prop-memsize-entry-new"></a>gimp_prop_memsize_entry_new ()</h3>
 
1165
<a class="indexterm" name="id2672475"></a><pre class="programlisting">GtkWidget*          gimp_prop_memsize_entry_new         (GObject *config,
 
1166
                                                         const gchar *property_name);</pre>
 
1167
<p>
 
1168
Creates a <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a> (spin button and option menu) to set
 
1169
and display the value of the specified memsize property.  See
 
1170
<a href="GimpMemsizeEntry.html#gimp-memsize-entry-new"><code class="function">gimp_memsize_entry_new()</code></a> for more information.</p>
 
1171
<p>
 
1172
 
 
1173
</p>
 
1174
<div class="variablelist"><table border="0">
 
1175
<col align="left" valign="top">
 
1176
<tbody>
 
1177
<tr>
 
1178
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1179
<td>        Object to which property is attached.
 
1180
</td>
 
1181
</tr>
 
1182
<tr>
 
1183
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1184
<td> Name of memsize property.
 
1185
</td>
 
1186
</tr>
 
1187
<tr>
 
1188
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1189
<td>  A new <a href="GimpMemsizeEntry.html" title="GimpMemsizeEntry"><span class="type">GimpMemsizeEntry</span></a>.
 
1190
 
 
1191
Since GIMP 2.4
 
1192
</td>
 
1193
</tr>
 
1194
</tbody>
 
1195
</table></div>
 
1196
</div>
 
1197
<hr>
 
1198
<div class="refsect2" lang="en">
 
1199
<a name="id2672571"></a><h3>
 
1200
<a name="gimp-prop-opacity-entry-new"></a>gimp_prop_opacity_entry_new ()</h3>
 
1201
<a class="indexterm" name="id2672582"></a><pre class="programlisting">GtkObject*          gimp_prop_opacity_entry_new         (GObject *config,
 
1202
                                                         const gchar *property_name,
 
1203
                                                         GtkTable *table,
 
1204
                                                         gint column,
 
1205
                                                         gint row,
 
1206
                                                         const gchar *label);</pre>
 
1207
<p>
 
1208
Creates a <span class="type">GimpScaleEntry</span> (slider and spin button) to set and
 
1209
display the value of the specified double property, which should
 
1210
represent an "opacity" variable with range 0 to 100.  See
 
1211
<a href="libgimpwidgets-GimpWidgets.html#gimp-scale-entry-new"><code class="function">gimp_scale_entry_new()</code></a> for more information.</p>
 
1212
<p>
 
1213
 
 
1214
</p>
 
1215
<div class="variablelist"><table border="0">
 
1216
<col align="left" valign="top">
 
1217
<tbody>
 
1218
<tr>
 
1219
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1220
<td>        Object to which property is attached.
 
1221
</td>
 
1222
</tr>
 
1223
<tr>
 
1224
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1225
<td> Name of double property controlled by the spin button.
 
1226
</td>
 
1227
</tr>
 
1228
<tr>
 
1229
<td><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></td>
 
1230
<td>         The <span class="type">GtkTable</span> the widgets will be attached to.
 
1231
</td>
 
1232
</tr>
 
1233
<tr>
 
1234
<td><span class="term"><em class="parameter"><code>column</code></em>&#160;:</span></td>
 
1235
<td>        The column to start with.
 
1236
</td>
 
1237
</tr>
 
1238
<tr>
 
1239
<td><span class="term"><em class="parameter"><code>row</code></em>&#160;:</span></td>
 
1240
<td>           The row to attach the widgets.
 
1241
</td>
 
1242
</tr>
 
1243
<tr>
 
1244
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
1245
<td>         The text for the <span class="type">GtkLabel</span> which will appear left of the
 
1246
                <span class="type">GtkHScale</span>.
 
1247
</td>
 
1248
</tr>
 
1249
<tr>
 
1250
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1251
<td>  The <span class="type">GtkSpinButton</span>'s <span class="type">GtkAdjustment</span>.
 
1252
 
 
1253
Since GIMP 2.4
 
1254
</td>
 
1255
</tr>
 
1256
</tbody>
 
1257
</table></div>
 
1258
</div>
 
1259
<hr>
 
1260
<div class="refsect2" lang="en">
 
1261
<a name="id2672785"></a><h3>
 
1262
<a name="gimp-prop-path-editor-new"></a>gimp_prop_path_editor_new ()</h3>
 
1263
<a class="indexterm" name="id2672796"></a><pre class="programlisting">GtkWidget*          gimp_prop_path_editor_new           (GObject *config,
 
1264
                                                         const gchar *path_property_name,
 
1265
                                                         const gchar *writable_property_name,
 
1266
                                                         const gchar *filesel_title);</pre>
 
1267
<p>
 
1268
 
 
1269
</p>
 
1270
<div class="variablelist"><table border="0">
 
1271
<col align="left" valign="top">
 
1272
<tbody>
 
1273
<tr>
 
1274
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1275
<td>
 
1276
</td>
 
1277
</tr>
 
1278
<tr>
 
1279
<td><span class="term"><em class="parameter"><code>path_property_name</code></em>&#160;:</span></td>
 
1280
<td>
 
1281
</td>
 
1282
</tr>
 
1283
<tr>
 
1284
<td><span class="term"><em class="parameter"><code>writable_property_name</code></em>&#160;:</span></td>
 
1285
<td>
 
1286
</td>
 
1287
</tr>
 
1288
<tr>
 
1289
<td><span class="term"><em class="parameter"><code>filesel_title</code></em>&#160;:</span></td>
 
1290
<td>
 
1291
</td>
 
1292
</tr>
 
1293
<tr>
 
1294
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1295
<td>
 
1296
 
 
1297
 
 
1298
</td>
 
1299
</tr>
 
1300
</tbody>
 
1301
</table></div>
 
1302
</div>
 
1303
<hr>
 
1304
<div class="refsect2" lang="en">
 
1305
<a name="id2672904"></a><h3>
 
1306
<a name="gimp-prop-scale-entry-new"></a>gimp_prop_scale_entry_new ()</h3>
 
1307
<a class="indexterm" name="id2672916"></a><pre class="programlisting">GtkObject*          gimp_prop_scale_entry_new           (GObject *config,
 
1308
                                                         const gchar *property_name,
 
1309
                                                         GtkTable *table,
 
1310
                                                         gint column,
 
1311
                                                         gint row,
 
1312
                                                         const gchar *label,
 
1313
                                                         gdouble step_increment,
 
1314
                                                         gdouble page_increment,
 
1315
                                                         gint digits,
 
1316
                                                         gboolean limit_scale,
 
1317
                                                         gdouble lower_limit,
 
1318
                                                         gdouble upper_limit);</pre>
 
1319
<p>
 
1320
Creates a <span class="type">GimpScaleEntry</span> (slider and spin button) to set and
 
1321
display the value of the specified double property.  See
 
1322
<a href="libgimpwidgets-GimpWidgets.html#gimp-scale-entry-new"><code class="function">gimp_scale_entry_new()</code></a> for more information.</p>
 
1323
<p>
 
1324
 
 
1325
</p>
 
1326
<div class="variablelist"><table border="0">
 
1327
<col align="left" valign="top">
 
1328
<tbody>
 
1329
<tr>
 
1330
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1331
<td>         Object to which property is attached.
 
1332
</td>
 
1333
</tr>
 
1334
<tr>
 
1335
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1336
<td>  Name of double property controlled by the spin button.
 
1337
</td>
 
1338
</tr>
 
1339
<tr>
 
1340
<td><span class="term"><em class="parameter"><code>table</code></em>&#160;:</span></td>
 
1341
<td>          The <span class="type">GtkTable</span> the widgets will be attached to.
 
1342
</td>
 
1343
</tr>
 
1344
<tr>
 
1345
<td><span class="term"><em class="parameter"><code>column</code></em>&#160;:</span></td>
 
1346
<td>         The column to start with.
 
1347
</td>
 
1348
</tr>
 
1349
<tr>
 
1350
<td><span class="term"><em class="parameter"><code>row</code></em>&#160;:</span></td>
 
1351
<td>            The row to attach the widgets.
 
1352
</td>
 
1353
</tr>
 
1354
<tr>
 
1355
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
1356
<td>          The text for the <span class="type">GtkLabel</span> which will appear left of
 
1357
                 the <span class="type">GtkHScale</span>.
 
1358
</td>
 
1359
</tr>
 
1360
<tr>
 
1361
<td><span class="term"><em class="parameter"><code>step_increment</code></em>&#160;:</span></td>
 
1362
<td> Step size.
 
1363
</td>
 
1364
</tr>
 
1365
<tr>
 
1366
<td><span class="term"><em class="parameter"><code>page_increment</code></em>&#160;:</span></td>
 
1367
<td> Page size.
 
1368
</td>
 
1369
</tr>
 
1370
<tr>
 
1371
<td><span class="term"><em class="parameter"><code>digits</code></em>&#160;:</span></td>
 
1372
<td>         Number of digits after decimal point to display.
 
1373
</td>
 
1374
</tr>
 
1375
<tr>
 
1376
<td><span class="term"><em class="parameter"><code>limit_scale</code></em>&#160;:</span></td>
 
1377
<td>    <code class="literal">TRUE</code> if the range of possible values of the
 
1378
                 GtkSpinButton should be the same as of the GtkHScale.
 
1379
</td>
 
1380
</tr>
 
1381
<tr>
 
1382
<td><span class="term"><em class="parameter"><code>lower_limit</code></em>&#160;:</span></td>
 
1383
<td>    The spinbutton's lower boundary if <em class="parameter"><code>limit_scale</code></em> is <code class="literal">FALSE</code>.
 
1384
</td>
 
1385
</tr>
 
1386
<tr>
 
1387
<td><span class="term"><em class="parameter"><code>upper_limit</code></em>&#160;:</span></td>
 
1388
<td>    The spinbutton's upper boundary if <em class="parameter"><code>limit_scale</code></em> is <code class="literal">FALSE</code>.
 
1389
</td>
 
1390
</tr>
 
1391
<tr>
 
1392
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1393
<td> The <span class="type">GtkSpinButton</span>'s <span class="type">GtkAdjustment</span>.
 
1394
 
 
1395
Since GIMP 2.4
 
1396
</td>
 
1397
</tr>
 
1398
</tbody>
 
1399
</table></div>
 
1400
</div>
 
1401
<hr>
 
1402
<div class="refsect2" lang="en">
 
1403
<a name="id2673305"></a><h3>
 
1404
<a name="gimp-prop-size-entry-new"></a>gimp_prop_size_entry_new ()</h3>
 
1405
<a class="indexterm" name="id2673319"></a><pre class="programlisting">GtkWidget*          gimp_prop_size_entry_new            (GObject *config,
 
1406
                                                         const gchar *property_name,
 
1407
                                                         const gchar *unit_property_name,
 
1408
                                                         const gchar *unit_format,
 
1409
                                                         <a href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy,
 
1410
                                                         gdouble resolution);</pre>
 
1411
<p>
 
1412
Creates a <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> to set and display the specified double or
 
1413
int property, and its associated unit property.  Note that this
 
1414
function is only suitable for creating a size entry holding a
 
1415
single value.  Use <a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-coordinates-new"><code class="function">gimp_prop_coordinates_new()</code></a> to create a size
 
1416
entry holding two values.</p>
 
1417
<p>
 
1418
 
 
1419
</p>
 
1420
<div class="variablelist"><table border="0">
 
1421
<col align="left" valign="top">
 
1422
<tbody>
 
1423
<tr>
 
1424
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1425
<td>             Object to which property is attached.
 
1426
</td>
 
1427
</tr>
 
1428
<tr>
 
1429
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1430
<td>      Name of int or double property.
 
1431
</td>
 
1432
</tr>
 
1433
<tr>
 
1434
<td><span class="term"><em class="parameter"><code>unit_property_name</code></em>&#160;:</span></td>
 
1435
<td> Name of unit property.
 
1436
</td>
 
1437
</tr>
 
1438
<tr>
 
1439
<td><span class="term"><em class="parameter"><code>unit_format</code></em>&#160;:</span></td>
 
1440
<td>        A printf-like unit-format string as is used with
 
1441
                     <a href="GimpUnitMenu.html#gimp-unit-menu-new"><code class="function">gimp_unit_menu_new()</code></a>.
 
1442
</td>
 
1443
</tr>
 
1444
<tr>
 
1445
<td><span class="term"><em class="parameter"><code>update_policy</code></em>&#160;:</span></td>
 
1446
<td>      How the automatic pixel &lt;-&gt; real-world-unit
 
1447
                     calculations should be done.
 
1448
</td>
 
1449
</tr>
 
1450
<tr>
 
1451
<td><span class="term"><em class="parameter"><code>resolution</code></em>&#160;:</span></td>
 
1452
<td>         The resolution (in dpi) for the field.
 
1453
</td>
 
1454
</tr>
 
1455
<tr>
 
1456
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1457
<td>  A new <a href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> widget.
 
1458
 
 
1459
Since GIMP 2.4
 
1460
</td>
 
1461
</tr>
 
1462
</tbody>
 
1463
</table></div>
 
1464
</div>
 
1465
<hr>
 
1466
<div class="refsect2" lang="en">
 
1467
<a name="id2673531"></a><h3>
 
1468
<a name="gimp-prop-spin-button-new"></a>gimp_prop_spin_button_new ()</h3>
 
1469
<a class="indexterm" name="id2673545"></a><pre class="programlisting">GtkWidget*          gimp_prop_spin_button_new           (GObject *config,
 
1470
                                                         const gchar *property_name,
 
1471
                                                         gdouble step_increment,
 
1472
                                                         gdouble page_increment,
 
1473
                                                         gint digits);</pre>
 
1474
<p>
 
1475
Creates a spin button to set and display the value of the
 
1476
specified double property.</p>
 
1477
<p>
 
1478
 
 
1479
</p>
 
1480
<div class="variablelist"><table border="0">
 
1481
<col align="left" valign="top">
 
1482
<tbody>
 
1483
<tr>
 
1484
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1485
<td>            Object to which property is attached.
 
1486
</td>
 
1487
</tr>
 
1488
<tr>
 
1489
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1490
<td>     Name of double property controlled by the spin button.
 
1491
</td>
 
1492
</tr>
 
1493
<tr>
 
1494
<td><span class="term"><em class="parameter"><code>step_increment</code></em>&#160;:</span></td>
 
1495
<td>    Step size.
 
1496
</td>
 
1497
</tr>
 
1498
<tr>
 
1499
<td><span class="term"><em class="parameter"><code>page_increment</code></em>&#160;:</span></td>
 
1500
<td>    Page size.
 
1501
</td>
 
1502
</tr>
 
1503
<tr>
 
1504
<td><span class="term"><em class="parameter"><code>digits</code></em>&#160;:</span></td>
 
1505
<td>            Number of digits after decimal point to display.
 
1506
</td>
 
1507
</tr>
 
1508
<tr>
 
1509
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1510
<td> A new <span class="type">GimpSpinButton</span>.
 
1511
 
 
1512
Since GIMP 2.4
 
1513
</td>
 
1514
</tr>
 
1515
</tbody>
 
1516
</table></div>
 
1517
</div>
 
1518
<hr>
 
1519
<div class="refsect2" lang="en">
 
1520
<a name="id2673703"></a><h3>
 
1521
<a name="gimp-prop-stock-image-new"></a>gimp_prop_stock_image_new ()</h3>
 
1522
<a class="indexterm" name="id2673717"></a><pre class="programlisting">GtkWidget*          gimp_prop_stock_image_new           (GObject *config,
 
1523
                                                         const gchar *property_name,
 
1524
                                                         GtkIconSize icon_size);</pre>
 
1525
<p>
 
1526
Creates a widget to display a stock image representing the value of the
 
1527
specified string property, which should encode a Stock ID.
 
1528
See <code class="function">gtk_image_new_from_stock()</code> for more information.</p>
 
1529
<p>
 
1530
 
 
1531
</p>
 
1532
<div class="variablelist"><table border="0">
 
1533
<col align="left" valign="top">
 
1534
<tbody>
 
1535
<tr>
 
1536
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1537
<td>        Object to which property is attached.
 
1538
</td>
 
1539
</tr>
 
1540
<tr>
 
1541
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1542
<td> Name of string property.
 
1543
</td>
 
1544
</tr>
 
1545
<tr>
 
1546
<td><span class="term"><em class="parameter"><code>icon_size</code></em>&#160;:</span></td>
 
1547
<td>     Size of desired stock image.
 
1548
</td>
 
1549
</tr>
 
1550
<tr>
 
1551
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1552
<td>  A new <span class="type">GtkImage</span> widget.
 
1553
 
 
1554
Since GIMP 2.4
 
1555
</td>
 
1556
</tr>
 
1557
</tbody>
 
1558
</table></div>
 
1559
</div>
 
1560
<hr>
 
1561
<div class="refsect2" lang="en">
 
1562
<a name="id2673841"></a><h3>
 
1563
<a name="gimp-prop-string-combo-box-new"></a>gimp_prop_string_combo_box_new ()</h3>
 
1564
<a class="indexterm" name="id2673855"></a><pre class="programlisting">GtkWidget*          gimp_prop_string_combo_box_new      (GObject *config,
 
1565
                                                         const gchar *property_name,
 
1566
                                                         GtkTreeModel *model,
 
1567
                                                         gint id_column,
 
1568
                                                         gint label_column);</pre>
 
1569
<p>
 
1570
Creates a <a href="GimpStringComboBox.html" title="GimpStringComboBox"><span class="type">GimpStringComboBox</span></a> widget to display and set the
 
1571
specified property.  The contents of the widget are determined by
 
1572
<em class="parameter"><code>store</code></em>.</p>
 
1573
<p>
 
1574
 
 
1575
</p>
 
1576
<div class="variablelist"><table border="0">
 
1577
<col align="left" valign="top">
 
1578
<tbody>
 
1579
<tr>
 
1580
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1581
<td>        Object to which property is attached.
 
1582
</td>
 
1583
</tr>
 
1584
<tr>
 
1585
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1586
<td> Name of int property controlled by combo box.
 
1587
</td>
 
1588
</tr>
 
1589
<tr>
 
1590
<td><span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
 
1591
<td>         <span class="type">GtkTreeStore</span> holding list of values
 
1592
</td>
 
1593
</tr>
 
1594
<tr>
 
1595
<td><span class="term"><em class="parameter"><code>id_column</code></em>&#160;:</span></td>
 
1596
<td>     column in <em class="parameter"><code>store</code></em> that holds string IDs
 
1597
</td>
 
1598
</tr>
 
1599
<tr>
 
1600
<td><span class="term"><em class="parameter"><code>label_column</code></em>&#160;:</span></td>
 
1601
<td>  column in <em class="parameter"><code>store</code></em> that holds labels to use in the combo-box
 
1602
</td>
 
1603
</tr>
 
1604
<tr>
 
1605
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1606
<td> The newly created <a href="GimpStringComboBox.html" title="GimpStringComboBox"><span class="type">GimpStringComboBox</span></a> widget, optionally
 
1607
              wrapped into a <span class="type">GtkEventBox</span>.
 
1608
 
 
1609
Since GIMP 2.4
 
1610
</td>
 
1611
</tr>
 
1612
</tbody>
 
1613
</table></div>
 
1614
</div>
 
1615
<hr>
 
1616
<div class="refsect2" lang="en">
 
1617
<a name="id2674054"></a><h3>
 
1618
<a name="gimp-prop-text-buffer-new"></a>gimp_prop_text_buffer_new ()</h3>
 
1619
<a class="indexterm" name="id2674069"></a><pre class="programlisting">GtkTextBuffer*      gimp_prop_text_buffer_new           (GObject *config,
 
1620
                                                         const gchar *property_name,
 
1621
                                                         gint max_len);</pre>
 
1622
<p>
 
1623
Creates a <span class="type">GtkTextBuffer</span> to set and display the value of the
 
1624
specified string property.  Unless the string is expected to
 
1625
contain multiple lines or a large amount of text, use
 
1626
<a href="libgimpwidgets-GimpPropWidgets.html#gimp-prop-entry-new"><code class="function">gimp_prop_entry_new()</code></a> instead.  See <span class="type">GtkTextView</span> for information on
 
1627
how to insert a text buffer into a visible widget.
 
1628
</p>
 
1629
<p>
 
1630
If <em class="parameter"><code>max_len</code></em> is 0 or negative, the text buffer allows an unlimited
 
1631
number of characters to be entered.</p>
 
1632
<p>
 
1633
 
 
1634
</p>
 
1635
<div class="variablelist"><table border="0">
 
1636
<col align="left" valign="top">
 
1637
<tbody>
 
1638
<tr>
 
1639
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1640
<td>        Object to which property is attached.
 
1641
</td>
 
1642
</tr>
 
1643
<tr>
 
1644
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1645
<td> Name of string property.
 
1646
</td>
 
1647
</tr>
 
1648
<tr>
 
1649
<td><span class="term"><em class="parameter"><code>max_len</code></em>&#160;:</span></td>
 
1650
<td>       Maximum allowed length of text (in characters).
 
1651
</td>
 
1652
</tr>
 
1653
<tr>
 
1654
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1655
<td>  A new <span class="type">GtkTextBuffer</span>.
 
1656
 
 
1657
Since GIMP 2.4
 
1658
</td>
 
1659
</tr>
 
1660
</tbody>
 
1661
</table></div>
 
1662
</div>
 
1663
<hr>
 
1664
<div class="refsect2" lang="en">
 
1665
<a name="id2674220"></a><h3>
 
1666
<a name="gimp-prop-unit-menu-new"></a>gimp_prop_unit_menu_new ()</h3>
 
1667
<a class="indexterm" name="id2674234"></a><pre class="programlisting">GtkWidget*          gimp_prop_unit_menu_new             (GObject *config,
 
1668
                                                         const gchar *property_name,
 
1669
                                                         const gchar *unit_format);</pre>
 
1670
<p>
 
1671
Creates a <a href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> to set and display the value of a Unit
 
1672
property.  See <a href="GimpUnitMenu.html#gimp-unit-menu-new"><code class="function">gimp_unit_menu_new()</code></a> for more information.</p>
 
1673
<p>
 
1674
 
 
1675
</p>
 
1676
<div class="variablelist"><table border="0">
 
1677
<col align="left" valign="top">
 
1678
<tbody>
 
1679
<tr>
 
1680
<td><span class="term"><em class="parameter"><code>config</code></em>&#160;:</span></td>
 
1681
<td>        Object to which property is attached.
 
1682
</td>
 
1683
</tr>
 
1684
<tr>
 
1685
<td><span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
 
1686
<td> Name of Unit property.
 
1687
</td>
 
1688
</tr>
 
1689
<tr>
 
1690
<td><span class="term"><em class="parameter"><code>unit_format</code></em>&#160;:</span></td>
 
1691
<td>   A printf-like format string which is used to create
 
1692
                the unit strings.
 
1693
</td>
 
1694
</tr>
 
1695
<tr>
 
1696
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
1697
<td>  A new <a href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> widget.
 
1698
 
 
1699
Since GIMP 2.4
 
1700
</td>
 
1701
</tr>
 
1702
</tbody>
 
1703
</table></div>
 
1704
</div>
 
1705
</div>
 
1706
</div>
 
1707
</body>
 
1708
</html>