42
42
<td valign="top" align="right"><img src="gimp-offset-area.png"></td>
43
43
</tr></table></div>
44
<div class="refsynopsisdiv" title="Synopsis">
44
<div class="refsynopsisdiv">
45
45
<a name="GimpOffsetArea.synopsis"></a><h2>Synopsis</h2>
46
46
<pre class="synopsis"> <a class="link" href="GimpOffsetArea.html#GimpOffsetArea-struct" title="GimpOffsetArea">GimpOffsetArea</a>;
47
<a href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GimpOffsetArea.html#gimp-offset-area-new" title="gimp_offset_area_new ()">gimp_offset_area_new</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_width</code></em>,
48
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_height</code></em>);
47
<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GimpOffsetArea.html#gimp-offset-area-new" title="gimp_offset_area_new ()">gimp_offset_area_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_width</code></em>,
48
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_height</code></em>);
49
49
<span class="returnvalue">void</span> <a class="link" href="GimpOffsetArea.html#gimp-offset-area-set-size" title="gimp_offset_area_set_size ()">gimp_offset_area_set_size</a> (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
50
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
51
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
50
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
51
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
52
52
<span class="returnvalue">void</span> <a class="link" href="GimpOffsetArea.html#gimp-offset-area-set-offsets" title="gimp_offset_area_set_offsets ()">gimp_offset_area_set_offsets</a> (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
53
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_x</code></em>,
54
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_y</code></em>);
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_x</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_y</code></em>);
55
55
<span class="returnvalue">void</span> <a class="link" href="GimpOffsetArea.html#gimp-offset-area-set-pixbuf" title="gimp_offset_area_set_pixbuf ()">gimp_offset_area_set_pixbuf</a> (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
56
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
59
<div class="refsect1" title="Object Hierarchy">
59
<div class="refsect1">
60
60
<a name="GimpOffsetArea.object-hierarchy"></a><h2>Object Hierarchy</h2>
61
61
<pre class="synopsis">
62
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
63
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
64
+----<a href="/usr/share/gtk-doc/html/gtk/GtkObject.html">GtkObject</a>
65
+----<a href="/usr/share/gtk-doc/html/gtk/GtkWidget.html">GtkWidget</a>
66
+----<a href="/usr/share/gtk-doc/html/gtk/GtkDrawingArea.html">GtkDrawingArea</a>
62
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
63
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
64
+----<a href="http://library.gnome.org/devel/gtk3/GtkObject.html">GtkObject</a>
65
+----<a href="http://library.gnome.org/devel/gtk3/GtkWidget.html">GtkWidget</a>
66
+----<a href="http://library.gnome.org/devel/gtk3/GtkDrawingArea.html">GtkDrawingArea</a>
67
67
+----GimpOffsetArea
70
<div class="refsect1" title="Implemented Interfaces">
70
<div class="refsect1">
71
71
<a name="GimpOffsetArea.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
73
73
GimpOffsetArea implements
74
AtkImplementorIface and <a href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
74
AtkImplementorIface and <a href="http://library.gnome.org/devel/gtk3/GtkBuildable.html">GtkBuildable</a>.</p>
76
<div class="refsect1" title="Signals">
76
<div class="refsect1">
77
77
<a name="GimpOffsetArea.signals"></a><h2>Signals</h2>
78
78
<pre class="synopsis">
79
"<a class="link" href="GimpOffsetArea.html#GimpOffsetArea-offsets-changed" title='The "offsets-changed" signal'>offsets-changed</a>" : Run First
79
"<a class="link" href="GimpOffsetArea.html#GimpOffsetArea-offsets-changed" title='The "offsets-changed" signal'>offsets-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
82
<div class="refsect1" title="Description">
82
<div class="refsect1">
83
83
<a name="GimpOffsetArea.description"></a><h2>Description</h2>
87
<div class="refsect1" title="Details">
87
<div class="refsect1">
88
88
<a name="GimpOffsetArea.details"></a><h2>Details</h2>
89
<div class="refsect2" title="GimpOffsetArea">
89
<div class="refsect2">
90
90
<a name="GimpOffsetArea-struct"></a><h3>GimpOffsetArea</h3>
91
91
<pre class="programlisting">typedef struct _GimpOffsetArea GimpOffsetArea;</pre>
96
<div class="refsect2" title="gimp_offset_area_new ()">
96
<div class="refsect2">
97
97
<a name="gimp-offset-area-new"></a><h3>gimp_offset_area_new ()</h3>
98
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_offset_area_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_width</code></em>,
99
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_height</code></em>);</pre>
98
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gimp_offset_area_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_width</code></em>,
99
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> orig_height</code></em>);</pre>
101
101
Creates a new <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> widget. A <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> can be used
102
102
when resizing an image or a drawable to allow the user to interactively
109
109
<td><p><span class="term"><em class="parameter"><code>orig_width</code></em> :</span></p></td>
110
<td>the original width
110
<td>the original width</td>
114
113
<td><p><span class="term"><em class="parameter"><code>orig_height</code></em> :</span></p></td>
115
<td>the original height
114
<td>the original height</td>
119
117
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
120
<td> the new <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> widget.
118
<td>the new <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> widget.</td>
127
<div class="refsect2" title="gimp_offset_area_set_size ()">
124
<div class="refsect2">
128
125
<a name="gimp-offset-area-set-size"></a><h3>gimp_offset_area_set_size ()</h3>
129
126
<pre class="programlisting"><span class="returnvalue">void</span> gimp_offset_area_set_size (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
130
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
131
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
127
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
128
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
133
130
Sets the size of the image/drawable displayed by the <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
134
131
If the offsets change as a result of this change, the "offsets-changed"
141
138
<td><p><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></p></td>
142
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
139
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.</td>
146
142
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
143
<td>the new width</td>
151
146
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
147
<td>the new height</td>
159
<div class="refsect2" title="gimp_offset_area_set_offsets ()">
153
<div class="refsect2">
160
154
<a name="gimp-offset-area-set-offsets"></a><h3>gimp_offset_area_set_offsets ()</h3>
161
155
<pre class="programlisting"><span class="returnvalue">void</span> gimp_offset_area_set_offsets (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
162
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_x</code></em>,
163
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_y</code></em>);</pre>
156
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_x</code></em>,
157
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> offset_y</code></em>);</pre>
165
159
Sets the offsets of the image/drawable displayed by the <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
166
160
It does not emit the "offsets-changed" signal.
172
166
<td><p><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></p></td>
173
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
167
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.</td>
177
170
<td><p><span class="term"><em class="parameter"><code>offset_x</code></em> :</span></p></td>
171
<td>the X offset</td>
182
174
<td><p><span class="term"><em class="parameter"><code>offset_y</code></em> :</span></p></td>
175
<td>the Y offset</td>
190
<div class="refsect2" title="gimp_offset_area_set_pixbuf ()">
181
<div class="refsect2">
191
182
<a name="gimp-offset-area-set-pixbuf"></a><h3>gimp_offset_area_set_pixbuf ()</h3>
192
183
<pre class="programlisting"><span class="returnvalue">void</span> gimp_offset_area_set_pixbuf (<em class="parameter"><code><a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *offset_area</code></em>,
193
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
184
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
195
186
Sets the pixbuf which represents the original image/drawable which
202
193
<td><p><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></p></td>
203
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
194
<td>a <a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.</td>
207
197
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
208
<td>a <a href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
198
<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
213
202
<p class="since">Since GIMP 2.2</p>
216
<div class="refsect1" title="Signal Details">
205
<div class="refsect1">
217
206
<a name="GimpOffsetArea.signal-details"></a><h2>Signal Details</h2>
218
<div class="refsect2" title='The "offsets-changed" signal'>
207
<div class="refsect2">
219
208
<a name="GimpOffsetArea-offsets-changed"></a><h3>The <code class="literal">"offsets-changed"</code> signal</h3>
220
209
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> *gimpoffsetarea,
221
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> arg1,
222
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> arg2,
223
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run First</pre>
210
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> arg1,
211
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> arg2,
212
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
226
215
<div class="variablelist"><table border="0">