60
60
enum <a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a>;
61
61
<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);
62
62
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,
64
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
65
69
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,
66
70
<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
68
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);
72
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
75
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
76
>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);
69
77
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,
72
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,
79
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
82
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
83
>gint</a> *denominator);
85
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
86
>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,
73
87
<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
74
GtkIconSize icon_size);
75
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,
89
href="/usr/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
90
>GtkIconSize</a> icon_size);
92
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
93
>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,
95
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
79
99
<div class="refsect1" lang="en">
80
100
<a name="GimpZoomModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
81
101
<pre class="synopsis">
103
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
83
105
+----GimpZoomModel
86
108
<div class="refsect1" lang="en">
87
109
<a name="GimpZoomModel.properties"></a><h2>Properties</h2>
88
110
<pre class="synopsis">
89
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--fraction" title='The "fraction" property'>fraction</a>" gchar* : Read
90
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--maximum" title='The "maximum" property'>maximum</a>" gdouble : Read / Write
91
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--minimum" title='The "minimum" property'>minimum</a>" gdouble : Read / Write
92
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--percentage" title='The "percentage" property'>percentage</a>" gchar* : Read
93
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--value" title='The "value" property'>value</a>" gdouble : Read / Write
111
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--fraction" title='The "fraction" property'>fraction</a>" <a
112
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
114
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--maximum" title='The "maximum" property'>maximum</a>" <a
115
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
116
>gdouble</a> : Read / Write
117
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--minimum" title='The "minimum" property'>minimum</a>" <a
118
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
119
>gdouble</a> : Read / Write
120
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--percentage" title='The "percentage" property'>percentage</a>" <a
121
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
123
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--value" title='The "value" property'>value</a>" <a
124
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
125
>gdouble</a> : Read / Write
96
128
<div class="refsect1" lang="en">
285
329
<div class="refsect2" lang="en">
286
330
<a name="gimp-zoom-button-new"></a><h3>gimp_zoom_button_new ()</h3>
287
<pre class="programlisting">GtkWidget* gimp_zoom_button_new (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
331
<pre class="programlisting"><a
332
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
333
>GtkWidget</a>* gimp_zoom_button_new (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
288
334
<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
289
GtkIconSize icon_size);</pre>
336
href="/usr/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
337
>GtkIconSize</a> icon_size);</pre>
324
372
<div class="refsect2" lang="en">
325
373
<a name="gimp-zoom-model-zoom-step"></a><h3>gimp_zoom_model_zoom_step ()</h3>
326
<pre class="programlisting">gdouble gimp_zoom_model_zoom_step (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
327
gdouble scale);</pre>
374
<pre class="programlisting"><a
375
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
376
>gdouble</a> gimp_zoom_model_zoom_step (<a class="link" href="GimpZoomModel.html#GimpZoomType" title="enum GimpZoomType">GimpZoomType</a> zoom_type,
378
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
379
>gdouble</a> scale);</pre>
329
381
Utility function to calculate a new scale factor.</p>
358
410
<a name="GimpZoomModel.property-details"></a><h2>Property Details</h2>
359
411
<div class="refsect2" lang="en">
360
412
<a name="GimpZoomModel--fraction"></a><h3>The <code class="literal">"fraction"</code> property</h3>
361
<pre class="programlisting"> "fraction" gchar* : Read</pre>
413
<pre class="programlisting"> "fraction" <a
414
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
415
>gchar</a>* : Read</pre>
363
417
<p>Default value: "1:1"</p>
366
420
<div class="refsect2" lang="en">
367
421
<a name="GimpZoomModel--maximum"></a><h3>The <code class="literal">"maximum"</code> property</h3>
368
<pre class="programlisting"> "maximum" gdouble : Read / Write</pre>
422
<pre class="programlisting"> "maximum" <a
423
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
424
>gdouble</a> : Read / Write</pre>
370
426
<p>Allowed values: [0.00390625,256]</p>
371
427
<p>Default value: 256</p>
382
440
<div class="refsect2" lang="en">
383
441
<a name="GimpZoomModel--percentage"></a><h3>The <code class="literal">"percentage"</code> property</h3>
384
<pre class="programlisting"> "percentage" gchar* : Read</pre>
442
<pre class="programlisting"> "percentage" <a
443
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
444
>gchar</a>* : Read</pre>
386
446
<p>Default value: "100%"</p>
389
449
<div class="refsect2" lang="en">
390
450
<a name="GimpZoomModel--value"></a><h3>The <code class="literal">"value"</code> property</h3>
391
<pre class="programlisting"> "value" gdouble : Read / Write</pre>
451
<pre class="programlisting"> "value" <a
452
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
453
>gdouble</a> : Read / Write</pre>
393
455
<p>Allowed values: [0.00390625,256]</p>
394
456
<p>Default value: 1</p>
399
461
<div class="refsect2" lang="en">
400
462
<a name="GimpZoomModel-zoomed"></a><h3>The <code class="literal">"zoomed"</code> signal</h3>
401
463
<pre class="programlisting">void user_function (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
404
gpointer user_data) : Run Last</pre>
465
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
466
>gdouble</a> old_factor,
468
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
469
>gdouble</a> new_factor,
471
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
472
>gpointer</a> user_data) : Run Last</pre>
406
474
Emitted when the zoom factor of the zoom model changes.</p>