~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/GimpZoomPreview.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
5
<title>GimpZoomPreview</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
 
8
<link rel="up" href="libgimpui.html" title="Part&#160;II.&#160;GIMP User Interface Library">
 
9
<link rel="prev" href="GimpAspectPreview.html" title="GimpAspectPreview">
 
10
<link rel="next" href="libgimp-GimpItemComboBox.html" title="GimpItemComboBox">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="part" href="libgimp.html" title="Part&#160;I.&#160;GIMP Library">
 
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
 
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
 
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
 
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
 
18
<link rel="part" href="libgimpui.html" title="Part&#160;II.&#160;GIMP User Interface Library">
 
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
 
20
<link rel="index" href="libgimp-index.html" title="Index">
 
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
 
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
 
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
 
24
</head>
 
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
27
<tr valign="middle">
 
28
<td><a accesskey="p" href="GimpAspectPreview.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
29
<td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
 
32
<td><a accesskey="n" href="libgimp-GimpItemComboBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
33
</tr>
 
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2559171" class="shortcut">Top</a>
 
35
                  &#160;|&#160;
 
36
                  <a href="#id2710636" class="shortcut">Description</a>
 
37
                  &#160;|&#160;
 
38
                  <a href="#id2712943" class="shortcut">Object Hierarchy</a>
 
39
                  &#160;|&#160;
 
40
                  <a href="#id2710573" class="shortcut">Implemented Interfaces</a>
 
41
                  &#160;|&#160;
 
42
                  <a href="#id2710594" class="shortcut">Properties</a></nobr></td></tr>
 
43
</table>
 
44
<div class="refentry" lang="en">
 
45
<a name="GimpZoomPreview"></a><div class="titlepage"></div>
 
46
<div class="refnamediv"><table width="100%"><tr>
 
47
<td valign="top">
 
48
<h2>
 
49
<a name="id2559171"></a><span class="refentrytitle">GimpZoomPreview</span>
 
50
</h2>
 
51
<p>GimpZoomPreview</p>
 
52
</td>
 
53
<td valign="top" align="right"></td>
 
54
</tr></table></div>
 
55
<div class="refsynopsisdiv">
 
56
<h2>Synopsis</h2>
 
57
<pre class="synopsis">
 
58
 
 
59
 
 
60
 
 
61
                    <a href="GimpZoomPreview.html#GimpZoomPreview-struct">GimpZoomPreview</a>;
 
62
GtkWidget*          <a href="GimpZoomPreview.html#gimp-zoom-preview-new">gimp_zoom_preview_new</a>               (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);
 
63
GtkWidget*          <a href="GimpZoomPreview.html#gimp-zoom-preview-new-with-model">gimp_zoom_preview_new_with_model</a>    (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
 
64
                                                         GimpZoomModel *model);
 
65
guchar*             <a href="GimpZoomPreview.html#gimp-zoom-preview-get-source">gimp_zoom_preview_get_source</a>        (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview,
 
66
                                                         gint *width,
 
67
                                                         gint *height,
 
68
                                                         gint *bpp);
 
69
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>*       <a href="GimpZoomPreview.html#gimp-zoom-preview-get-drawable">gimp_zoom_preview_get_drawable</a>      (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);
 
70
gdouble             <a href="GimpZoomPreview.html#gimp-zoom-preview-get-factor">gimp_zoom_preview_get_factor</a>        (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);
 
71
GimpZoomModel*      <a href="GimpZoomPreview.html#gimp-zoom-preview-get-model">gimp_zoom_preview_get_model</a>         (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);
 
72
 
 
73
</pre>
 
74
</div>
 
75
<div class="refsect1" lang="en">
 
76
<a name="id2712943"></a><h2>Object Hierarchy</h2>
 
77
<pre class="synopsis">
 
78
 
 
79
  GObject
 
80
   +----GInitiallyUnowned
 
81
         +----GtkObject
 
82
               +----GtkWidget
 
83
                     +----GtkContainer
 
84
                           +----GtkBox
 
85
                                 +----GtkVBox
 
86
                                       +----<a
 
87
href="../libgimpwidgets/GimpPreview.html"
 
88
>GimpPreview</a>
 
89
                                             +----<a
 
90
href="../libgimpwidgets/GimpScrolledPreview.html"
 
91
>GimpScrolledPreview</a>
 
92
                                                   +----GimpZoomPreview
 
93
</pre>
 
94
</div>
 
95
<div class="refsect1" lang="en">
 
96
<a name="id2710573"></a><h2>Implemented Interfaces</h2>
 
97
<p>
 
98
GimpZoomPreview implements
 
99
 AtkImplementorIface.</p>
 
100
</div>
 
101
<div class="refsect1" lang="en">
 
102
<a name="id2710594"></a><h2>Properties</h2>
 
103
<pre class="synopsis">
 
104
 
 
105
  "<a href="GimpZoomPreview.html#GimpZoomPreview--drawable">drawable</a>"                 gpointer              : Read / Write / Construct Only
 
106
  "<a href="GimpZoomPreview.html#GimpZoomPreview--model">model</a>"                    GimpZoomModel         : Read / Write / Construct Only
 
107
</pre>
 
108
</div>
 
109
<div class="refsect1" lang="en">
 
110
<a name="id2710636"></a><h2>Description</h2>
 
111
<p>
 
112
 
 
113
</p>
 
114
</div>
 
115
<div class="refsect1" lang="en">
 
116
<a name="id2710652"></a><h2>Details</h2>
 
117
<div class="refsect2" lang="en">
 
118
<a name="id2710663"></a><h3>
 
119
<a name="GimpZoomPreview-struct"></a>GimpZoomPreview</h3>
 
120
<a class="indexterm" name="id2710674"></a><pre class="programlisting">typedef struct _GimpZoomPreview GimpZoomPreview;</pre>
 
121
<p>
 
122
 
 
123
</p>
 
124
</div>
 
125
<hr>
 
126
<div class="refsect2" lang="en">
 
127
<a name="id2710691"></a><h3>
 
128
<a name="gimp-zoom-preview-new"></a>gimp_zoom_preview_new ()</h3>
 
129
<a class="indexterm" name="id2710704"></a><pre class="programlisting">GtkWidget*          gimp_zoom_preview_new               (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);</pre>
 
130
<p>
 
131
Creates a new <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget for <em class="parameter"><code>drawable</code></em>.</p>
 
132
<p>
 
133
 
 
134
</p>
 
135
<div class="variablelist"><table border="0">
 
136
<col align="left" valign="top">
 
137
<tbody>
 
138
<tr>
 
139
<td><span class="term"><em class="parameter"><code>drawable</code></em>&#160;:</span></td>
 
140
<td> a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>
 
141
</td>
 
142
</tr>
 
143
<tr>
 
144
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
145
<td>
 
146
 
 
147
 
 
148
</td>
 
149
</tr>
 
150
</tbody>
 
151
</table></div>
 
152
<p class="since">Since  GIMP 2.4
 
153
</p>
 
154
</div>
 
155
<hr>
 
156
<div class="refsect2" lang="en">
 
157
<a name="id2715380"></a><h3>
 
158
<a name="gimp-zoom-preview-new-with-model"></a>gimp_zoom_preview_new_with_model ()</h3>
 
159
<a class="indexterm" name="id2715394"></a><pre class="programlisting">GtkWidget*          gimp_zoom_preview_new_with_model    (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
 
160
                                                         GimpZoomModel *model);</pre>
 
161
<p>
 
162
Creates a new <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget for <em class="parameter"><code>drawable</code></em> using the
 
163
given <em class="parameter"><code>model</code></em>.
 
164
</p>
 
165
<p>
 
166
This variant of <a href="GimpZoomPreview.html#gimp-zoom-preview-new"><code class="function">gimp_zoom_preview_new()</code></a> allows you to create a
 
167
preview using an existing zoom model. This may be useful if for
 
168
example you want to have two zoom previews that keep their zoom
 
169
factor in sync.</p>
 
170
<p>
 
171
 
 
172
</p>
 
173
<div class="variablelist"><table border="0">
 
174
<col align="left" valign="top">
 
175
<tbody>
 
176
<tr>
 
177
<td><span class="term"><em class="parameter"><code>drawable</code></em>&#160;:</span></td>
 
178
<td> a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>
 
179
</td>
 
180
</tr>
 
181
<tr>
 
182
<td><span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
 
183
<td>    a <span class="type">GimpZoomModel</span>
 
184
</td>
 
185
</tr>
 
186
<tr>
 
187
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
188
<td>
 
189
 
 
190
 
 
191
</td>
 
192
</tr>
 
193
</tbody>
 
194
</table></div>
 
195
<p class="since">Since  GIMP 2.4
 
196
</p>
 
197
</div>
 
198
<hr>
 
199
<div class="refsect2" lang="en">
 
200
<a name="id2715532"></a><h3>
 
201
<a name="gimp-zoom-preview-get-source"></a>gimp_zoom_preview_get_source ()</h3>
 
202
<a class="indexterm" name="id2715546"></a><pre class="programlisting">guchar*             gimp_zoom_preview_get_source        (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview,
 
203
                                                         gint *width,
 
204
                                                         gint *height,
 
205
                                                         gint *bpp);</pre>
 
206
<p>
 
207
Returns the scaled image data of the part of the drawable the
 
208
<a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> is currently showing, as a newly allocated array of guchar.
 
209
This function also allow to get the current width, height and bpp of the
 
210
<a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a>.</p>
 
211
<p>
 
212
 
 
213
</p>
 
214
<div class="variablelist"><table border="0">
 
215
<col align="left" valign="top">
 
216
<tbody>
 
217
<tr>
 
218
<td><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></td>
 
219
<td> a <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget
 
220
</td>
 
221
</tr>
 
222
<tr>
 
223
<td><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
 
224
<td> a pointer to an int where the current width of the zoom widget
 
225
        will be put.
 
226
</td>
 
227
</tr>
 
228
<tr>
 
229
<td><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
 
230
<td> a pointer to an int where the current width of the zoom widget
 
231
         will be put.
 
232
</td>
 
233
</tr>
 
234
<tr>
 
235
<td><span class="term"><em class="parameter"><code>bpp</code></em>&#160;:</span></td>
 
236
<td> return location for the number of bytes per pixel
 
237
</td>
 
238
</tr>
 
239
<tr>
 
240
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
241
<td> newly allocated data that should be released using <code class="function">g_free()</code>
 
242
              when it is not any longer needed
 
243
 
 
244
</td>
 
245
</tr>
 
246
</tbody>
 
247
</table></div>
 
248
<p class="since">Since  GIMP 2.4
 
249
</p>
 
250
</div>
 
251
<hr>
 
252
<div class="refsect2" lang="en">
 
253
<a name="id2712034"></a><h3>
 
254
<a name="gimp-zoom-preview-get-drawable"></a>gimp_zoom_preview_get_drawable ()</h3>
 
255
<a class="indexterm" name="id2712047"></a><pre class="programlisting"><a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>*       gimp_zoom_preview_get_drawable      (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);</pre>
 
256
<p>
 
257
Returns the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> the <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> is attached to.</p>
 
258
<p>
 
259
 
 
260
</p>
 
261
<div class="variablelist"><table border="0">
 
262
<col align="left" valign="top">
 
263
<tbody>
 
264
<tr>
 
265
<td><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></td>
 
266
<td> a <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget
 
267
</td>
 
268
</tr>
 
269
<tr>
 
270
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
271
<td> the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> that was passed to <a href="GimpZoomPreview.html#gimp-zoom-preview-new"><code class="function">gimp_zoom_preview_new()</code></a>.
 
272
 
 
273
</td>
 
274
</tr>
 
275
</tbody>
 
276
</table></div>
 
277
<p class="since">Since  GIMP 2.4
 
278
</p>
 
279
</div>
 
280
<hr>
 
281
<div class="refsect2" lang="en">
 
282
<a name="id2716592"></a><h3>
 
283
<a name="gimp-zoom-preview-get-factor"></a>gimp_zoom_preview_get_factor ()</h3>
 
284
<a class="indexterm" name="id2716605"></a><pre class="programlisting">gdouble             gimp_zoom_preview_get_factor        (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);</pre>
 
285
<p>
 
286
Returns the zoom factor the preview is currently using.</p>
 
287
<p>
 
288
 
 
289
</p>
 
290
<div class="variablelist"><table border="0">
 
291
<col align="left" valign="top">
 
292
<tbody>
 
293
<tr>
 
294
<td><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></td>
 
295
<td> a <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget
 
296
</td>
 
297
</tr>
 
298
<tr>
 
299
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
300
<td> the current zoom factor
 
301
 
 
302
</td>
 
303
</tr>
 
304
</tbody>
 
305
</table></div>
 
306
<p class="since">Since  GIMP 2.4
 
307
</p>
 
308
</div>
 
309
<hr>
 
310
<div class="refsect2" lang="en">
 
311
<a name="id2716672"></a><h3>
 
312
<a name="gimp-zoom-preview-get-model"></a>gimp_zoom_preview_get_model ()</h3>
 
313
<a class="indexterm" name="id2716684"></a><pre class="programlisting">GimpZoomModel*      gimp_zoom_preview_get_model         (<a href="GimpZoomPreview.html" title="GimpZoomPreview">GimpZoomPreview</a> *preview);</pre>
 
314
<p>
 
315
Returns the <span class="type">GimpZoomModel</span> the preview is using.</p>
 
316
<p>
 
317
 
 
318
</p>
 
319
<div class="variablelist"><table border="0">
 
320
<col align="left" valign="top">
 
321
<tbody>
 
322
<tr>
 
323
<td><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></td>
 
324
<td> a <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> widget
 
325
</td>
 
326
</tr>
 
327
<tr>
 
328
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
329
<td> a pointer to the <span class="type">GimpZoomModel</span> owned by the <em class="parameter"><code>preview</code></em>
 
330
 
 
331
</td>
 
332
</tr>
 
333
</tbody>
 
334
</table></div>
 
335
<p class="since">Since  GIMP 2.4
 
336
</p>
 
337
</div>
 
338
</div>
 
339
<div class="refsect1" lang="en">
 
340
<a name="id2716769"></a><h2>Property Details</h2>
 
341
<div class="refsect2" lang="en">
 
342
<a name="id2716778"></a><h3>
 
343
<a name="GimpZoomPreview--drawable"></a>The "<code class="literal">drawable</code>" property</h3>
 
344
<a class="indexterm" name="id2716790"></a><pre class="programlisting">  "drawable"                 gpointer              : Read / Write / Construct Only</pre>
 
345
<p>
 
346
The drawable the <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a> is attached to.</p>
 
347
<p>
 
348
 
 
349
</p>
 
350
<p>Since  GIMP 2.4
 
351
</p>
 
352
</div>
 
353
<hr>
 
354
<div class="refsect2" lang="en">
 
355
<a name="id2716825"></a><h3>
 
356
<a name="GimpZoomPreview--model"></a>The "<code class="literal">model</code>" property</h3>
 
357
<a class="indexterm" name="id2716837"></a><pre class="programlisting">  "model"                    GimpZoomModel         : Read / Write / Construct Only</pre>
 
358
<p>
 
359
The <span class="type">GimpZoomModel</span> used by this <a href="GimpZoomPreview.html" title="GimpZoomPreview"><span class="type">GimpZoomPreview</span></a>.</p>
 
360
<p>
 
361
 
 
362
</p>
 
363
<p>Since  GIMP 2.4
 
364
</p>
 
365
</div>
 
366
</div>
 
367
</div>
 
368
</body>
 
369
</html>