Imported Upstream version 2.4.0~rc2
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>GimpZoomModel</title>
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
|
||||
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
|
||||
<link rel="prev" href="GimpUnitMenu.html" title="GimpUnitMenu">
|
||||
@ -33,22 +33,22 @@
|
||||
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
|
||||
<td><a accesskey="n" href="libgimpwidgets-cell-renderers.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||||
</tr>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2585221" class="shortcut">Top</a>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2579767" class="shortcut">Top</a>
|
||||
 | 
|
||||
<a href="#id2641333" class="shortcut">Description</a>
|
||||
<a href="#id2651306" class="shortcut">Description</a>
|
||||
 | 
|
||||
<a href="#id2636444" class="shortcut">Object Hierarchy</a>
|
||||
<a href="#id2651182" class="shortcut">Object Hierarchy</a>
|
||||
 | 
|
||||
<a href="#id2636468" class="shortcut">Properties</a>
|
||||
<a href="#id2651206" class="shortcut">Properties</a>
|
||||
 | 
|
||||
<a href="#id2641308" class="shortcut">Signals</a></nobr></td></tr>
|
||||
<a href="#id2651282" class="shortcut">Signals</a></nobr></td></tr>
|
||||
</table>
|
||||
<div class="refentry" lang="en">
|
||||
<a name="GimpZoomModel"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2>
|
||||
<a name="id2585221"></a><span class="refentrytitle">GimpZoomModel</span>
|
||||
<a name="id2579767"></a><span class="refentrytitle">GimpZoomModel</span>
|
||||
</h2>
|
||||
<p>GimpZoomModel</p>
|
||||
</td>
|
||||
@ -60,106 +60,74 @@
|
||||
|
||||
|
||||
|
||||
<a href="GimpZoomModel.html#GimpZoomModel-struct">GimpZoomModel</a>;
|
||||
enum <a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a>;
|
||||
<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a>* <a href="GimpZoomModel.html#gimp-zoom-model-new">gimp_zoom_model_new</a> (void);
|
||||
void <a href="GimpZoomModel.html#gimp-zoom-model-set-range">gimp_zoom_model_set_range</a> (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> min,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> max);
|
||||
void <a href="GimpZoomModel.html#gimp-zoom-model-zoom">gimp_zoom_model_zoom</a> (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> scale);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> <a href="GimpZoomModel.html#gimp-zoom-model-get-factor">gimp_zoom_model_get_factor</a> (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);
|
||||
void <a href="GimpZoomModel.html#gimp-zoom-model-get-fraction">gimp_zoom_model_get_fraction</a> (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *numerator,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *denominator);
|
||||
<a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* <a href="GimpZoomModel.html#gimp-zoom-button-new">gimp_zoom_button_new</a> (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
|
||||
>GtkIconSize</a> icon_size);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> <a href="GimpZoomModel.html#gimp-zoom-model-zoom-step">gimp_zoom_model_zoom_step</a> (<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> scale);
|
||||
<a class="link" href="GimpZoomModel.html#GimpZoomModel-struct">GimpZoomModel</a>;
|
||||
enum <a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a>;
|
||||
<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a>* <a class="link" href="GimpZoomModel.html#gimp-zoom-model-new">gimp_zoom_model_new</a> (void);
|
||||
void <a class="link" href="GimpZoomModel.html#gimp-zoom-model-set-range">gimp_zoom_model_set_range</a> (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
gdouble min,
|
||||
gdouble max);
|
||||
void <a class="link" href="GimpZoomModel.html#gimp-zoom-model-zoom">gimp_zoom_model_zoom</a> (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
gdouble scale);
|
||||
gdouble <a class="link" href="GimpZoomModel.html#gimp-zoom-model-get-factor">gimp_zoom_model_get_factor</a> (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);
|
||||
void <a class="link" href="GimpZoomModel.html#gimp-zoom-model-get-fraction">gimp_zoom_model_get_fraction</a> (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
gint *numerator,
|
||||
gint *denominator);
|
||||
GtkWidget* <a class="link" href="GimpZoomModel.html#gimp-zoom-button-new">gimp_zoom_button_new</a> (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
GtkIconSize icon_size);
|
||||
gdouble <a class="link" href="GimpZoomModel.html#gimp-zoom-model-zoom-step">gimp_zoom_model_zoom_step</a> (<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
gdouble scale);
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2636444"></a><h2>Object Hierarchy</h2>
|
||||
<a name="id2651182"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="synopsis">
|
||||
|
||||
<a
|
||||
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
|
||||
>GObject</a>
|
||||
GObject
|
||||
+----GimpZoomModel
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2636468"></a><h2>Properties</h2>
|
||||
<a name="id2651206"></a><h2>Properties</h2>
|
||||
<pre class="synopsis">
|
||||
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel--fraction">fraction</a>" <a
|
||||
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
|
||||
>gchararray</a> : Read
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel--maximum">maximum</a>" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel--minimum">minimum</a>" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel--percentage">percentage</a>" <a
|
||||
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
|
||||
>gchararray</a> : Read
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel--value">value</a>" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--fraction">fraction</a>" gchararray : Read
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--maximum">maximum</a>" gdouble : Read / Write
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--minimum">minimum</a>" gdouble : Read / Write
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--percentage">percentage</a>" gchararray : Read
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel--value">value</a>" gdouble : Read / Write
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2641308"></a><h2>Signals</h2>
|
||||
<a name="id2651282"></a><h2>Signals</h2>
|
||||
<pre class="synopsis">
|
||||
|
||||
"<a href="GimpZoomModel.html#GimpZoomModel-zoomed">zoomed</a>" : Run Last
|
||||
"<a class="link" href="GimpZoomModel.html#GimpZoomModel-zoomed">zoomed</a>" : Run Last
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2641333"></a><h2>Description</h2>
|
||||
<a name="id2651306"></a><h2>Description</h2>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2641349"></a><h2>Details</h2>
|
||||
<a name="id2658613"></a><h2>Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2641360"></a><h3>
|
||||
<a name="id2658624"></a><h3>
|
||||
<a name="GimpZoomModel-struct"></a>GimpZoomModel</h3>
|
||||
<a class="indexterm" name="id2641371"></a><pre class="programlisting">typedef struct _GimpZoomModel GimpZoomModel;</pre>
|
||||
<a class="indexterm" name="id2658635"></a><pre class="programlisting">typedef struct _GimpZoomModel GimpZoomModel;</pre>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2641388"></a><h3>
|
||||
<a name="id2658652"></a><h3>
|
||||
<a name="GimpZoomType"></a>enum GimpZoomType</h3>
|
||||
<a class="indexterm" name="id2641400"></a><pre class="programlisting">typedef enum
|
||||
<a class="indexterm" name="id2658664"></a><pre class="programlisting">typedef enum
|
||||
{
|
||||
GIMP_ZOOM_IN, /*< desc="Zoom in" >*/
|
||||
GIMP_ZOOM_OUT, /*< desc="Zoom out" >*/
|
||||
@ -176,19 +144,19 @@ href="../glib/glib-Basic-Types.html#gdouble"
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2641421"></a><h3>
|
||||
<a name="id2658685"></a><h3>
|
||||
<a name="gimp-zoom-model-new"></a>gimp_zoom_model_new ()</h3>
|
||||
<a class="indexterm" name="id2641433"></a><pre class="programlisting"><a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a>* gimp_zoom_model_new (void);</pre>
|
||||
<a class="indexterm" name="id2658697"></a><pre class="programlisting"><a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a>* gimp_zoom_model_new (void);</pre>
|
||||
<p>
|
||||
Creates a new <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>.</p>
|
||||
Creates a new <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody><tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> a new <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>.
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td> a new <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>.
|
||||
|
||||
Since GIMP 2.4
|
||||
</td>
|
||||
@ -197,15 +165,11 @@ Since GIMP 2.4
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2641488"></a><h3>
|
||||
<a name="id2658752"></a><h3>
|
||||
<a name="gimp-zoom-model-set-range"></a>gimp_zoom_model_set_range ()</h3>
|
||||
<a class="indexterm" name="id2641499"></a><pre class="programlisting">void gimp_zoom_model_set_range (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> min,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> max);</pre>
|
||||
<a class="indexterm" name="id2658763"></a><pre class="programlisting">void gimp_zoom_model_set_range (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
gdouble min,
|
||||
gdouble max);</pre>
|
||||
<p>
|
||||
Sets the allowed range of the <em class="parameter"><code>model</code></em>.
|
||||
</p>
|
||||
@ -218,17 +182,17 @@ Since GIMP 2.4</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td> a <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> a <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>min</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>min</code></em> :</span></p></td>
|
||||
<td> new lower limit for zoom factor
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>max</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
|
||||
<td> new upper limit for zoom factor
|
||||
</td>
|
||||
</tr>
|
||||
@ -237,13 +201,11 @@ Since GIMP 2.4</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2631649"></a><h3>
|
||||
<a name="id2645505"></a><h3>
|
||||
<a name="gimp-zoom-model-zoom"></a>gimp_zoom_model_zoom ()</h3>
|
||||
<a class="indexterm" name="id2631661"></a><pre class="programlisting">void gimp_zoom_model_zoom (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> scale);</pre>
|
||||
<a class="indexterm" name="id2645516"></a><pre class="programlisting">void gimp_zoom_model_zoom (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
gdouble scale);</pre>
|
||||
<p>
|
||||
Since GIMP 2.4</p>
|
||||
<p>
|
||||
@ -253,17 +215,17 @@ Since GIMP 2.4</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td> a <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> a <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></td>
|
||||
<td> the <a href="GimpZoomModel.html#GimpZoomType"><span class="type">GimpZoomType</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></p></td>
|
||||
<td> the <a class="link" href="GimpZoomModel.html#GimpZoomType"><span class="type">GimpZoomType</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>scale</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
|
||||
<td> ignored unless <em class="parameter"><code>zoom_type</code></em> == <code class="literal">GIMP_ZOOM_TO</code>
|
||||
</td>
|
||||
</tr>
|
||||
@ -272,11 +234,9 @@ Since GIMP 2.4</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2631783"></a><h3>
|
||||
<a name="id2645638"></a><h3>
|
||||
<a name="gimp-zoom-model-get-factor"></a>gimp_zoom_model_get_factor ()</h3>
|
||||
<a class="indexterm" name="id2631794"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> gimp_zoom_model_get_factor (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);</pre>
|
||||
<a class="indexterm" name="id2645650"></a><pre class="programlisting">gdouble gimp_zoom_model_get_factor (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model);</pre>
|
||||
<p>
|
||||
Retrieves the current zoom factor of <em class="parameter"><code>model</code></em>.</p>
|
||||
<p>
|
||||
@ -286,12 +246,12 @@ Retrieves the current zoom factor of <em class="parameter"><code>model</code></e
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td> a <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> a <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td> the current scale factor
|
||||
|
||||
Since GIMP 2.4
|
||||
@ -302,15 +262,11 @@ Since GIMP 2.4
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2631868"></a><h3>
|
||||
<a name="id2645723"></a><h3>
|
||||
<a name="gimp-zoom-model-get-fraction"></a>gimp_zoom_model_get_fraction ()</h3>
|
||||
<a class="indexterm" name="id2631879"></a><pre class="programlisting">void gimp_zoom_model_get_fraction (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *numerator,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *denominator);</pre>
|
||||
<a class="indexterm" name="id2645734"></a><pre class="programlisting">void gimp_zoom_model_get_fraction (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
gint *numerator,
|
||||
gint *denominator);</pre>
|
||||
<p>
|
||||
Retrieves the current zoom factor of <em class="parameter"><code>model</code></em> as a fraction.
|
||||
</p>
|
||||
@ -323,17 +279,17 @@ Since GIMP 2.4</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td> a <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> a <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>numerator</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>numerator</code></em> :</span></p></td>
|
||||
<td> return location for numerator
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>denominator</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>denominator</code></em> :</span></p></td>
|
||||
<td> return location for denominator
|
||||
</td>
|
||||
</tr>
|
||||
@ -342,15 +298,11 @@ Since GIMP 2.4</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634300"></a><h3>
|
||||
<a name="id2652627"></a><h3>
|
||||
<a name="gimp-zoom-button-new"></a>gimp_zoom_button_new ()</h3>
|
||||
<a class="indexterm" name="id2634310"></a><pre class="programlisting"><a
|
||||
href="../gtk/GtkWidget.html"
|
||||
>GtkWidget</a>* gimp_zoom_button_new (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
|
||||
>GtkIconSize</a> icon_size);</pre>
|
||||
<a class="indexterm" name="id2652638"></a><pre class="programlisting">GtkWidget* gimp_zoom_button_new (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
GtkIconSize icon_size);</pre>
|
||||
<p>
|
||||
</p>
|
||||
<p>
|
||||
@ -360,22 +312,22 @@ href="../gtk/gtk-Themeable-Stock-Images.html#GtkIconSize"
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td> a <a href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> a <a class="link" href="GimpZoomModel.html" title="GimpZoomModel"><span class="type">GimpZoomModel</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></p></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>icon_size</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>icon_size</code></em> :</span></p></td>
|
||||
<td> use 0 for a button with text labels
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td> a newly created GtkButton
|
||||
|
||||
Since GIMP 2.4
|
||||
@ -386,14 +338,10 @@ Since GIMP 2.4
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634420"></a><h3>
|
||||
<a name="id2652748"></a><h3>
|
||||
<a name="gimp-zoom-model-zoom-step"></a>gimp_zoom_model_zoom_step ()</h3>
|
||||
<a class="indexterm" name="id2634432"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> gimp_zoom_model_zoom_step (<a href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> scale);</pre>
|
||||
<a class="indexterm" name="id2652759"></a><pre class="programlisting">gdouble gimp_zoom_model_zoom_step (<a class="link" href="GimpZoomModel.html#GimpZoomType">GimpZoomType</a> zoom_type,
|
||||
gdouble scale);</pre>
|
||||
<p>
|
||||
Utility function to calculate a new scale factor.</p>
|
||||
<p>
|
||||
@ -403,17 +351,17 @@ Utility function to calculate a new scale factor.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>zoom_type</code></em> :</span></p></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>scale</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
|
||||
<td> ignored unless <em class="parameter"><code>zoom_type</code></em> == <code class="literal">GIMP_ZOOM_TO</code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td> the new scale factor
|
||||
|
||||
Since GIMP 2.4
|
||||
@ -424,75 +372,59 @@ Since GIMP 2.4
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2634531"></a><h2>Property Details</h2>
|
||||
<a name="id2652858"></a><h2>Property Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634542"></a><h3>
|
||||
<a name="id2652869"></a><h3>
|
||||
<a name="GimpZoomModel--fraction"></a>The "<code class="literal">fraction</code>" property</h3>
|
||||
<a class="indexterm" name="id2634556"></a><pre class="programlisting"> "fraction" <a
|
||||
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
|
||||
>gchararray</a> : Read</pre>
|
||||
<a class="indexterm" name="id2652883"></a><pre class="programlisting"> "fraction" gchararray : Read</pre>
|
||||
<p></p>
|
||||
<p>Default value: "1:1"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634579"></a><h3>
|
||||
<a name="id2652906"></a><h3>
|
||||
<a name="GimpZoomModel--maximum"></a>The "<code class="literal">maximum</code>" property</h3>
|
||||
<a class="indexterm" name="id2634593"></a><pre class="programlisting"> "maximum" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write</pre>
|
||||
<a class="indexterm" name="id2652920"></a><pre class="programlisting"> "maximum" gdouble : Read / Write</pre>
|
||||
<p></p>
|
||||
<p>Allowed values: [0.00390625,256]</p>
|
||||
<p>Default value: 256</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634620"></a><h3>
|
||||
<a name="id2652947"></a><h3>
|
||||
<a name="GimpZoomModel--minimum"></a>The "<code class="literal">minimum</code>" property</h3>
|
||||
<a class="indexterm" name="id2634634"></a><pre class="programlisting"> "minimum" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write</pre>
|
||||
<a class="indexterm" name="id2652960"></a><pre class="programlisting"> "minimum" gdouble : Read / Write</pre>
|
||||
<p></p>
|
||||
<p>Allowed values: [0.00390625,256]</p>
|
||||
<p>Default value: 0.00390625</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634660"></a><h3>
|
||||
<a name="id2652988"></a><h3>
|
||||
<a name="GimpZoomModel--percentage"></a>The "<code class="literal">percentage</code>" property</h3>
|
||||
<a class="indexterm" name="id2634674"></a><pre class="programlisting"> "percentage" <a
|
||||
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
|
||||
>gchararray</a> : Read</pre>
|
||||
<a class="indexterm" name="id2653001"></a><pre class="programlisting"> "percentage" gchararray : Read</pre>
|
||||
<p></p>
|
||||
<p>Default value: "100%"</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634697"></a><h3>
|
||||
<a name="id2653025"></a><h3>
|
||||
<a name="GimpZoomModel--value"></a>The "<code class="literal">value</code>" property</h3>
|
||||
<a class="indexterm" name="id2634711"></a><pre class="programlisting"> "value" <a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> : Read / Write</pre>
|
||||
<a class="indexterm" name="id2653039"></a><pre class="programlisting"> "value" gdouble : Read / Write</pre>
|
||||
<p></p>
|
||||
<p>Allowed values: [0.00390625,256]</p>
|
||||
<p>Default value: 1</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2634740"></a><h2>Signal Details</h2>
|
||||
<a name="id2653070"></a><h2>Signal Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2634750"></a><h3>
|
||||
<a name="id2653081"></a><h3>
|
||||
<a name="GimpZoomModel-zoomed"></a>The "zoomed" signal</h3>
|
||||
<a class="indexterm" name="id2634758"></a><pre class="programlisting">void user_function (<a href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> old_factor,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> new_factor,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gpointer"
|
||||
>gpointer</a> user_data) : Run Last</pre>
|
||||
<a class="indexterm" name="id2653089"></a><pre class="programlisting">void user_function (<a class="link" href="GimpZoomModel.html" title="GimpZoomModel">GimpZoomModel</a> *model,
|
||||
gdouble old_factor,
|
||||
gdouble new_factor,
|
||||
gpointer user_data) : Run Last</pre>
|
||||
<p>
|
||||
Emitted when the zoom factor of the zoom model changes.</p>
|
||||
<p>
|
||||
@ -502,22 +434,22 @@ Emitted when the zoom factor of the zoom model changes.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>model</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
|
||||
<td> the object that received the signal
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>old_factor</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>old_factor</code></em> :</span></p></td>
|
||||
<td> the zoom factor before it changes
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>new_factor</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>new_factor</code></em> :</span></p></td>
|
||||
<td> the zoom factor after it has changed.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
|
||||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||||
<td>user data set when the signal handler was connected.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user