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,
63
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
66
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
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,
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
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);
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,
78
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
81
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
82
>gint</a> *denominator);
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,
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,
88
href="/usr/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
89
>GtkIconSize</a> icon_size);
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,
94
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
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,
98
78
<div class="refsect1" lang="en">
99
79
<a name="GimpZoomModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
100
80
<pre class="synopsis">
102
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
104
82
+----GimpZoomModel
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"
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"
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
127
95
<div class="refsect1" lang="en">
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,
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>
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,
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>
380
328
Utility function to calculate a new scale factor.</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>
416
362
<p>Default value: "1:1"</p>
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>
425
369
<p>Allowed values: [0.00390625,256]</p>
426
370
<p>Default value: 256</p>
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>
445
385
<p>Default value: "100%"</p>
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>
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,
464
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
465
>gdouble</a> old_factor,
467
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
468
>gdouble</a> new_factor,
470
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
471
>gpointer</a> user_data) : Run Last</pre>
403
gpointer user_data) : Run Last</pre>
473
405
Emitted when the zoom factor of the zoom model changes.</p>