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

« back to all changes in this revision

Viewing changes to devel-docs/libgimpwidgets/html/GimpZoomModel.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:
59
59
enum                <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a>;
60
60
<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a>*      <a class="link" href="GimpZoomModel.html#gimp-zoom-model-new" title="gimp_zoom_model_new ()">gimp_zoom_model_new</a>                 (void);
61
61
void                <a class="link" href="GimpZoomModel.html#gimp-zoom-model-set-range" title="gimp_zoom_model_set_range ()">gimp_zoom_model_set_range</a>           (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
62
 
                                                         <a
63
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
64
 
>gdouble</a> min,
65
 
                                                         <a
66
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
67
 
>gdouble</a> max);
 
62
                                                         gdouble min,
 
63
                                                         gdouble max);
68
64
void                <a class="link" href="GimpZoomModel.html#gimp-zoom-model-zoom" title="gimp_zoom_model_zoom ()">gimp_zoom_model_zoom</a>                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
69
65
                                                         <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
70
 
                                                         <a
71
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
72
 
>gdouble</a> scale);
73
 
<a
74
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
75
 
>gdouble</a>             <a class="link" href="GimpZoomModel.html#gimp-zoom-model-get-factor" title="gimp_zoom_model_get_factor ()">gimp_zoom_model_get_factor</a>          (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);
 
66
                                                         gdouble scale);
 
67
gdouble             <a class="link" href="GimpZoomModel.html#gimp-zoom-model-get-factor" title="gimp_zoom_model_get_factor ()">gimp_zoom_model_get_factor</a>          (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);
76
68
void                <a class="link" href="GimpZoomModel.html#gimp-zoom-model-get-fraction" title="gimp_zoom_model_get_fraction ()">gimp_zoom_model_get_fraction</a>        (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
77
 
                                                         <a
78
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
79
 
>gint</a> *numerator,
80
 
                                                         <a
81
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
82
 
>gint</a> *denominator);
83
 
<a
84
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
85
 
>GtkWidget</a>*          <a class="link" href="GimpZoomModel.html#gimp-zoom-button-new" title="gimp_zoom_button_new ()">gimp_zoom_button_new</a>                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
 
69
                                                         gint *numerator,
 
70
                                                         gint *denominator);
 
71
GtkWidget*          <a class="link" href="GimpZoomModel.html#gimp-zoom-button-new" title="gimp_zoom_button_new ()">gimp_zoom_button_new</a>                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
86
72
                                                         <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
87
 
                                                         <a
88
 
href="/usr/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
89
 
>GtkIconSize</a> icon_size);
90
 
<a
91
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
92
 
>gdouble</a>             <a class="link" href="GimpZoomModel.html#gimp-zoom-model-zoom-step" title="gimp_zoom_model_zoom_step ()">gimp_zoom_model_zoom_step</a>           (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
93
 
                                                         <a
94
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
95
 
>gdouble</a> scale);
 
73
                                                         GtkIconSize icon_size);
 
74
gdouble             <a class="link" href="GimpZoomModel.html#gimp-zoom-model-zoom-step" title="gimp_zoom_model_zoom_step ()">gimp_zoom_model_zoom_step</a>           (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
 
75
                                                         gdouble scale);
96
76
</pre>
97
77
</div>
98
78
<div class="refsect1" lang="en">
99
79
<a name="GimpZoomModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
100
80
<pre class="synopsis">
101
 
  <a
102
 
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
103
 
>GObject</a>
 
81
  GObject
104
82
   +----GimpZoomModel
105
83
</pre>
106
84
</div>
107
85
<div class="refsect1" lang="en">
108
86
<a name="GimpZoomModel.properties"></a><h2>Properties</h2>
109
87
<pre class="synopsis">
110
 
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--fraction" title='The "fraction" property'>fraction</a>"                 <a
111
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
112
 
>gchar</a>*                : Read
113
 
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--maximum" title='The "maximum" property'>maximum</a>"                  <a
114
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
115
 
>gdouble</a>               : Read / Write
116
 
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--minimum" title='The "minimum" property'>minimum</a>"                  <a
117
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
118
 
>gdouble</a>               : Read / Write
119
 
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--percentage" title='The "percentage" property'>percentage</a>"               <a
120
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
121
 
>gchar</a>*                : Read
122
 
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--value" title='The "value" property'>value</a>"                    <a
123
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
124
 
>gdouble</a>               : Read / Write
 
88
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--fraction" title='The "fraction" property'>fraction</a>"                 gchar*                : Read
 
89
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--maximum" title='The "maximum" property'>maximum</a>"                  gdouble               : Read / Write
 
90
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--minimum" title='The "minimum" property'>minimum</a>"                  gdouble               : Read / Write
 
91
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--percentage" title='The "percentage" property'>percentage</a>"               gchar*                : Read
 
92
  "<a class="link" href="GimpZoomModel.html#GimpZoomModel--value" title='The "value" property'>value</a>"                    gdouble               : Read / Write
125
93
</pre>
126
94
</div>
127
95
<div class="refsect1" lang="en">
187
155
<div class="refsect2" lang="en">
188
156
<a name="gimp-zoom-model-set-range"></a><h3>gimp_zoom_model_set_range ()</h3>
189
157
<pre class="programlisting">void                gimp_zoom_model_set_range           (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
190
 
                                                         <a
191
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
192
 
>gdouble</a> min,
193
 
                                                         <a
194
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
195
 
>gdouble</a> max);</pre>
 
158
                                                         gdouble min,
 
159
                                                         gdouble max);</pre>
196
160
<p>
197
161
Sets the allowed range of the <em class="parameter"><code>model</code></em>.
198
162
</p>
227
191
<a name="gimp-zoom-model-zoom"></a><h3>gimp_zoom_model_zoom ()</h3>
228
192
<pre class="programlisting">void                gimp_zoom_model_zoom                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
229
193
                                                         <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
230
 
                                                         <a
231
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
232
 
>gdouble</a> scale);</pre>
 
194
                                                         gdouble scale);</pre>
233
195
<p>
234
196
Since GIMP 2.4</p>
235
197
<p>
259
221
<hr>
260
222
<div class="refsect2" lang="en">
261
223
<a name="gimp-zoom-model-get-factor"></a><h3>gimp_zoom_model_get_factor ()</h3>
262
 
<pre class="programlisting"><a
263
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
264
 
>gdouble</a>             gimp_zoom_model_get_factor          (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);</pre>
 
224
<pre class="programlisting">gdouble             gimp_zoom_model_get_factor          (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);</pre>
265
225
<p>
266
226
Retrieves the current zoom factor of <em class="parameter"><code>model</code></em>.</p>
267
227
<p>
289
249
<div class="refsect2" lang="en">
290
250
<a name="gimp-zoom-model-get-fraction"></a><h3>gimp_zoom_model_get_fraction ()</h3>
291
251
<pre class="programlisting">void                gimp_zoom_model_get_fraction        (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
292
 
                                                         <a
293
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
294
 
>gint</a> *numerator,
295
 
                                                         <a
296
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
297
 
>gint</a> *denominator);</pre>
 
252
                                                         gint *numerator,
 
253
                                                         gint *denominator);</pre>
298
254
<p>
299
255
Retrieves the current zoom factor of <em class="parameter"><code>model</code></em> as a fraction.
300
256
</p>
327
283
<hr>
328
284
<div class="refsect2" lang="en">
329
285
<a name="gimp-zoom-button-new"></a><h3>gimp_zoom_button_new ()</h3>
330
 
<pre class="programlisting"><a
331
 
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
332
 
>GtkWidget</a>*          gimp_zoom_button_new                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
 
286
<pre class="programlisting">GtkWidget*          gimp_zoom_button_new                (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
333
287
                                                         <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
334
 
                                                         <a
335
 
href="/usr/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
336
 
>GtkIconSize</a> icon_size);</pre>
 
288
                                                         GtkIconSize icon_size);</pre>
337
289
<p>
338
290
</p>
339
291
<p>
370
322
<hr>
371
323
<div class="refsect2" lang="en">
372
324
<a name="gimp-zoom-model-zoom-step"></a><h3>gimp_zoom_model_zoom_step ()</h3>
373
 
<pre class="programlisting"><a
374
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
375
 
>gdouble</a>             gimp_zoom_model_zoom_step           (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
376
 
                                                         <a
377
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
378
 
>gdouble</a> scale);</pre>
 
325
<pre class="programlisting">gdouble             gimp_zoom_model_zoom_step           (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
 
326
                                                         gdouble scale);</pre>
379
327
<p>
380
328
Utility function to calculate a new scale factor.</p>
381
329
<p>
409
357
<a name="GimpZoomModel.property-details"></a><h2>Property Details</h2>
410
358
<div class="refsect2" lang="en">
411
359
<a name="GimpZoomModel--fraction"></a><h3>The <code class="literal">"fraction"</code> property</h3>
412
 
<pre class="programlisting">  "fraction"                 <a
413
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
414
 
>gchar</a>*                : Read</pre>
 
360
<pre class="programlisting">  "fraction"                 gchar*                : Read</pre>
415
361
<p></p>
416
362
<p>Default value: "1:1"</p>
417
363
</div>
418
364
<hr>
419
365
<div class="refsect2" lang="en">
420
366
<a name="GimpZoomModel--maximum"></a><h3>The <code class="literal">"maximum"</code> property</h3>
421
 
<pre class="programlisting">  "maximum"                  <a
422
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
423
 
>gdouble</a>               : Read / Write</pre>
 
367
<pre class="programlisting">  "maximum"                  gdouble               : Read / Write</pre>
424
368
<p></p>
425
369
<p>Allowed values: [0.00390625,256]</p>
426
370
<p>Default value: 256</p>
428
372
<hr>
429
373
<div class="refsect2" lang="en">
430
374
<a name="GimpZoomModel--minimum"></a><h3>The <code class="literal">"minimum"</code> property</h3>
431
 
<pre class="programlisting">  "minimum"                  <a
432
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
433
 
>gdouble</a>               : Read / Write</pre>
 
375
<pre class="programlisting">  "minimum"                  gdouble               : Read / Write</pre>
434
376
<p></p>
435
377
<p>Allowed values: [0.00390625,256]</p>
436
378
<p>Default value: 0.00390625</p>
438
380
<hr>
439
381
<div class="refsect2" lang="en">
440
382
<a name="GimpZoomModel--percentage"></a><h3>The <code class="literal">"percentage"</code> property</h3>
441
 
<pre class="programlisting">  "percentage"               <a
442
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
443
 
>gchar</a>*                : Read</pre>
 
383
<pre class="programlisting">  "percentage"               gchar*                : Read</pre>
444
384
<p></p>
445
385
<p>Default value: "100%"</p>
446
386
</div>
447
387
<hr>
448
388
<div class="refsect2" lang="en">
449
389
<a name="GimpZoomModel--value"></a><h3>The <code class="literal">"value"</code> property</h3>
450
 
<pre class="programlisting">  "value"                    <a
451
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
452
 
>gdouble</a>               : Read / Write</pre>
 
390
<pre class="programlisting">  "value"                    gdouble               : Read / Write</pre>
453
391
<p></p>
454
392
<p>Allowed values: [0.00390625,256]</p>
455
393
<p>Default value: 1</p>
460
398
<div class="refsect2" lang="en">
461
399
<a name="GimpZoomModel-zoomed"></a><h3>The <code class="literal">"zoomed"</code> signal</h3>
462
400
<pre class="programlisting">void                user_function                      (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
463
 
                                                        <a
464
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
465
 
>gdouble</a>        old_factor,
466
 
                                                        <a
467
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
468
 
>gdouble</a>        new_factor,
469
 
                                                        <a
470
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
471
 
>gpointer</a>       user_data)       : Run Last</pre>
 
401
                                                        gdouble        old_factor,
 
402
                                                        gdouble        new_factor,
 
403
                                                        gpointer       user_data)       : Run Last</pre>
472
404
<p>
473
405
Emitted when the zoom factor of the zoom model changes.</p>
474
406
<p>