1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GtkScrollable</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="ScrollingWidgets.html" title="Scrolling">
9 <link rel="prev" href="GtkScrolledWindow.html" title="GtkScrolledWindow">
10 <link rel="next" href="Printing.html" title="Printing">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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">
17 <td><a accesskey="p" href="GtkScrolledWindow.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ScrollingWidgets.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="Printing.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GtkScrollable.synopsis" class="shortcut">Top</a>
26 <a href="#GtkScrollable.description" class="shortcut">Description</a>
28 <a href="#GtkScrollable.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#GtkScrollable.prerequisites" class="shortcut">Prerequisites</a>
32 <a href="#GtkScrollable.implementations" class="shortcut">Known Implementations</a>
34 <a href="#GtkScrollable.properties" class="shortcut">Properties</a>
37 <div class="refentry">
38 <a name="GtkScrollable"></a><div class="titlepage"></div>
39 <div class="refnamediv"><table width="100%"><tr>
41 <h2><span class="refentrytitle"><a name="GtkScrollable.top_of_page"></a>GtkScrollable</span></h2>
42 <p>GtkScrollable — An interface for scrollable widgets</p>
44 <td valign="top" align="right"></td>
46 <div class="refsynopsisdiv">
47 <a name="GtkScrollable.synopsis"></a><h2>Synopsis</h2>
48 <pre class="synopsis">
49 #include <gtk/gtk.h>
51 <a class="link" href="GtkScrollable.html#GtkScrollable-struct" title="GtkScrollable">GtkScrollable</a>;
52 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> * <a class="link" href="GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()">gtk_scrollable_get_hadjustment</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);
53 <span class="returnvalue">void</span> <a class="link" href="GtkScrollable.html#gtk-scrollable-set-hadjustment" title="gtk_scrollable_set_hadjustment ()">gtk_scrollable_set_hadjustment</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
54 <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>);
55 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> * <a class="link" href="GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()">gtk_scrollable_get_vadjustment</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);
56 <span class="returnvalue">void</span> <a class="link" href="GtkScrollable.html#gtk-scrollable-set-vadjustment" title="gtk_scrollable_set_vadjustment ()">gtk_scrollable_set_vadjustment</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
57 <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);
58 enum <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy">GtkScrollablePolicy</a>;
59 <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="returnvalue">GtkScrollablePolicy</span></a> <a class="link" href="GtkScrollable.html#gtk-scrollable-get-hscroll-policy" title="gtk_scrollable_get_hscroll_policy ()">gtk_scrollable_get_hscroll_policy</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);
60 <span class="returnvalue">void</span> <a class="link" href="GtkScrollable.html#gtk-scrollable-set-hscroll-policy" title="gtk_scrollable_set_hscroll_policy ()">gtk_scrollable_set_hscroll_policy</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
61 <em class="parameter"><code><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> policy</code></em>);
62 <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="returnvalue">GtkScrollablePolicy</span></a> <a class="link" href="GtkScrollable.html#gtk-scrollable-get-vscroll-policy" title="gtk_scrollable_get_vscroll_policy ()">gtk_scrollable_get_vscroll_policy</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);
63 <span class="returnvalue">void</span> <a class="link" href="GtkScrollable.html#gtk-scrollable-set-vscroll-policy" title="gtk_scrollable_set_vscroll_policy ()">gtk_scrollable_set_vscroll_policy</a> (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
64 <em class="parameter"><code><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> policy</code></em>);
67 <div class="refsect1">
68 <a name="GtkScrollable.object-hierarchy"></a><h2>Object Hierarchy</h2>
69 <pre class="synopsis">
74 <div class="refsect1">
75 <a name="GtkScrollable.prerequisites"></a><h2>Prerequisites</h2>
77 GtkScrollable requires
78 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
80 <div class="refsect1">
81 <a name="GtkScrollable.implementations"></a><h2>Known Implementations</h2>
83 GtkScrollable is implemented by
84 <a class="link" href="GtkIconView.html" title="GtkIconView">GtkIconView</a>, <a class="link" href="GtkLayout.html" title="GtkLayout">GtkLayout</a>, <a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a>, <a class="link" href="GtkToolPalette.html" title="GtkToolPalette">GtkToolPalette</a>, <a class="link" href="GtkTreeView.html" title="GtkTreeView">GtkTreeView</a> and <a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a>.</p>
86 <div class="refsect1">
87 <a name="GtkScrollable.properties"></a><h2>Properties</h2>
88 <pre class="synopsis">
89 "<a class="link" href="GtkScrollable.html#GtkScrollable--hadjustment" title='The "hadjustment" property'>hadjustment</a>" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>* : Read / Write / Construct
90 "<a class="link" href="GtkScrollable.html#GtkScrollable--hscroll-policy" title='The "hscroll-policy" property'>hscroll-policy</a>" <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> : Read / Write
91 "<a class="link" href="GtkScrollable.html#GtkScrollable--vadjustment" title='The "vadjustment" property'>vadjustment</a>" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>* : Read / Write / Construct
92 "<a class="link" href="GtkScrollable.html#GtkScrollable--vscroll-policy" title='The "vscroll-policy" property'>vscroll-policy</a>" <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> : Read / Write
95 <div class="refsect1">
96 <a name="GtkScrollable.description"></a><h2>Description</h2>
98 <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> is an interface that is implemented by widgets with native
102 To implement this interface you should override the
103 <a class="link" href="GtkScrollable.html#GtkScrollable--hadjustment" title='The "hadjustment" property'><span class="type">"hadjustment"</span></a> and <a class="link" href="GtkScrollable.html#GtkScrollable--vadjustment" title='The "vadjustment" property'><span class="type">"vadjustment"</span></a> properties.
107 <div class="refsect2">
108 <a name="id1179144"></a><h3>Creating a scrollable widget</h3>
110 All scrollable widgets should do the following.
114 <div class="orderedlist"><ol class="orderedlist" type="1">
115 <li class="listitem"><p>
116 When a parent widget sets the scrollable child widget's adjustments, the widget should populate the adjustments'
117 <a class="link" href="GtkAdjustment.html#GtkAdjustment--lower" title='The "lower" property'><span class="type">"lower"</span></a>, <a class="link" href="GtkAdjustment.html#GtkAdjustment--upper" title='The "upper" property'><span class="type">"upper"</span></a>,
118 <a class="link" href="GtkAdjustment.html#GtkAdjustment--step-increment" title='The "step-increment" property'><span class="type">"step-increment"</span></a>, <a class="link" href="GtkAdjustment.html#GtkAdjustment--page-increment" title='The "page-increment" property'><span class="type">"page-increment"</span></a> and
119 <a class="link" href="GtkAdjustment.html#GtkAdjustment--page-size" title='The "page-size" property'><span class="type">"page-size"</span></a> properties and connect to the
120 <a class="link" href="GtkAdjustment.html#GtkAdjustment-value-changed" title='The "value-changed" signal'><span class="type">"value-changed"</span></a> signal.
122 <li class="listitem"><p>
123 Because its preferred size is the size for a fully expanded widget,
124 the scrollable widget must be able to cope with underallocations.
125 This means that it must accept any value passed to its
126 <a class="link" href="GtkWidget.html#GtkWidgetClass.size-allocate"><code class="function">GtkWidgetClass.size_allocate()</code></a> function.
128 <li class="listitem"><p>
129 When the parent allocates space to the scrollable child widget, the widget should update
130 the adjustments' properties with new values.
132 <li class="listitem"><p>
133 When any of the adjustments emits the <a class="link" href="GtkAdjustment.html#GtkAdjustment-value-changed" title='The "value-changed" signal'><span class="type">"value-changed"</span></a> signal,
134 the scrollable widget should scroll its contents.
143 <div class="refsect1">
144 <a name="GtkScrollable.details"></a><h2>Details</h2>
145 <div class="refsect2">
146 <a name="GtkScrollable-struct"></a><h3>GtkScrollable</h3>
147 <pre class="programlisting">typedef struct _GtkScrollable GtkScrollable;</pre>
150 <div class="refsect2">
151 <a name="gtk-scrollable-get-hadjustment"></a><h3>gtk_scrollable_get_hadjustment ()</h3>
152 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> * gtk_scrollable_get_hadjustment (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);</pre>
154 Retrieves the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> used for horizontal scrolling.
156 <div class="variablelist"><table border="0">
157 <col align="left" valign="top">
160 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
161 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
165 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
166 <td>horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
171 <p class="since">Since 3.0</p>
174 <div class="refsect2">
175 <a name="gtk-scrollable-set-hadjustment"></a><h3>gtk_scrollable_set_hadjustment ()</h3>
176 <pre class="programlisting"><span class="returnvalue">void</span> gtk_scrollable_set_hadjustment (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
177 <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>);</pre>
179 Sets the horizontal adjustment of the <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>.
181 <div class="variablelist"><table border="0">
182 <col align="left" valign="top">
185 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
186 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
190 <td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td>
191 <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>
196 <p class="since">Since 3.0</p>
199 <div class="refsect2">
200 <a name="gtk-scrollable-get-vadjustment"></a><h3>gtk_scrollable_get_vadjustment ()</h3>
201 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> * gtk_scrollable_get_vadjustment (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);</pre>
203 Retrieves the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> used for vertical scrolling.
205 <div class="variablelist"><table border="0">
206 <col align="left" valign="top">
209 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
210 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
214 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
215 <td>vertical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
220 <p class="since">Since 3.0</p>
223 <div class="refsect2">
224 <a name="gtk-scrollable-set-vadjustment"></a><h3>gtk_scrollable_set_vadjustment ()</h3>
225 <pre class="programlisting"><span class="returnvalue">void</span> gtk_scrollable_set_vadjustment (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
226 <em class="parameter"><code><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);</pre>
228 Sets the vertical adjustment of the <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>.
230 <div class="variablelist"><table border="0">
231 <col align="left" valign="top">
234 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
235 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
239 <td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td>
240 <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>
245 <p class="since">Since 3.0</p>
248 <div class="refsect2">
249 <a name="GtkScrollablePolicy"></a><h3>enum GtkScrollablePolicy</h3>
250 <pre class="programlisting">typedef enum {
251 GTK_SCROLL_MINIMUM = 0,
253 } GtkScrollablePolicy;
256 Defines the policy to be used in a scrollable widget when updating
257 the scrolled window adjustments in a given orientation.
259 <div class="variablelist"><table border="0">
260 <col align="left" valign="top">
263 <td><p><a name="GTK-SCROLL-MINIMUM:CAPS"></a><span class="term"><code class="literal">GTK_SCROLL_MINIMUM</code></span></p></td>
264 <td>Scrollable adjustments are based on the minimum size
268 <td><p><a name="GTK-SCROLL-NATURAL:CAPS"></a><span class="term"><code class="literal">GTK_SCROLL_NATURAL</code></span></p></td>
269 <td>Scrollable adjustments are based on the natural size
276 <div class="refsect2">
277 <a name="gtk-scrollable-get-hscroll-policy"></a><h3>gtk_scrollable_get_hscroll_policy ()</h3>
278 <pre class="programlisting"><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="returnvalue">GtkScrollablePolicy</span></a> gtk_scrollable_get_hscroll_policy (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);</pre>
280 Gets the horizontal <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>.
282 <div class="variablelist"><table border="0">
283 <col align="left" valign="top">
286 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
287 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
291 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
292 <td>The horizontal <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>.</td>
296 <p class="since">Since 3.0</p>
299 <div class="refsect2">
300 <a name="gtk-scrollable-set-hscroll-policy"></a><h3>gtk_scrollable_set_hscroll_policy ()</h3>
301 <pre class="programlisting"><span class="returnvalue">void</span> gtk_scrollable_set_hscroll_policy (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
302 <em class="parameter"><code><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> policy</code></em>);</pre>
304 Sets the <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> to determine whether
305 horizontal scrolling should start below the minimum width or
306 below the natural width.
308 <div class="variablelist"><table border="0">
309 <col align="left" valign="top">
312 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
313 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
317 <td><p><span class="term"><em class="parameter"><code>policy</code></em> :</span></p></td>
318 <td>the horizontal <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>
323 <p class="since">Since 3.0</p>
326 <div class="refsect2">
327 <a name="gtk-scrollable-get-vscroll-policy"></a><h3>gtk_scrollable_get_vscroll_policy ()</h3>
328 <pre class="programlisting"><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="returnvalue">GtkScrollablePolicy</span></a> gtk_scrollable_get_vscroll_policy (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>);</pre>
330 Gets the vertical <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>.
332 <div class="variablelist"><table border="0">
333 <col align="left" valign="top">
336 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
337 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
341 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
342 <td>The vertical <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>.</td>
346 <p class="since">Since 3.0</p>
349 <div class="refsect2">
350 <a name="gtk-scrollable-set-vscroll-policy"></a><h3>gtk_scrollable_set_vscroll_policy ()</h3>
351 <pre class="programlisting"><span class="returnvalue">void</span> gtk_scrollable_set_vscroll_policy (<em class="parameter"><code><a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a> *scrollable</code></em>,
352 <em class="parameter"><code><a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> policy</code></em>);</pre>
354 Sets the <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> to determine whether
355 vertical scrolling should start below the minimum height or
356 below the natural height.
358 <div class="variablelist"><table border="0">
359 <col align="left" valign="top">
362 <td><p><span class="term"><em class="parameter"><code>scrollable</code></em> :</span></p></td>
363 <td>a <a class="link" href="GtkScrollable.html" title="GtkScrollable"><span class="type">GtkScrollable</span></a>
367 <td><p><span class="term"><em class="parameter"><code>policy</code></em> :</span></p></td>
368 <td>the vertical <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a>
373 <p class="since">Since 3.0</p>
376 <div class="refsect1">
377 <a name="GtkScrollable.property-details"></a><h2>Property Details</h2>
378 <div class="refsect2">
379 <a name="GtkScrollable--hadjustment"></a><h3>The <code class="literal">"hadjustment"</code> property</h3>
380 <pre class="programlisting"> "hadjustment" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>* : Read / Write / Construct</pre>
382 Horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> of the scrollable widget. This adjustment is
383 shared between the scrollable widget and its parent.
385 <p class="since">Since 3.0</p>
388 <div class="refsect2">
389 <a name="GtkScrollable--hscroll-policy"></a><h3>The <code class="literal">"hscroll-policy"</code> property</h3>
390 <pre class="programlisting"> "hscroll-policy" <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> : Read / Write</pre>
392 Determines whether horizontal scrolling should start once the scrollable
393 widget is allocated less than its minimum width or less than its natural width.
395 <p>Default value: GTK_SCROLL_MINIMUM</p>
396 <p class="since">Since 3.0</p>
399 <div class="refsect2">
400 <a name="GtkScrollable--vadjustment"></a><h3>The <code class="literal">"vadjustment"</code> property</h3>
401 <pre class="programlisting"> "vadjustment" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>* : Read / Write / Construct</pre>
403 Verical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> of the scrollable widget. This adjustment is shared
404 between the scrollable widget and its parent.
406 <p class="since">Since 3.0</p>
409 <div class="refsect2">
410 <a name="GtkScrollable--vscroll-policy"></a><h3>The <code class="literal">"vscroll-policy"</code> property</h3>
411 <pre class="programlisting"> "vscroll-policy" <a class="link" href="GtkScrollable.html#GtkScrollablePolicy" title="enum GtkScrollablePolicy"><span class="type">GtkScrollablePolicy</span></a> : Read / Write</pre>
413 Determines whether vertical scrolling should start once the scrollable
414 widget is allocated less than its minimum height or less than its natural height.
416 <p>Default value: GTK_SCROLL_MINIMUM</p>
417 <p class="since">Since 3.0</p>
423 Generated by GTK-Doc V1.18</div>