Initial packaging to sync OBS with git/gerrit
[profile/ivi/gtk3.git] / docs / reference / gtk / html / GtkViewport.html
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=UTF-8">
5 <title>GtkViewport</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8 <link rel="up" href="MiscObjects.html" title="Miscellaneous">
9 <link rel="prev" href="GtkTooltip.html" title="GtkTooltip">
10 <link rel="next" href="GtkAccessible.html" title="GtkAccessible">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="GtkTooltip.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GTK+ 3 Reference Manual</th>
21 <td><a accesskey="n" href="GtkAccessible.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GtkViewport.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GtkViewport.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GtkViewport.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GtkViewport.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31                    | 
32                   <a href="#GtkViewport.properties" class="shortcut">Properties</a>
33 </td></tr>
34 </table>
35 <div class="refentry">
36 <a name="GtkViewport"></a><div class="titlepage"></div>
37 <div class="refnamediv"><table width="100%"><tr>
38 <td valign="top">
39 <h2><span class="refentrytitle"><a name="GtkViewport.top_of_page"></a>GtkViewport</span></h2>
40 <p>GtkViewport — An adapter which makes widgets scrollable</p>
41 </td>
42 <td valign="top" align="right"></td>
43 </tr></table></div>
44 <div class="refsynopsisdiv">
45 <a name="GtkViewport.synopsis"></a><h2>Synopsis</h2>
46 <pre class="synopsis">
47 #include &lt;gtk/gtk.h&gt;
48
49 struct              <a class="link" href="GtkViewport.html#GtkViewport-struct" title="struct GtkViewport">GtkViewport</a>;
50 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkViewport.html#gtk-viewport-new" title="gtk_viewport_new ()">gtk_viewport_new</a>                    (<em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>,
51                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);
52 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkViewport.html#gtk-viewport-get-hadjustment" title="gtk_viewport_get_hadjustment ()">gtk_viewport_get_hadjustment</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
53 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkViewport.html#gtk-viewport-get-vadjustment" title="gtk_viewport_get_vadjustment ()">gtk_viewport_get_vadjustment</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
54 <span class="returnvalue">void</span>                <a class="link" href="GtkViewport.html#gtk-viewport-set-hadjustment" title="gtk_viewport_set_hadjustment ()">gtk_viewport_set_hadjustment</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
55                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);
56 <span class="returnvalue">void</span>                <a class="link" href="GtkViewport.html#gtk-viewport-set-vadjustment" title="gtk_viewport_set_vadjustment ()">gtk_viewport_set_vadjustment</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
57                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);
58 <span class="returnvalue">void</span>                <a class="link" href="GtkViewport.html#gtk-viewport-set-shadow-type" title="gtk_viewport_set_shadow_type ()">gtk_viewport_set_shadow_type</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
59                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);
60 <a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       <a class="link" href="GtkViewport.html#gtk-viewport-get-shadow-type" title="gtk_viewport_get_shadow_type ()">gtk_viewport_get_shadow_type</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
61 <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="GtkViewport.html#gtk-viewport-get-bin-window" title="gtk_viewport_get_bin_window ()">gtk_viewport_get_bin_window</a>         (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
62 <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="GtkViewport.html#gtk-viewport-get-view-window" title="gtk_viewport_get_view_window ()">gtk_viewport_get_view_window</a>        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
63 </pre>
64 </div>
65 <div class="refsect1">
66 <a name="GtkViewport.object-hierarchy"></a><h2>Object Hierarchy</h2>
67 <pre class="synopsis">
68   <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
69    +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
70          +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
71                +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
72                      +----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
73                            +----GtkViewport
74 </pre>
75 </div>
76 <div class="refsect1">
77 <a name="GtkViewport.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
78 <p>
79 GtkViewport implements
80  AtkImplementorIface,  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a> and  <a class="link" href="GtkScrollable.html" title="GtkScrollable">GtkScrollable</a>.</p>
81 </div>
82 <div class="refsect1">
83 <a name="GtkViewport.properties"></a><h2>Properties</h2>
84 <pre class="synopsis">
85   "<a class="link" href="GtkViewport.html#GtkViewport--shadow-type" title='The "shadow-type" property'>shadow-type</a>"              <a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a>         : Read / Write
86 </pre>
87 </div>
88 <div class="refsect1">
89 <a name="GtkViewport.description"></a><h2>Description</h2>
90 <p>
91 The <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> widget acts as an adaptor class, implementing
92 scrollability for child widgets that lack their own scrolling
93 capabilities. Use <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> to scroll child widgets such as
94 <a class="link" href="GtkGrid.html" title="GtkGrid"><span class="type">GtkGrid</span></a>, <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>, and so on.
95 </p>
96 <p>
97 If a widget has native scrolling abilities, such as <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>,
98 <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> or <span class="type">GtkIconview</span>, it can be added to a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
99 with <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a>. If a widget does not, you must first add the
100 widget to a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>, then add the viewport to the scrolled window.
101 The convenience function <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-add-with-viewport" title="gtk_scrolled_window_add_with_viewport ()"><code class="function">gtk_scrolled_window_add_with_viewport()</code></a> does
102 exactly this, so you can ignore the presence of the viewport.
103 </p>
104 <p>
105 The <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> will start scrolling content only if allocated less
106 than the child widget's minimum size in a given orientation.
107 </p>
108 </div>
109 <div class="refsect1">
110 <a name="GtkViewport.details"></a><h2>Details</h2>
111 <div class="refsect2">
112 <a name="GtkViewport-struct"></a><h3>struct GtkViewport</h3>
113 <pre class="programlisting">struct GtkViewport;</pre>
114 </div>
115 <hr>
116 <div class="refsect2">
117 <a name="gtk-viewport-new"></a><h3>gtk_viewport_new ()</h3>
118 <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_viewport_new                    (<em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>,
119                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);</pre>
120 <p>
121 Creates a new <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> with the given adjustments.
122 </p>
123 <div class="variablelist"><table border="0">
124 <col align="left" valign="top">
125 <tbody>
126 <tr>
127 <td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td>
128 <td>horizontal adjustment</td>
129 </tr>
130 <tr>
131 <td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td>
132 <td>vertical adjustment</td>
133 </tr>
134 <tr>
135 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
136 <td>a new <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
137 </td>
138 </tr>
139 </tbody>
140 </table></div>
141 </div>
142 <hr>
143 <div class="refsect2">
144 <a name="gtk-viewport-get-hadjustment"></a><h3>gtk_viewport_get_hadjustment ()</h3>
145 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_viewport_get_hadjustment        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
146 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
147 <h3 class="title">Warning</h3>
148 <p><code class="literal">gtk_viewport_get_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()"><code class="function">gtk_scrollable_get_hadjustment()</code></a></p>
149 </div>
150 <p>
151 Returns the horizontal adjustment of the viewport.
152 </p>
153 <div class="variablelist"><table border="0">
154 <col align="left" valign="top">
155 <tbody>
156 <tr>
157 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
158 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td>
159 </tr>
160 <tr>
161 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
162 <td>the horizontal adjustment of <em class="parameter"><code>viewport</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
163 </td>
164 </tr>
165 </tbody>
166 </table></div>
167 </div>
168 <hr>
169 <div class="refsect2">
170 <a name="gtk-viewport-get-vadjustment"></a><h3>gtk_viewport_get_vadjustment ()</h3>
171 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_viewport_get_vadjustment        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
172 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
173 <h3 class="title">Warning</h3>
174 <p><code class="literal">gtk_viewport_get_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()"><code class="function">gtk_scrollable_get_vadjustment()</code></a></p>
175 </div>
176 <p>
177 Returns the vertical adjustment of the viewport.
178 </p>
179 <div class="variablelist"><table border="0">
180 <col align="left" valign="top">
181 <tbody>
182 <tr>
183 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
184 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td>
185 </tr>
186 <tr>
187 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
188 <td>the vertical adjustment of <em class="parameter"><code>viewport</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
189 </td>
190 </tr>
191 </tbody>
192 </table></div>
193 </div>
194 <hr>
195 <div class="refsect2">
196 <a name="gtk-viewport-set-hadjustment"></a><h3>gtk_viewport_set_hadjustment ()</h3>
197 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_hadjustment        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
198                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
199 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
200 <h3 class="title">Warning</h3>
201 <p><code class="literal">gtk_viewport_set_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-set-hadjustment" title="gtk_scrollable_set_hadjustment ()"><code class="function">gtk_scrollable_set_hadjustment()</code></a></p>
202 </div>
203 <p>
204 Sets the horizontal adjustment of the viewport.
205 </p>
206 <div class="variablelist"><table border="0">
207 <col align="left" valign="top">
208 <tbody>
209 <tr>
210 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
211 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td>
212 </tr>
213 <tr>
214 <td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
215 <td>a <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
216 </td>
217 </tr>
218 </tbody>
219 </table></div>
220 </div>
221 <hr>
222 <div class="refsect2">
223 <a name="gtk-viewport-set-vadjustment"></a><h3>gtk_viewport_set_vadjustment ()</h3>
224 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_vadjustment        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
225                                                          <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
226 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
227 <h3 class="title">Warning</h3>
228 <p><code class="literal">gtk_viewport_set_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-set-vadjustment" title="gtk_scrollable_set_vadjustment ()"><code class="function">gtk_scrollable_set_vadjustment()</code></a></p>
229 </div>
230 <p>
231 Sets the vertical adjustment of the viewport.
232 </p>
233 <div class="variablelist"><table border="0">
234 <col align="left" valign="top">
235 <tbody>
236 <tr>
237 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
238 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td>
239 </tr>
240 <tr>
241 <td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
242 <td>a <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
243 </td>
244 </tr>
245 </tbody>
246 </table></div>
247 </div>
248 <hr>
249 <div class="refsect2">
250 <a name="gtk-viewport-set-shadow-type"></a><h3>gtk_viewport_set_shadow_type ()</h3>
251 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_shadow_type        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
252                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);</pre>
253 <p>
254 Sets the shadow type of the viewport.
255 </p>
256 <div class="variablelist"><table border="0">
257 <col align="left" valign="top">
258 <tbody>
259 <tr>
260 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
261 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td>
262 </tr>
263 <tr>
264 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
265 <td>the new shadow type.</td>
266 </tr>
267 </tbody>
268 </table></div>
269 </div>
270 <hr>
271 <div class="refsect2">
272 <a name="gtk-viewport-get-shadow-type"></a><h3>gtk_viewport_get_shadow_type ()</h3>
273 <pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       gtk_viewport_get_shadow_type        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
274 <p>
275 Gets the shadow type of the <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>. See
276 <a class="link" href="GtkViewport.html#gtk-viewport-set-shadow-type" title="gtk_viewport_set_shadow_type ()"><code class="function">gtk_viewport_set_shadow_type()</code></a>.
277 </p>
278 <div class="variablelist"><table border="0">
279 <col align="left" valign="top">
280 <tbody>
281 <tr>
282 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
283 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
284 </td>
285 </tr>
286 <tr>
287 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
288 <td>the shadow type</td>
289 </tr>
290 </tbody>
291 </table></div>
292 </div>
293 <hr>
294 <div class="refsect2">
295 <a name="gtk-viewport-get-bin-window"></a><h3>gtk_viewport_get_bin_window ()</h3>
296 <pre class="programlisting"><a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_viewport_get_bin_window         (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
297 <p>
298 Gets the bin window of the <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.
299 </p>
300 <div class="variablelist"><table border="0">
301 <col align="left" valign="top">
302 <tbody>
303 <tr>
304 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
305 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
306 </td>
307 </tr>
308 <tr>
309 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
310 <td>a <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
311 </td>
312 </tr>
313 </tbody>
314 </table></div>
315 <p class="since">Since 2.20</p>
316 </div>
317 <hr>
318 <div class="refsect2">
319 <a name="gtk-viewport-get-view-window"></a><h3>gtk_viewport_get_view_window ()</h3>
320 <pre class="programlisting"><a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_viewport_get_view_window        (<em class="parameter"><code><a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
321 <p>
322 Gets the view window of the <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.
323 </p>
324 <div class="variablelist"><table border="0">
325 <col align="left" valign="top">
326 <tbody>
327 <tr>
328 <td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
329 <td>a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
330 </td>
331 </tr>
332 <tr>
333 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
334 <td>a <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
335 </td>
336 </tr>
337 </tbody>
338 </table></div>
339 <p class="since">Since 2.22</p>
340 </div>
341 </div>
342 <div class="refsect1">
343 <a name="GtkViewport.property-details"></a><h2>Property Details</h2>
344 <div class="refsect2">
345 <a name="GtkViewport--shadow-type"></a><h3>The <code class="literal">"shadow-type"</code> property</h3>
346 <pre class="programlisting">  "shadow-type"              <a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a>         : Read / Write</pre>
347 <p>Determines how the shadowed box around the viewport is drawn.</p>
348 <p>Default value: GTK_SHADOW_IN</p>
349 </div>
350 </div>
351 <div class="refsect1">
352 <a name="GtkViewport.see-also"></a><h2>See Also</h2>
353 <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>
354 </div>
355 </div>
356 <div class="footer">
357 <hr>
358           Generated by GTK-Doc V1.18</div>
359 </body>
360 </html>