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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
Import upstream version 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                    <a class="link" href="GimpSizeEntry.html#GimpSizeEntry-struct" title="GimpSizeEntry">GimpSizeEntry</a>;
59
59
                    <a class="link" href="GimpSizeEntry.html#GimpSizeEntryField" title="GimpSizeEntryField">GimpSizeEntryField</a>;
60
60
enum                <a class="link" href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy" title="enum GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a>;
61
 
<a
62
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
63
 
>GtkWidget</a>*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()">gimp_size_entry_new</a>                 (<a
64
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
65
 
>gint</a> number_of_fields,
 
61
GtkWidget*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()">gimp_size_entry_new</a>                 (gint number_of_fields,
66
62
                                                         <a
67
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
63
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
68
64
>GimpUnit</a> unit,
69
 
                                                         const <a
70
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
71
 
>gchar</a> *unit_format,
72
 
                                                         <a
73
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
74
 
>gboolean</a> menu_show_pixels,
75
 
                                                         <a
76
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
77
 
>gboolean</a> menu_show_percent,
78
 
                                                         <a
79
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
80
 
>gboolean</a> show_refval,
81
 
                                                         <a
82
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
83
 
>gint</a> spinbutton_width,
 
65
                                                         const gchar *unit_format,
 
66
                                                         gboolean menu_show_pixels,
 
67
                                                         gboolean menu_show_percent,
 
68
                                                         gboolean show_refval,
 
69
                                                         gint spinbutton_width,
84
70
                                                         <a class="link" href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy" title="enum GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy);
85
71
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-add-field" title="gimp_size_entry_add_field ()">gimp_size_entry_add_field</a>           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
86
 
                                                         <a
87
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
88
 
>GtkSpinButton</a> *value_spinbutton,
89
 
                                                         <a
90
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
91
 
>GtkSpinButton</a> *refval_spinbutton);
92
 
<a
93
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
94
 
>GtkWidget</a>*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-attach-label" title="gimp_size_entry_attach_label ()">gimp_size_entry_attach_label</a>        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
95
 
                                                         const <a
96
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
97
 
>gchar</a> *text,
98
 
                                                         <a
99
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
100
 
>gint</a> row,
101
 
                                                         <a
102
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
103
 
>gint</a> column,
104
 
                                                         <a
105
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"
106
 
>gfloat</a> alignment);
 
72
                                                         GtkSpinButton *value_spinbutton,
 
73
                                                         GtkSpinButton *refval_spinbutton);
 
74
GtkWidget*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-attach-label" title="gimp_size_entry_attach_label ()">gimp_size_entry_attach_label</a>        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
75
                                                         const gchar *text,
 
76
                                                         gint row,
 
77
                                                         gint column,
 
78
                                                         gfloat alignment);
107
79
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-resolution" title="gimp_size_entry_set_resolution ()">gimp_size_entry_set_resolution</a>      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
108
 
                                                         <a
109
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
110
 
>gint</a> field,
111
 
                                                         <a
112
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
113
 
>gdouble</a> resolution,
114
 
                                                         <a
115
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
116
 
>gboolean</a> keep_size);
 
80
                                                         gint field,
 
81
                                                         gdouble resolution,
 
82
                                                         gboolean keep_size);
117
83
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-size" title="gimp_size_entry_set_size ()">gimp_size_entry_set_size</a>            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
118
 
                                                         <a
119
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
120
 
>gint</a> field,
121
 
                                                         <a
122
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
123
 
>gdouble</a> lower,
124
 
                                                         <a
125
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
126
 
>gdouble</a> upper);
 
84
                                                         gint field,
 
85
                                                         gdouble lower,
 
86
                                                         gdouble upper);
127
87
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-value-boundaries" title="gimp_size_entry_set_value_boundaries ()">gimp_size_entry_set_value_boundaries</a>
128
88
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
129
 
                                                         <a
130
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
131
 
>gint</a> field,
132
 
                                                         <a
133
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
134
 
>gdouble</a> lower,
135
 
                                                         <a
136
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
137
 
>gdouble</a> upper);
138
 
<a
139
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
140
 
>gdouble</a>             <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-value" title="gimp_size_entry_get_value ()">gimp_size_entry_get_value</a>           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
141
 
                                                         <a
142
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
143
 
>gint</a> field);
 
89
                                                         gint field,
 
90
                                                         gdouble lower,
 
91
                                                         gdouble upper);
 
92
gdouble             <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-value" title="gimp_size_entry_get_value ()">gimp_size_entry_get_value</a>           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
93
                                                         gint field);
144
94
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-value" title="gimp_size_entry_set_value ()">gimp_size_entry_set_value</a>           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
145
 
                                                         <a
146
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
147
 
>gint</a> field,
148
 
                                                         <a
149
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
150
 
>gdouble</a> value);
 
95
                                                         gint field,
 
96
                                                         gdouble value);
151
97
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-refval-boundaries" title="gimp_size_entry_set_refval_boundaries ()">gimp_size_entry_set_refval_boundaries</a>
152
98
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
153
 
                                                         <a
154
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
155
 
>gint</a> field,
156
 
                                                         <a
157
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
158
 
>gdouble</a> lower,
159
 
                                                         <a
160
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
161
 
>gdouble</a> upper);
 
99
                                                         gint field,
 
100
                                                         gdouble lower,
 
101
                                                         gdouble upper);
162
102
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-refval-digits" title="gimp_size_entry_set_refval_digits ()">gimp_size_entry_set_refval_digits</a>   (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
163
 
                                                         <a
164
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
165
 
>gint</a> field,
166
 
                                                         <a
167
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
168
 
>gint</a> digits);
169
 
<a
170
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
171
 
>gdouble</a>             <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-refval" title="gimp_size_entry_get_refval ()">gimp_size_entry_get_refval</a>          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
172
 
                                                         <a
173
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
174
 
>gint</a> field);
 
103
                                                         gint field,
 
104
                                                         gint digits);
 
105
gdouble             <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-refval" title="gimp_size_entry_get_refval ()">gimp_size_entry_get_refval</a>          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
106
                                                         gint field);
175
107
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-refval" title="gimp_size_entry_set_refval ()">gimp_size_entry_set_refval</a>          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
176
 
                                                         <a
177
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
178
 
>gint</a> field,
179
 
                                                         <a
180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
181
 
>gdouble</a> refval);
 
108
                                                         gint field,
 
109
                                                         gdouble refval);
182
110
<a
183
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
111
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
184
112
>GimpUnit</a>            <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-unit" title="gimp_size_entry_get_unit ()">gimp_size_entry_get_unit</a>            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse);
185
113
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-unit" title="gimp_size_entry_set_unit ()">gimp_size_entry_set_unit</a>            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
186
114
                                                         <a
187
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
115
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
188
116
>GimpUnit</a> unit);
189
117
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-pixel-digits" title="gimp_size_entry_set_pixel_digits ()">gimp_size_entry_set_pixel_digits</a>    (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
190
 
                                                         <a
191
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
192
 
>gint</a> digits);
 
118
                                                         gint digits);
193
119
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-show-unit-menu" title="gimp_size_entry_show_unit_menu ()">gimp_size_entry_show_unit_menu</a>      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
194
 
                                                         <a
195
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
196
 
>gboolean</a> show);
 
120
                                                         gboolean show);
197
121
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-grab-focus" title="gimp_size_entry_grab_focus ()">gimp_size_entry_grab_focus</a>          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse);
198
122
void                <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-activates-default" title="gimp_size_entry_set_activates_default ()">gimp_size_entry_set_activates_default</a>
199
123
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
200
 
                                                         <a
201
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
202
 
>gboolean</a> setting);
203
 
<a
204
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
205
 
>GtkWidget</a>*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-help-widget" title="gimp_size_entry_get_help_widget ()">gimp_size_entry_get_help_widget</a>     (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
206
 
                                                         <a
207
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
208
 
>gint</a> field);
 
124
                                                         gboolean setting);
 
125
GtkWidget*          <a class="link" href="GimpSizeEntry.html#gimp-size-entry-get-help-widget" title="gimp_size_entry_get_help_widget ()">gimp_size_entry_get_help_widget</a>     (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
126
                                                         gint field);
209
127
</pre>
210
128
</div>
211
129
<div class="refsect1" lang="en">
212
130
<a name="GimpSizeEntry.object-hierarchy"></a><h2>Object Hierarchy</h2>
213
131
<pre class="synopsis">
214
 
  <a
215
 
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
216
 
>GObject</a>
217
 
   +----<a
218
 
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
219
 
>GInitiallyUnowned</a>
220
 
         +----<a
221
 
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
222
 
>GtkObject</a>
223
 
               +----<a
224
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
225
 
>GtkWidget</a>
226
 
                     +----<a
227
 
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
228
 
>GtkContainer</a>
229
 
                           +----<a
230
 
href="/usr/share/gtk-doc/html/gtk/GtkTable.html"
231
 
>GtkTable</a>
 
132
  GObject
 
133
   +----GInitiallyUnowned
 
134
         +----GtkObject
 
135
               +----GtkWidget
 
136
                     +----GtkContainer
 
137
                           +----GtkTable
232
138
                                 +----GimpSizeEntry
233
139
</pre>
234
140
</div>
259
165
<p>
260
166
There is a <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> right of the entry fields which lets you
261
167
specify the <a
262
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
168
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
263
169
><span class="type">GimpUnit</span></a> of the displayed values.
264
170
</p>
265
171
<p>
266
 
For each field, there can be one or two <a
267
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
268
 
><span class="type">GtkSpinButton</span></a>'s to enter
269
 
"value" and "reference value". If you specify <em class="parameter"><code>show_refval</code></em> as <a
270
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
271
 
><span class="type">FALSE</span></a>
272
 
in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a> there will be only one <a
273
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
274
 
><span class="type">GtkSpinButton</span></a> and the
 
172
For each field, there can be one or two <span class="type">GtkSpinButton</span>'s to enter
 
173
"value" and "reference value". If you specify <em class="parameter"><code>show_refval</code></em> as <span class="type">FALSE</span>
 
174
in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a> there will be only one <span class="type">GtkSpinButton</span> and the
275
175
<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> will contain an item for selecting GIMP_UNIT_PIXEL.
276
176
</p>
277
177
<p>
279
179
on which <a class="link" href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy" title="enum GimpSizeEntryUpdatePolicy"><span class="type">GimpSizeEntryUpdatePolicy</span></a> you specify in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a>.
280
180
The "value" is either the size in pixels mapped to the size in a
281
181
real-world-unit (see <a
282
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
182
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
283
183
><span class="type">GimpUnit</span></a>) or the dpi value mapped to pixels per
284
184
real-world-unit.
285
185
</p>
318
218
<hr>
319
219
<div class="refsect2" lang="en">
320
220
<a name="gimp-size-entry-new"></a><h3>gimp_size_entry_new ()</h3>
321
 
<pre class="programlisting"><a
322
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
323
 
>GtkWidget</a>*          gimp_size_entry_new                 (<a
324
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
325
 
>gint</a> number_of_fields,
 
221
<pre class="programlisting">GtkWidget*          gimp_size_entry_new                 (gint number_of_fields,
326
222
                                                         <a
327
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
223
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
328
224
>GimpUnit</a> unit,
329
 
                                                         const <a
330
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
331
 
>gchar</a> *unit_format,
332
 
                                                         <a
333
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
334
 
>gboolean</a> menu_show_pixels,
335
 
                                                         <a
336
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
337
 
>gboolean</a> menu_show_percent,
338
 
                                                         <a
339
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
340
 
>gboolean</a> show_refval,
341
 
                                                         <a
342
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
343
 
>gint</a> spinbutton_width,
 
225
                                                         const gchar *unit_format,
 
226
                                                         gboolean menu_show_pixels,
 
227
                                                         gboolean menu_show_percent,
 
228
                                                         gboolean show_refval,
 
229
                                                         gint spinbutton_width,
344
230
                                                         <a class="link" href="GimpSizeEntry.html#GimpSizeEntryUpdatePolicy" title="enum GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</a> update_policy);</pre>
345
231
<p>
346
232
Creates a new <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> widget.
375
261
7. <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-refval" title="gimp_size_entry_set_refval ()"><code class="function">gimp_size_entry_set_refval()</code></a> (or <a class="link" href="GimpSizeEntry.html#gimp-size-entry-set-value" title="gimp_size_entry_set_value ()"><code class="function">gimp_size_entry_set_value()</code></a>)
376
262
</p>
377
263
<p>
378
 
The <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> is derived from <a
379
 
href="/usr/share/gtk-doc/html/gtk/GtkTable.html"
380
 
><span class="type">GtkTable</span></a> and will have
 
264
The <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> is derived from <span class="type">GtkTable</span> and will have
381
265
an empty border of one cell width on each side plus an empty column left
382
266
of the <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a> to allow the caller to add labels or a
383
267
<a class="link" href="GimpChainButton.html" title="GimpChainButton"><span class="type">GimpChainButton</span></a>.</p>
405
289
</tr>
406
290
<tr>
407
291
<td><p><span class="term"><em class="parameter"><code>menu_show_pixels</code></em> :</span></p></td>
408
 
<td>  <a
409
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
410
 
><code class="literal">TRUE</code></a> if the unit menu shold contain an item for
 
292
<td>  <code class="literal">TRUE</code> if the unit menu shold contain an item for
411
293
                    GIMP_UNIT_PIXEL (ignored if the <em class="parameter"><code>update_policy</code></em> is not
412
294
                    GIMP_SIZE_ENTRY_UPDATE_NONE).
413
295
</td>
414
296
</tr>
415
297
<tr>
416
298
<td><p><span class="term"><em class="parameter"><code>menu_show_percent</code></em> :</span></p></td>
417
 
<td> <a
418
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
419
 
><code class="literal">TRUE</code></a> if the unit menu shold contain an item for
 
299
<td> <code class="literal">TRUE</code> if the unit menu shold contain an item for
420
300
                    GIMP_UNIT_PERCENT.
421
301
</td>
422
302
</tr>
423
303
<tr>
424
304
<td><p><span class="term"><em class="parameter"><code>show_refval</code></em> :</span></p></td>
425
 
<td>       <a
426
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
427
 
><code class="literal">TRUE</code></a> if you want an extra "reference value"
 
305
<td>       <code class="literal">TRUE</code> if you want an extra "reference value"
428
306
                    spinbutton per input field.
429
307
</td>
430
308
</tr>
431
309
<tr>
432
310
<td><p><span class="term"><em class="parameter"><code>spinbutton_width</code></em> :</span></p></td>
433
 
<td>  The minimal horizontal size of the <a
434
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
435
 
><span class="type">GtkSpinButton</span></a>'s.
 
311
<td>  The minimal horizontal size of the <span class="type">GtkSpinButton</span>'s.
436
312
</td>
437
313
</tr>
438
314
<tr>
453
329
<div class="refsect2" lang="en">
454
330
<a name="gimp-size-entry-add-field"></a><h3>gimp_size_entry_add_field ()</h3>
455
331
<pre class="programlisting">void                gimp_size_entry_add_field           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
456
 
                                                         <a
457
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
458
 
>GtkSpinButton</a> *value_spinbutton,
459
 
                                                         <a
460
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
461
 
>GtkSpinButton</a> *refval_spinbutton);</pre>
 
332
                                                         GtkSpinButton *value_spinbutton,
 
333
                                                         GtkSpinButton *refval_spinbutton);</pre>
462
334
<p>
463
335
Adds an input field to the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
464
336
</p>
465
337
<p>
466
338
The new input field will have the index 0. If you specified <em class="parameter"><code>show_refval</code></em>
467
 
as <a
468
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
469
 
><code class="literal">TRUE</code></a> in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a> you have to pass an additional
470
 
<a
471
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
472
 
><span class="type">GtkSpinButton</span></a> to hold the reference value. If <em class="parameter"><code>show_refval</code></em> was <a
473
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
474
 
><code class="literal">FALSE</code></a>,
 
339
as <code class="literal">TRUE</code> in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a> you have to pass an additional
 
340
<span class="type">GtkSpinButton</span> to hold the reference value. If <em class="parameter"><code>show_refval</code></em> was <code class="literal">FALSE</code>,
475
341
<em class="parameter"><code>refval_spinbutton</code></em> will be ignored.</p>
476
342
<p>
477
343
 
500
366
<hr>
501
367
<div class="refsect2" lang="en">
502
368
<a name="gimp-size-entry-attach-label"></a><h3>gimp_size_entry_attach_label ()</h3>
503
 
<pre class="programlisting"><a
504
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
505
 
>GtkWidget</a>*          gimp_size_entry_attach_label        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
506
 
                                                         const <a
507
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
508
 
>gchar</a> *text,
509
 
                                                         <a
510
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
511
 
>gint</a> row,
512
 
                                                         <a
513
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
514
 
>gint</a> column,
515
 
                                                         <a
516
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"
517
 
>gfloat</a> alignment);</pre>
 
369
<pre class="programlisting">GtkWidget*          gimp_size_entry_attach_label        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
370
                                                         const gchar *text,
 
371
                                                         gint row,
 
372
                                                         gint column,
 
373
                                                         gfloat alignment);</pre>
518
374
<p>
519
 
Attaches a <a
520
 
href="/usr/share/gtk-doc/html/gtk/GtkLabel.html"
521
 
><span class="type">GtkLabel</span></a> to the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> (which is a <a
522
 
href="/usr/share/gtk-doc/html/gtk/GtkTable.html"
523
 
><span class="type">GtkTable</span></a>).</p>
 
375
Attaches a <span class="type">GtkLabel</span> to the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> (which is a <span class="type">GtkTable</span>).</p>
524
376
<p>
525
377
 
526
378
</p>
554
406
</tr>
555
407
<tr>
556
408
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
557
 
<td> A pointer to the new <a
558
 
href="/usr/share/gtk-doc/html/gtk/GtkLabel.html"
559
 
><span class="type">GtkLabel</span></a> widget.
 
409
<td> A pointer to the new <span class="type">GtkLabel</span> widget.
560
410
</td>
561
411
</tr>
562
412
</tbody>
566
416
<div class="refsect2" lang="en">
567
417
<a name="gimp-size-entry-set-resolution"></a><h3>gimp_size_entry_set_resolution ()</h3>
568
418
<pre class="programlisting">void                gimp_size_entry_set_resolution      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
569
 
                                                         <a
570
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
571
 
>gint</a> field,
572
 
                                                         <a
573
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
574
 
>gdouble</a> resolution,
575
 
                                                         <a
576
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
577
 
>gboolean</a> keep_size);</pre>
 
419
                                                         gint field,
 
420
                                                         gdouble resolution,
 
421
                                                         gboolean keep_size);</pre>
578
422
<p>
579
423
Sets the resolution (in dpi) for field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
580
424
</p>
581
425
<p>
582
426
The <em class="parameter"><code>resolution</code></em> passed will be clamped to fit in
583
427
[<a
584
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimplimits.html#GIMP-MIN-RESOLUTION:CAPS"
 
428
href="../libgimpbase/libgimpbase-gimplimits.html#GIMP-MIN-RESOLUTION:CAPS"
585
429
><span class="type">GIMP_MIN_RESOLUTION</span></a>..<a
586
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimplimits.html#GIMP-MAX-RESOLUTION:CAPS"
 
430
href="../libgimpbase/libgimpbase-gimplimits.html#GIMP-MAX-RESOLUTION:CAPS"
587
431
><span class="type">GIMP_MAX_RESOLUTION</span></a>].
588
432
</p>
589
433
<p>
612
456
</tr>
613
457
<tr>
614
458
<td><p><span class="term"><em class="parameter"><code>keep_size</code></em> :</span></p></td>
615
 
<td>  <a
616
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
617
 
><code class="literal">TRUE</code></a> if the <em class="parameter"><code>field</code></em>'s size in pixels should stay the same.
618
 
             <a
619
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
620
 
><code class="literal">FALSE</code></a> if the <em class="parameter"><code>field</code></em>'s size in units should stay the same.
 
459
<td>  <code class="literal">TRUE</code> if the <em class="parameter"><code>field</code></em>'s size in pixels should stay the same.
 
460
             <code class="literal">FALSE</code> if the <em class="parameter"><code>field</code></em>'s size in units should stay the same.
621
461
</td>
622
462
</tr>
623
463
</tbody>
627
467
<div class="refsect2" lang="en">
628
468
<a name="gimp-size-entry-set-size"></a><h3>gimp_size_entry_set_size ()</h3>
629
469
<pre class="programlisting">void                gimp_size_entry_set_size            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
630
 
                                                         <a
631
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
632
 
>gint</a> field,
633
 
                                                         <a
634
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
635
 
>gdouble</a> lower,
636
 
                                                         <a
637
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
638
 
>gdouble</a> upper);</pre>
 
470
                                                         gint field,
 
471
                                                         gdouble lower,
 
472
                                                         gdouble upper);</pre>
639
473
<p>
640
474
Sets the pixel values for field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>
641
475
which will be treated as 0% and 100%.
642
476
</p>
643
477
<p>
644
 
These values will be used if you specified <em class="parameter"><code>menu_show_percent</code></em> as <a
645
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
646
 
><code class="literal">TRUE</code></a>
 
478
These values will be used if you specified <em class="parameter"><code>menu_show_percent</code></em> as <code class="literal">TRUE</code>
647
479
in <a class="link" href="GimpSizeEntry.html#gimp-size-entry-new" title="gimp_size_entry_new ()"><code class="function">gimp_size_entry_new()</code></a> and the user has selected GIMP_UNIT_PERCENT in
648
480
the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>'s <a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.
649
481
</p>
684
516
<a name="gimp-size-entry-set-value-boundaries"></a><h3>gimp_size_entry_set_value_boundaries ()</h3>
685
517
<pre class="programlisting">void                gimp_size_entry_set_value_boundaries
686
518
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
687
 
                                                         <a
688
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
689
 
>gint</a> field,
690
 
                                                         <a
691
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
692
 
>gdouble</a> lower,
693
 
                                                         <a
694
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
695
 
>gdouble</a> upper);</pre>
 
519
                                                         gint field,
 
520
                                                         gdouble lower,
 
521
                                                         gdouble upper);</pre>
696
522
<p>
697
523
Limits the range of possible values which can be entered in field # <em class="parameter"><code>field</code></em>
698
524
of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
739
565
<hr>
740
566
<div class="refsect2" lang="en">
741
567
<a name="gimp-size-entry-get-value"></a><h3>gimp_size_entry_get_value ()</h3>
742
 
<pre class="programlisting"><a
743
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
744
 
>gdouble</a>             gimp_size_entry_get_value           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
745
 
                                                         <a
746
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
747
 
>gint</a> field);</pre>
 
568
<pre class="programlisting">gdouble             gimp_size_entry_get_value           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
569
                                                         gint field);</pre>
748
570
<p>
749
571
Returns the value of field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
750
572
</p>
751
573
<p>
752
574
The <em class="parameter"><code>value</code></em> returned is a distance or resolution
753
575
in the <a
754
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
576
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
755
577
><span class="type">GimpUnit</span></a> the user has selected in the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>'s
756
578
<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.
757
579
</p>
787
609
<div class="refsect2" lang="en">
788
610
<a name="gimp-size-entry-set-value"></a><h3>gimp_size_entry_set_value ()</h3>
789
611
<pre class="programlisting">void                gimp_size_entry_set_value           (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
790
 
                                                         <a
791
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
792
 
>gint</a> field,
793
 
                                                         <a
794
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
795
 
>gdouble</a> value);</pre>
 
612
                                                         gint field,
 
613
                                                         gdouble value);</pre>
796
614
<p>
797
615
Sets the value for field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
798
616
</p>
799
617
<p>
800
618
The <em class="parameter"><code>value</code></em> passed is treated to be a distance or resolution
801
619
in the <a
802
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
620
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
803
621
><span class="type">GimpUnit</span></a> the user has selected in the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>'s
804
622
<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.
805
623
</p>
836
654
<a name="gimp-size-entry-set-refval-boundaries"></a><h3>gimp_size_entry_set_refval_boundaries ()</h3>
837
655
<pre class="programlisting">void                gimp_size_entry_set_refval_boundaries
838
656
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
839
 
                                                         <a
840
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
841
 
>gint</a> field,
842
 
                                                         <a
843
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
844
 
>gdouble</a> lower,
845
 
                                                         <a
846
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
847
 
>gdouble</a> upper);</pre>
 
657
                                                         gint field,
 
658
                                                         gdouble lower,
 
659
                                                         gdouble upper);</pre>
848
660
<p>
849
661
Limits the range of possible reference values which can be entered in
850
662
field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
886
698
<div class="refsect2" lang="en">
887
699
<a name="gimp-size-entry-set-refval-digits"></a><h3>gimp_size_entry_set_refval_digits ()</h3>
888
700
<pre class="programlisting">void                gimp_size_entry_set_refval_digits   (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
889
 
                                                         <a
890
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
891
 
>gint</a> field,
892
 
                                                         <a
893
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
894
 
>gint</a> digits);</pre>
 
701
                                                         gint field,
 
702
                                                         gint digits);</pre>
895
703
<p>
896
704
Sets the decimal digits of field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> to
897
705
<em class="parameter"><code>digits</code></em>.
918
726
</tr>
919
727
<tr>
920
728
<td><p><span class="term"><em class="parameter"><code>digits</code></em> :</span></p></td>
921
 
<td> The new number of decimal digits for the <a
922
 
href="/usr/share/gtk-doc/html/gtk/GtkSpinButton.html"
923
 
><span class="type">GtkSpinButton</span></a> which
 
729
<td> The new number of decimal digits for the <span class="type">GtkSpinButton</span> which
924
730
         displays <em class="parameter"><code>field</code></em>'s reference value.
925
731
</td>
926
732
</tr>
930
736
<hr>
931
737
<div class="refsect2" lang="en">
932
738
<a name="gimp-size-entry-get-refval"></a><h3>gimp_size_entry_get_refval ()</h3>
933
 
<pre class="programlisting"><a
934
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
935
 
>gdouble</a>             gimp_size_entry_get_refval          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
936
 
                                                         <a
937
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
938
 
>gint</a> field);</pre>
 
739
<pre class="programlisting">gdouble             gimp_size_entry_get_refval          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
740
                                                         gint field);</pre>
939
741
<p>
940
742
Returns the reference value for field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
941
743
</p>
971
773
<div class="refsect2" lang="en">
972
774
<a name="gimp-size-entry-set-refval"></a><h3>gimp_size_entry_set_refval ()</h3>
973
775
<pre class="programlisting">void                gimp_size_entry_set_refval          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
974
 
                                                         <a
975
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
976
 
>gint</a> field,
977
 
                                                         <a
978
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
979
 
>gdouble</a> refval);</pre>
 
776
                                                         gint field,
 
777
                                                         gdouble refval);</pre>
980
778
<p>
981
779
Sets the reference value for field # <em class="parameter"><code>field</code></em> of the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>.
982
780
</p>
1012
810
<div class="refsect2" lang="en">
1013
811
<a name="gimp-size-entry-get-unit"></a><h3>gimp_size_entry_get_unit ()</h3>
1014
812
<pre class="programlisting"><a
1015
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
813
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
1016
814
>GimpUnit</a>            gimp_size_entry_get_unit            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse);</pre>
1017
815
<p>
1018
816
Returns the <a
1019
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
817
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
1020
818
><span class="type">GimpUnit</span></a> the user has selected in the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>'s
1021
819
<a class="link" href="GimpUnitMenu.html" title="GimpUnitMenu"><span class="type">GimpUnitMenu</span></a>.</p>
1022
820
<p>
1043
841
<a name="gimp-size-entry-set-unit"></a><h3>gimp_size_entry_set_unit ()</h3>
1044
842
<pre class="programlisting">void                gimp_size_entry_set_unit            (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
1045
843
                                                         <a
1046
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
844
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
1047
845
>GimpUnit</a> unit);</pre>
1048
846
<p>
1049
847
Sets the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a>'s unit. The reference value for all fields will
1073
871
<div class="refsect2" lang="en">
1074
872
<a name="gimp-size-entry-set-pixel-digits"></a><h3>gimp_size_entry_set_pixel_digits ()</h3>
1075
873
<pre class="programlisting">void                gimp_size_entry_set_pixel_digits    (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
1076
 
                                                         <a
1077
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1078
 
>gint</a> digits);</pre>
 
874
                                                         gint digits);</pre>
1079
875
<p>
1080
876
Similar to <a class="link" href="GimpUnitMenu.html#gimp-unit-menu-set-pixel-digits" title="gimp_unit_menu_set_pixel_digits ()"><code class="function">gimp_unit_menu_set_pixel_digits()</code></a>, this function allows
1081
877
you set up a <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> so that sub-pixel sizes can be entered.</p>
1102
898
<div class="refsect2" lang="en">
1103
899
<a name="gimp-size-entry-show-unit-menu"></a><h3>gimp_size_entry_show_unit_menu ()</h3>
1104
900
<pre class="programlisting">void                gimp_size_entry_show_unit_menu      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
1105
 
                                                         <a
1106
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1107
 
>gboolean</a> show);</pre>
 
901
                                                         gboolean show);</pre>
1108
902
<p>
1109
903
Controls whether a unit menu is shown in the size entry.  If
1110
 
<em class="parameter"><code>show</code></em> is <a
1111
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
1112
 
><span class="type">TRUE</span></a>, the menu is shown; otherwise it is hidden.</p>
 
904
<em class="parameter"><code>show</code></em> is <span class="type">TRUE</span>, the menu is shown; otherwise it is hidden.</p>
1113
905
<p>
1114
906
 
1115
907
</p>
1137
929
<pre class="programlisting">void                gimp_size_entry_grab_focus          (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse);</pre>
1138
930
<p>
1139
931
This function is rather ugly and just a workaround for the fact that
1140
 
it's impossible to implement <a
1141
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-grab-focus"
1142
 
><code class="function">gtk_widget_grab_focus()</code></a> for a <a
1143
 
href="/usr/share/gtk-doc/html/gtk/GtkTable.html"
1144
 
><span class="type">GtkTable</span></a>.</p>
 
932
it's impossible to implement <code class="function">gtk_widget_grab_focus()</code> for a <span class="type">GtkTable</span>.</p>
1145
933
<p>
1146
934
 
1147
935
</p>
1159
947
<a name="gimp-size-entry-set-activates-default"></a><h3>gimp_size_entry_set_activates_default ()</h3>
1160
948
<pre class="programlisting">void                gimp_size_entry_set_activates_default
1161
949
                                                        (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
1162
 
                                                         <a
1163
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1164
 
>gboolean</a> setting);</pre>
 
950
                                                         gboolean setting);</pre>
1165
951
<p>
1166
952
Iterates over all entries in the <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> and calls
1167
 
<a
1168
 
href="/usr/share/gtk-doc/html/gtk/GtkEntry.html#gtk-entry-set-activates-default"
1169
 
><code class="function">gtk_entry_set_activates_default()</code></a> on them.</p>
 
953
<code class="function">gtk_entry_set_activates_default()</code> on them.</p>
1170
954
<p>
1171
955
 
1172
956
</p>
1180
964
</tr>
1181
965
<tr>
1182
966
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
1183
 
<td> <a
1184
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
1185
 
><code class="literal">TRUE</code></a> to activate window's default widget on Enter keypress
 
967
<td> <code class="literal">TRUE</code> to activate window's default widget on Enter keypress
1186
968
</td>
1187
969
</tr>
1188
970
</tbody>
1193
975
<hr>
1194
976
<div class="refsect2" lang="en">
1195
977
<a name="gimp-size-entry-get-help-widget"></a><h3>gimp_size_entry_get_help_widget ()</h3>
1196
 
<pre class="programlisting"><a
1197
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
1198
 
>GtkWidget</a>*          gimp_size_entry_get_help_widget     (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
1199
 
                                                         <a
1200
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1201
 
>gint</a> field);</pre>
 
978
<pre class="programlisting">GtkWidget*          gimp_size_entry_get_help_widget     (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gse,
 
979
                                                         gint field);</pre>
1202
980
<p>
1203
981
You shouldn't fiddle with the internals of a <a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry"><span class="type">GimpSizeEntry</span></a> but
1204
982
if you want to set tooltips using <a class="link" href="libgimpwidgets-GimpHelpUI.html#gimp-help-set-help-data" title="gimp_help_set_help_data ()"><code class="function">gimp_help_set_help_data()</code></a> you
1221
999
</tr>
1222
1000
<tr>
1223
1001
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1224
 
<td> a <a
1225
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
1226
 
><span class="type">GtkWidget</span></a> pointer that you can attach a tooltip to.
 
1002
<td> a <span class="type">GtkWidget</span> pointer that you can attach a tooltip to.
1227
1003
</td>
1228
1004
</tr>
1229
1005
</tbody>
1235
1011
<div class="refsect2" lang="en">
1236
1012
<a name="GimpSizeEntry-refval-changed"></a><h3>The <code class="literal">"refval-changed"</code> signal</h3>
1237
1013
<pre class="programlisting">void                user_function                      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gimpsizeentry,
1238
 
                                                        <a
1239
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1240
 
>gpointer</a>       user_data)          : Run First</pre>
 
1014
                                                        gpointer       user_data)          : Run First</pre>
1241
1015
<p>
1242
1016
 
1243
1017
</p>
1261
1035
<div class="refsect2" lang="en">
1262
1036
<a name="GimpSizeEntry-unit-changed"></a><h3>The <code class="literal">"unit-changed"</code> signal</h3>
1263
1037
<pre class="programlisting">void                user_function                      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gimpsizeentry,
1264
 
                                                        <a
1265
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1266
 
>gpointer</a>       user_data)          : Run First</pre>
 
1038
                                                        gpointer       user_data)          : Run First</pre>
1267
1039
<p>
1268
1040
 
1269
1041
</p>
1287
1059
<div class="refsect2" lang="en">
1288
1060
<a name="GimpSizeEntry-value-changed"></a><h3>The <code class="literal">"value-changed"</code> signal</h3>
1289
1061
<pre class="programlisting">void                user_function                      (<a class="link" href="GimpSizeEntry.html" title="GimpSizeEntry">GimpSizeEntry</a> *gimpsizeentry,
1290
 
                                                        <a
1291
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1292
 
>gpointer</a>       user_data)          : Run First</pre>
 
1062
                                                        gpointer       user_data)          : Run First</pre>
1293
1063
<p>
1294
1064
 
1295
1065
</p>
1314
1084
<a name="GimpSizeEntry.see-also"></a><h2>See Also</h2>
1315
1085
<p>
1316
1086
<a
1317
 
href="/usr/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
 
1087
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
1318
1088
><span class="type">GimpUnit</span></a>
1319
1089
</p>
1320
1090
<p>