4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>GimpOffsetArea</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
8
8
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
9
9
<link rel="prev" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">
10
<link rel="next" href="GimpPathEditor.html" title="GimpPathEditor">
11
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
10
<link rel="next" href="GimpPageSelector.html" title="GimpPageSelector">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
14
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
15
<link rel="chapter" href="libgimpwidgets-gallery.html" title="Widget Gallery">
15
16
<link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView">
16
17
<link rel="part" href="libgimpwidgets-colordisplay.html" title="Part II. GIMP Display Filters">
17
18
<link rel="part" href="libgimpwidgets-colorselector.html" title="Part III. GIMP Color Selectors">
18
19
<link rel="part" href="libgimpwidgets-controller.html" title="Part IV. GIMP Controllers">
19
20
<link rel="part" href="libgimpwidgets-utils.html" title="Part V. GIMP Widgets Utilities">
20
21
<link rel="part" href="libgimpwidgets-deprecated.html" title="Part VI. Deprecated API">
22
<link rel="index" href="libgimpwidgets-index.html" title="Index">
23
<link rel="index" href="libgimpwidgets-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
24
<link rel="index" href="libgimpwidgets-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
25
<link rel="index" href="libgimpwidgets-index-deprecated.html" title="Index of deprecated symbols">
22
27
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
28
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
31
<td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
27
32
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
28
33
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
29
<td><a accesskey="n" href="GimpPathEditor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
<td><a accesskey="n" href="GimpPageSelector.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
33
<a href="#desc" class="shortcut">Description</a>
35
<a href="#object_hierarchy" class="shortcut">Object Hierarchy</a>
37
<a href="#signal_proto" class="shortcut">Signals</a></nobr></td></tr>
36
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2599762" class="shortcut">Top</a>
38
<a href="#id2609843" class="shortcut">Description</a>
40
<a href="#id2612348" class="shortcut">Object Hierarchy</a>
42
<a href="#id2609796" class="shortcut">Implemented Interfaces</a>
44
<a href="#id2609818" class="shortcut">Signals</a></nobr></td></tr>
39
46
<div class="refentry" lang="en">
40
47
<a name="GimpOffsetArea"></a><div class="titlepage"></div>
41
48
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="top_of_page"></a>GimpOffsetArea</span></h2>
51
<a name="id2599762"></a><span class="refentrytitle">GimpOffsetArea</span>
44
53
<p>GimpOffsetArea — Widget to control image offsets.</p>
46
<td valign="top" align="right"></td>
55
<td valign="top" align="right"><img src="gimp-offset-area.png"></td>
47
56
</tr></table></div>
48
57
<div class="refsynopsisdiv">
49
<a name="synopsis"></a><h2>Synopsis</h2>
50
59
<pre class="synopsis">
54
<a href="GimpOffsetArea.html#GimpOffsetArea-struct">GimpOffsetArea</a>;
55
GtkWidget* <a href="GimpOffsetArea.html#gimp-offset-area-new">gimp_offset_area_new</a> (gint orig_width,
57
void <a href="GimpOffsetArea.html#gimp-offset-area-set-size">gimp_offset_area_set_size</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
60
void <a href="GimpOffsetArea.html#gimp-offset-area-set-offsets">gimp_offset_area_set_offsets</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
63
void <a href="GimpOffsetArea.html#gimp-offset-area-set-pixbuf">gimp_offset_area_set_pixbuf</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
63
<a href="GimpOffsetArea.html#GimpOffsetArea-struct">GimpOffsetArea</a>;
64
GtkWidget* <a href="GimpOffsetArea.html#gimp-offset-area-new">gimp_offset_area_new</a> (gint orig_width,
66
void <a href="GimpOffsetArea.html#gimp-offset-area-set-size">gimp_offset_area_set_size</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
69
void <a href="GimpOffsetArea.html#gimp-offset-area-set-offsets">gimp_offset_area_set_offsets</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
72
void <a href="GimpOffsetArea.html#gimp-offset-area-set-pixbuf">gimp_offset_area_set_pixbuf</a> (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
68
77
<div class="refsect1" lang="en">
69
<a name="object_hierarchy"></a><h2>Object Hierarchy</h2>
78
<a name="id2612348"></a><h2>Object Hierarchy</h2>
70
79
<pre class="synopsis">
80
89
<div class="refsect1" lang="en">
81
<a name="impl_interfaces"></a><h2>Implemented Interfaces</h2>
90
<a name="id2609796"></a><h2>Implemented Interfaces</h2>
83
92
GimpOffsetArea implements
84
93
AtkImplementorIface.</p>
86
95
<div class="refsect1" lang="en">
87
<a name="signal_proto"></a><h2>Signals</h2>
96
<a name="id2609818"></a><h2>Signals</h2>
88
97
<pre class="synopsis">
90
"<a href="GimpOffsetArea.html#GimpOffsetArea-offsets-changed">offsets-changed</a>"
91
void user_function (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *gimpoffsetarea,
94
gpointer user_data) : Run first
99
"<a href="GimpOffsetArea.html#GimpOffsetArea-offsets-changed">offsets-changed</a>" : Run First
97
102
<div class="refsect1" lang="en">
98
<a name="desc"></a><h2>Description</h2>
103
<a name="id2609843"></a><h2>Description</h2>
103
108
<div class="refsect1" lang="en">
104
<a name="details"></a><h2>Details</h2>
109
<a name="id2609858"></a><h2>Details</h2>
105
110
<div class="refsect2" lang="en">
106
<a name="id2564036"></a><h3>
111
<a name="id2609869"></a><h3>
107
112
<a name="GimpOffsetArea-struct"></a>GimpOffsetArea</h3>
108
<a class="indexterm" name="id2564047"></a><pre class="programlisting">typedef struct _GimpOffsetArea GimpOffsetArea;</pre>
113
<a class="indexterm" name="id2609881"></a><pre class="programlisting">typedef struct _GimpOffsetArea GimpOffsetArea;</pre>
114
119
<div class="refsect2" lang="en">
115
<a name="id2564063"></a><h3>
120
<a name="id2609897"></a><h3>
116
121
<a name="gimp-offset-area-new"></a>gimp_offset_area_new ()</h3>
117
<a class="indexterm" name="id2564074"></a><pre class="programlisting">GtkWidget* gimp_offset_area_new (gint orig_width,
118
gint orig_height);</pre>
122
<a class="indexterm" name="id2609908"></a><pre class="programlisting">GtkWidget* gimp_offset_area_new (gint orig_width,
123
gint orig_height);</pre>
120
125
Creates a new <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> widget. A <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> can be used
121
126
when resizing an image or a drawable to allow the user to interactively
127
132
<col align="left" valign="top">
131
<span class="term"><em class="parameter"><code>orig_width</code></em> :</span></td>
135
<td><span class="term"><em class="parameter"><code>orig_width</code></em> :</span></td>
132
136
<td> the original width
137
<span class="term"><em class="parameter"><code>orig_height</code></em> :</span></td>
140
<td><span class="term"><em class="parameter"><code>orig_height</code></em> :</span></td>
138
141
<td> the original height
143
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
145
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
144
146
<td> the new <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a> widget.
151
153
<div class="refsect2" lang="en">
152
<a name="id2567406"></a><h3>
154
<a name="id2611518"></a><h3>
153
155
<a name="gimp-offset-area-set-size"></a>gimp_offset_area_set_size ()</h3>
154
<a class="indexterm" name="id2567417"></a><pre class="programlisting">void gimp_offset_area_set_size (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
156
<a class="indexterm" name="id2611529"></a><pre class="programlisting">void gimp_offset_area_set_size (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
158
160
Sets the size of the image/drawable displayed by the <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
159
If the offsets change as a result of this change, the <code class="literal">offsets_changed</code>
161
If the offsets change as a result of this change, the "offsets-changed"
160
162
signal is emitted.</p>
165
167
<col align="left" valign="top">
169
<span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
170
<td><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
170
171
<td> a <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
175
<span class="term"><em class="parameter"><code>width</code></em> :</span></td>
175
<td><span class="term"><em class="parameter"><code>width</code></em> :</span></td>
176
176
<td> the new width
181
<span class="term"><em class="parameter"><code>height</code></em> :</span></td>
180
<td><span class="term"><em class="parameter"><code>height</code></em> :</span></td>
182
181
<td> the new height
189
188
<div class="refsect2" lang="en">
190
<a name="id2567535"></a><h3>
189
<a name="id2611639"></a><h3>
191
190
<a name="gimp-offset-area-set-offsets"></a>gimp_offset_area_set_offsets ()</h3>
192
<a class="indexterm" name="id2567546"></a><pre class="programlisting">void gimp_offset_area_set_offsets (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
194
gint offset_y);</pre>
191
<a class="indexterm" name="id2611650"></a><pre class="programlisting">void gimp_offset_area_set_offsets (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
193
gint offset_y);</pre>
196
195
Sets the offsets of the image/drawable displayed by the <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
197
It does not emit the <code class="literal">offsets_changed</code> signal.</p>
196
It does not emit the "offsets-changed" signal.</p>
202
201
<col align="left" valign="top">
206
<span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
204
<td><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
207
205
<td> a <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
212
<span class="term"><em class="parameter"><code>offset_x</code></em> :</span></td>
209
<td><span class="term"><em class="parameter"><code>offset_x</code></em> :</span></td>
213
210
<td> the X offset
218
<span class="term"><em class="parameter"><code>offset_y</code></em> :</span></td>
214
<td><span class="term"><em class="parameter"><code>offset_y</code></em> :</span></td>
219
215
<td> the Y offset
226
222
<div class="refsect2" lang="en">
227
<a name="id2569716"></a><h3>
223
<a name="id2610519"></a><h3>
228
224
<a name="gimp-offset-area-set-pixbuf"></a>gimp_offset_area_set_pixbuf ()</h3>
229
<a class="indexterm" name="id2569729"></a><pre class="programlisting">void gimp_offset_area_set_pixbuf (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
230
GdkPixbuf *pixbuf);</pre>
225
<a class="indexterm" name="id2610532"></a><pre class="programlisting">void gimp_offset_area_set_pixbuf (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *offset_area,
226
GdkPixbuf *pixbuf);</pre>
232
228
Sets the pixbuf which represents the original image/drawable which
233
229
is being offset.</p>
238
234
<col align="left" valign="top">
242
<span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
237
<td><span class="term"><em class="parameter"><code>offset_area</code></em> :</span></td>
243
238
<td> a <a href="GimpOffsetArea.html" title="GimpOffsetArea"><span class="type">GimpOffsetArea</span></a>.
248
<span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></td>
242
<td><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></td>
249
243
<td> a <span class="type">GdkPixbuf</span>.
248
<p class="since">Since GIMP 2.2
258
252
<div class="refsect1" lang="en">
259
<a name="signals"></a><h2>Signal Details</h2>
253
<a name="id2610628"></a><h2>Signal Details</h2>
260
254
<div class="refsect2" lang="en">
261
<a name="id2569832"></a><h3>
255
<a name="id2610639"></a><h3>
262
256
<a name="GimpOffsetArea-offsets-changed"></a>The "offsets-changed" signal</h3>
263
<a class="indexterm" name="id2569840"></a><pre class="programlisting">void user_function (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *gimpoffsetarea,
266
gpointer user_data) : Run first</pre>
257
<a class="indexterm" name="id2610646"></a><pre class="programlisting">void user_function (<a href="GimpOffsetArea.html" title="GimpOffsetArea">GimpOffsetArea</a> *gimpoffsetarea,
260
gpointer user_data) : Run First</pre>
271
265
<col align="left" valign="top">
275
<span class="term"><em class="parameter"><code>gimpoffsetarea</code></em> :</span></td>
268
<td><span class="term"><em class="parameter"><code>gimpoffsetarea</code></em> :</span></td>
276
269
<td>the object which received the signal.
281
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
273
<td><span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
287
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
278
<td><span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
294
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
284
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
295
285
<td>user data set when the signal handler was connected.</td>