4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>GimpDrawablePreview</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 Library Reference Manual">
8
<link rel="up" href="libgimpui.html" title="Part III. GIMP User Interface Library">
9
<link rel="prev" href="GimpAspectPreview.html" title="GimpAspectPreview">
10
<link rel="next" href="libgimp-gimpdrawablecombobox.html" title="gimpdrawablecombobox">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
8
<link rel="up" href="libgimpui.html" title="Part II. GIMP User Interface Library">
9
<link rel="prev" href="libgimp-gimpexport.html" title="gimpexport">
10
<link rel="next" href="GimpAspectPreview.html" title="GimpAspectPreview">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
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">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
24
27
<tr valign="middle">
25
<td><a accesskey="p" href="GimpAspectPreview.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
<td><a accesskey="p" href="libgimp-gimpexport.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
26
29
<td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
27
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
<td><a accesskey="n" href="libgimp-gimpdrawablecombobox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
<td><a accesskey="n" href="GimpAspectPreview.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="#id2580931" class="shortcut">Top</a>
33
<a href="#id2651954" class="shortcut">Description</a>
35
<a href="#id2651334" class="shortcut">Object Hierarchy</a>
37
<a href="#id2651405" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2585065" class="shortcut">Top</a>
36
<a href="#id2707699" class="shortcut">Description</a>
38
<a href="#id2707579" class="shortcut">Object Hierarchy</a>
40
<a href="#id2707649" class="shortcut">Implemented Interfaces</a>
42
<a href="#id2707669" class="shortcut">Properties</a></nobr></td></tr>
39
44
<div class="refentry" lang="en">
40
45
<a name="GimpDrawablePreview"></a><div class="titlepage"></div>
41
46
<div class="refnamediv"><table width="100%"><tr>
44
<a name="id2580931"></a><span class="refentrytitle">GimpDrawablePreview</span>
49
<a name="id2585065"></a><span class="refentrytitle">GimpDrawablePreview</span>
46
51
<p>GimpDrawablePreview — A widget providing a preview of a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>.</p>
56
<a href="GimpDrawablePreview.html#GimpDrawablePreview-struct">GimpDrawablePreview</a>;
57
GtkWidget* <a href="GimpDrawablePreview.html#gimp-drawable-preview-new">gimp_drawable_preview_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
59
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* <a href="GimpDrawablePreview.html#gimp-drawable-preview-get-drawable">gimp_drawable_preview_get_drawable</a>
60
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);
61
void <a href="GimpDrawablePreview.html#gimp-drawable-preview-draw-region">gimp_drawable_preview_draw_region</a>
62
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
63
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);
61
<a href="GimpDrawablePreview.html#GimpDrawablePreview-struct">GimpDrawablePreview</a>;
62
GtkWidget* <a href="GimpDrawablePreview.html#gimp-drawable-preview-new">gimp_drawable_preview_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
64
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* <a href="GimpDrawablePreview.html#gimp-drawable-preview-get-drawable">gimp_drawable_preview_get_drawable</a> (<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);
65
void <a href="GimpDrawablePreview.html#gimp-drawable-preview-draw-region">gimp_drawable_preview_draw_region</a> (<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
66
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);
67
70
<div class="refsect1" lang="en">
68
<a name="id2651334"></a><h2>Object Hierarchy</h2>
71
<a name="id2707579"></a><h2>Object Hierarchy</h2>
69
72
<pre class="synopsis">
79
82
href="../libgimpwidgets/GimpPreview.html"
82
href="../libgimpwidgets/libgimpwidgets-GimpScrolledPreview.html#GimpScrolledPreview"
85
href="../libgimpwidgets/GimpScrolledPreview.html"
83
86
>GimpScrolledPreview</a>
84
87
+----GimpDrawablePreview
87
90
<div class="refsect1" lang="en">
88
<a name="id2651405"></a><h2>Implemented Interfaces</h2>
91
<a name="id2707649"></a><h2>Implemented Interfaces</h2>
90
93
GimpDrawablePreview implements
91
94
AtkImplementorIface.</p>
93
96
<div class="refsect1" lang="en">
94
<a name="id2651954"></a><h2>Description</h2>
97
<a name="id2707669"></a><h2>Properties</h2>
98
<pre class="synopsis">
100
"<a href="GimpDrawablePreview.html#GimpDrawablePreview--drawable">drawable</a>" gpointer : Read / Write / Construct Only
103
<div class="refsect1" lang="en">
104
<a name="id2707699"></a><h2>Description</h2>
96
106
A widget providing a preview of a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>.
99
109
<div class="refsect1" lang="en">
100
<a name="id2651976"></a><h2>Details</h2>
110
<a name="id2707721"></a><h2>Details</h2>
101
111
<div class="refsect2" lang="en">
102
<a name="id2651987"></a><h3>
112
<a name="id2707731"></a><h3>
103
113
<a name="GimpDrawablePreview-struct"></a>GimpDrawablePreview</h3>
104
<a class="indexterm" name="id2651998"></a><pre class="programlisting">typedef struct _GimpDrawablePreview GimpDrawablePreview;</pre>
114
<a class="indexterm" name="id2712191"></a><pre class="programlisting">typedef struct _GimpDrawablePreview GimpDrawablePreview;</pre>
110
120
<div class="refsect2" lang="en">
111
<a name="id2652014"></a><h3>
121
<a name="id2712207"></a><h3>
112
122
<a name="gimp-drawable-preview-new"></a>gimp_drawable_preview_new ()</h3>
113
<a class="indexterm" name="id2652027"></a><pre class="programlisting">GtkWidget* gimp_drawable_preview_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
114
gboolean *toggle);</pre>
123
<a class="indexterm" name="id2712220"></a><pre class="programlisting">GtkWidget* gimp_drawable_preview_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
124
gboolean *toggle);</pre>
116
126
Creates a new <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget for <em class="parameter"><code>drawable</code></em>. If
117
127
updating the preview takes considerable time, you will want to
125
135
<col align="left" valign="top">
129
<span class="term"><em class="parameter"><code>drawable</code></em> :</span></td>
138
<td><span class="term"><em class="parameter"><code>drawable</code></em> :</span></td>
130
139
<td> a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>
135
<span class="term"><em class="parameter"><code>toggle</code></em> :</span></td>
143
<td><span class="term"><em class="parameter"><code>toggle</code></em> :</span></td>
136
144
<td> pointer to a <span class="type">gboolean</span> variable to sync with the "Preview"
137
145
check-button or <code class="literal">NULL</code>
142
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
149
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
143
150
<td> A pointer to the new <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget.
156
<p class="since">Since GIMP 2.2
153
160
<div class="refsect2" lang="en">
154
<a name="id2649844"></a><h3>
161
<a name="id2712365"></a><h3>
155
162
<a name="gimp-drawable-preview-get-drawable"></a>gimp_drawable_preview_get_drawable ()</h3>
156
<a class="indexterm" name="id2649857"></a><pre class="programlisting"><a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* gimp_drawable_preview_get_drawable
157
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);</pre>
163
<a class="indexterm" name="id2712378"></a><pre class="programlisting"><a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* gimp_drawable_preview_get_drawable (<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);</pre>
164
170
<col align="left" valign="top">
168
<span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
173
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
169
174
<td> a <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget
174
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
178
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
175
179
<td> the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> that has been passed to
176
180
<a href="GimpDrawablePreview.html#gimp-drawable-preview-new"><code class="function">gimp_drawable_preview_new()</code></a>.
186
<p class="since">Since GIMP 2.2
186
190
<div class="refsect2" lang="en">
187
<a name="id2649942"></a><h3>
191
<a name="id2714008"></a><h3>
188
192
<a name="gimp-drawable-preview-draw-region"></a>gimp_drawable_preview_draw_region ()</h3>
189
<a class="indexterm" name="id2649956"></a><pre class="programlisting">void gimp_drawable_preview_draw_region
190
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
191
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);</pre>
193
<a class="indexterm" name="id2714021"></a><pre class="programlisting">void gimp_drawable_preview_draw_region (<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
194
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);</pre>
198
201
<col align="left" valign="top">
202
<span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
204
<td><span class="term"><em class="parameter"><code>preview</code></em> :</span></td>
203
205
<td> a <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget
208
<span class="term"><em class="parameter"><code>region</code></em> :</span></td>
209
<td><span class="term"><em class="parameter"><code>region</code></em> :</span></td>
209
210
<td> a <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>
215
<p class="since">Since GIMP 2.2
219
<div class="refsect1" lang="en">
220
<a name="id2714112"></a><h2>Property Details</h2>
221
<div class="refsect2" lang="en">
222
<a name="id2714122"></a><h3>
223
<a name="GimpDrawablePreview--drawable"></a>The "<code class="literal">drawable</code>" property</h3>
224
<a class="indexterm" name="id2714136"></a><pre class="programlisting"> "drawable" gpointer : Read / Write / Construct Only</pre>