|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkScrolledWindow</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="ScrollingWidgets.html" title="Scrolling">
<link rel="prev" href="GtkVScrollbar.html" title="GtkVScrollbar">
<link rel="next" href="Printing.html" title="Printing">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkVScrollbar.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ScrollingWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="Printing.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3510178" class="shortcut">Top</a>
 | 
<a href="#id3512010" class="shortcut">Description</a>
 | 
<a href="#id3511642" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3511704" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3511727" class="shortcut">Properties</a>
 | 
<a href="#id3511867" class="shortcut">Style Properties</a>
 | 
<a href="#id3511901" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkScrolledWindow"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3510178"></a><span class="refentrytitle">GtkScrolledWindow</span>
</h2>
<p>GtkScrolledWindow — Adds scrollbars to its child widget</p>
</td>
<td valign="top" align="right"><img src="scrolledwindow.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkScrolledWindow.html#GtkScrolledWindow-struct">GtkScrolledWindow</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkScrolledWindow.html#gtk-scrolled-window-new">gtk_scrolled_window_new</a> (<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-hadjustment">gtk_scrolled_window_get_hadjustment</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-vadjustment">gtk_scrolled_window_get_vadjustment</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-hscrollbar">gtk_scrolled_window_get_hscrollbar</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-vscrollbar">gtk_scrolled_window_get_vscrollbar</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-policy">gtk_scrolled_window_set_policy</a> (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> hscrollbar_policy,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> vscrollbar_policy);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-add-with-viewport">gtk_scrolled_window_add_with_viewport</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement">gtk_scrolled_window_set_placement</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> window_placement);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-unset-placement">gtk_scrolled_window_unset_placement</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-shadow-type">gtk_scrolled_window_set_shadow_type</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> type);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-hadjustment">gtk_scrolled_window_set_hadjustment</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-vadjustment">gtk_scrolled_window_set_vadjustment</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);
<a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-placement">gtk_scrolled_window_get_placement</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
void <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-policy">gtk_scrolled_window_get_policy</a> (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *hscrollbar_policy,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *vscrollbar_policy);
<a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-shadow-type">gtk_scrolled_window_get_shadow_type</a>
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3511642"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
+----GtkScrolledWindow
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3511704"></a><h2>Implemented Interfaces</h2>
<p>
GtkScrolledWindow implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3511727"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--hadjustment">hadjustment</a>" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--hscrollbar-policy">hscrollbar-policy</a>" <a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> : Read / Write
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--shadow-type">shadow-type</a>" <a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read / Write
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--vadjustment">vadjustment</a>" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--vscrollbar-policy">vscrollbar-policy</a>" <a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> : Read / Write
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--window-placement">window-placement</a>" <a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> : Read / Write
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--window-placement-set">window-placement-set</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3511867"></a><h2>Style Properties</h2>
<pre class="synopsis">
"<a href="GtkScrolledWindow.html#GtkScrolledWindow--scrollbar-spacing">scrollbar-spacing</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3511901"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkScrolledWindow.html#GtkScrolledWindow-move-focus-out">move-focus-out</a>"
void user_function (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolledwindow,
<a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkScrolledWindow.html#GtkScrolledWindow-scroll-child">scroll-child</a>"
void user_function (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolledwindow,
<a href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3512010"></a><h2>Description</h2>
<p>
<a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> is a <a href="GtkBin.html" title="GtkBin"><span class="type">GtkBin</span></a> subclass: it's a container
the accepts a single child widget. <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> adds scrollbars
to the child widget and optionally draws a beveled frame around the
child widget.
</p>
<p>
The scrolled window can work in two ways. Some widgets have native
scrolling support; these widgets have "slots" for <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>
objects.
<sup>[<a name="id3512063" href="#ftn.id3512063">5</a>]</sup>
Widgets with native scroll support include <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>,
and <a href="GtkLayout.html" title="GtkLayout"><span class="type">GtkLayout</span></a>.
</p>
<p>
For widgets that lack native scrolling support, the <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
widget acts as an adaptor class, implementing scrollability for child
widgets that lack their own scrolling capabilities. Use <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
to scroll child widgets such as <a href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>, <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a>, and so on.
</p>
<p>
If a widget has native scrolling abilities, it can be added to the
<a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> with <a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a>. If a widget does not, you
must first add the widget to a <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>, then add the <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>
to the scrolled window. The convenience function
<a href="GtkScrolledWindow.html#gtk-scrolled-window-add-with-viewport"><code class="function">gtk_scrolled_window_add_with_viewport()</code></a> does exactly this, so you can
ignore the presence of the viewport.
</p>
<p>
The position of the scrollbars is controlled by the scroll
adjustments. See <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> for the fields in an adjustment - for
<a href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a>, used by <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>, the "value" field
represents the position of the scrollbar, which must be between the
"lower" field and "upper - page_size." The "page_size" field
represents the size of the visible scrollable area. The
"step_increment" and "page_increment" fields are used when the user
asks to step down (using the small stepper arrows) or page down (using
for example the PageDown key).
</p>
<p>
If a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> doesn't behave quite as you would like, or
doesn't have exactly the right layout, it's very possible to set up
your own scrolling with <a href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a> and for example a <a href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3512286"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3512296"></a><h3>
<a name="GtkScrolledWindow-struct"></a>GtkScrolledWindow</h3>
<a class="indexterm" name="id3512310"></a><pre class="programlisting">typedef struct {
GtkWidget *hscrollbar;
GtkWidget *vscrollbar;
} GtkScrolledWindow;
</pre>
<p>
There are no public fields in the <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> struct; it should
only be accessed using the functions below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512336"></a><h3>
<a name="gtk-scrolled-window-new"></a>gtk_scrolled_window_new ()</h3>
<a class="indexterm" name="id3512349"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_scrolled_window_new (<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);</pre>
<p>
Creates a new scrolled window. The two arguments are the scrolled
window's adjustments; these will be shared with the scrollbars and the
child widget to keep the bars in sync with the child. Usually you want
to pass <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> for the adjustments, which will cause the scrolled window
to create them for you.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></td>
<td>Horizontal adjustment.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></td>
<td>Vertical adjustment.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>New scrolled window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512444"></a><h3>
<a name="gtk-scrolled-window-get-hadjustment"></a>gtk_scrolled_window_get_hadjustment ()</h3>
<a class="indexterm" name="id3512459"></a><pre class="programlisting"><a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_scrolled_window_get_hadjustment
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Returns the horizontal scrollbar's adjustment, used to connect the
horizontal scrollbar to the child widget's horizontal scroll
functionality.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>The horizontal <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512535"></a><h3>
<a name="gtk-scrolled-window-get-vadjustment"></a>gtk_scrolled_window_get_vadjustment ()</h3>
<a class="indexterm" name="id3512550"></a><pre class="programlisting"><a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_scrolled_window_get_vadjustment
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Returns the vertical scrollbar's adjustment, used to connect the
vertical scrollbar to the child widget's vertical scroll
functionality.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>The vertical <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512627"></a><h3>
<a name="gtk-scrolled-window-get-hscrollbar"></a>gtk_scrolled_window_get_hscrollbar ()</h3>
<a class="indexterm" name="id3512643"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_scrolled_window_get_hscrollbar
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Returns the horizontal scrollbar of <em class="parameter"><code>scrolled_window</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the horizontal scrollbar of the scrolled window, or
<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if it does not have one.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512734"></a><h3>
<a name="gtk-scrolled-window-get-vscrollbar"></a>gtk_scrolled_window_get_vscrollbar ()</h3>
<a class="indexterm" name="id3512751"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_scrolled_window_get_vscrollbar
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Returns the vertical scrollbar of <em class="parameter"><code>scrolled_window</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the vertical scrollbar of the scrolled window, or
<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if it does not have one.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3512842"></a><h3>
<a name="gtk-scrolled-window-set-policy"></a>gtk_scrolled_window_set_policy ()</h3>
<a class="indexterm" name="id3512856"></a><pre class="programlisting">void gtk_scrolled_window_set_policy (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> hscrollbar_policy,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> vscrollbar_policy);</pre>
<p>
Sets the scrollbar policy for the horizontal and vertical scrollbars.
The policy determines when the scrollbar should appear; it is a value
from the <a href="gtk-Standard-Enumerations.html#GtkPolicyType"><span class="type">GtkPolicyType</span></a> enumeration. If <a href="gtk-Standard-Enumerations.html#GTK-POLICY-ALWAYS:CAPS"><code class="literal">GTK_POLICY_ALWAYS</code></a>, the
scrollbar is always present; if <a href="gtk-Standard-Enumerations.html#GTK-POLICY-NEVER:CAPS"><code class="literal">GTK_POLICY_NEVER</code></a>, the scrollbar is
never present; if <a href="gtk-Standard-Enumerations.html#GTK-POLICY-AUTOMATIC:CAPS"><code class="literal">GTK_POLICY_AUTOMATIC</code></a>, the scrollbar is present only
if needed (that is, if the slider part of the bar would be smaller
than the trough - the display is larger than the page size).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hscrollbar_policy</code></em> :</span></td>
<td>Policy for horizontal bar.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>vscrollbar_policy</code></em> :</span></td>
<td>Policy for vertical bar.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513006"></a><h3>
<a name="gtk-scrolled-window-add-with-viewport"></a>gtk_scrolled_window_add_with_viewport ()</h3>
<a class="indexterm" name="id3513021"></a><pre class="programlisting">void gtk_scrolled_window_add_with_viewport
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre>
<p>
Used to add children without native scrolling capabilities. This is
simply a convenience function; it is equivalent to adding the
unscrollable child to a viewport, then adding the viewport to the
scrolled window. If a child has native scrolling, use
<a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a> instead of this function.
</p>
<p>
The viewport scrolls the child by moving its <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>, and takes the
size of the child to be the size of its toplevel <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>. This will
be very wrong for most widgets that support native scrolling; for
example, if you add a widget such as <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> with a viewport, the
whole widget will scroll, including the column headings. Thus, widgets
with native scrolling support should not be used with the <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> proxy.
</p>
<p>
A widget supports scrolling natively if the
set_scroll_adjustments_signal field in <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a> is non-zero,
i.e. has been filled in with a valid signal identifier.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td>Widget you want to scroll.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513169"></a><h3>
<a name="gtk-scrolled-window-set-placement"></a>gtk_scrolled_window_set_placement ()</h3>
<a class="indexterm" name="id3513184"></a><pre class="programlisting">void gtk_scrolled_window_set_placement
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> window_placement);</pre>
<p>
Sets the placement of the contents with respect to the scrollbars
for the scrolled window.
</p>
<p>
See also <a href="GtkScrolledWindow.html#gtk-scrolled-window-get-placement"><code class="function">gtk_scrolled_window_get_placement()</code></a> and
<a href="GtkScrolledWindow.html#gtk-scrolled-window-unset-placement"><code class="function">gtk_scrolled_window_unset_placement()</code></a>.</p>
<p>
Determines the location of the child widget with respect to the
scrollbars. The default is <a href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-LEFT:CAPS"><code class="literal">GTK_CORNER_TOP_LEFT</code></a>, meaning the child is
in the top left, with the scrollbars underneath and to the right.
Other values in <a href="gtk-Standard-Enumerations.html#GtkCornerType"><span class="type">GtkCornerType</span></a> are <a href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-RIGHT:CAPS"><code class="literal">GTK_CORNER_TOP_RIGHT</code></a>,
<a href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-LEFT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_LEFT</code></a>, and <a href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-RIGHT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_RIGHT</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window_placement</code></em> :</span></td>
<td>Position of the child window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513352"></a><h3>
<a name="gtk-scrolled-window-unset-placement"></a>gtk_scrolled_window_unset_placement ()</h3>
<a class="indexterm" name="id3513369"></a><pre class="programlisting">void gtk_scrolled_window_unset_placement
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Unsets the placement of the contents with respect to the scrollbars
for the scrolled window. If no window placement is set for a scrolled
window, it obeys the "gtk-scrolled-window-placement" XSETTING.
</p>
<p>
See also <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</code></a> and
<a href="GtkScrolledWindow.html#gtk-scrolled-window-get-placement"><code class="function">gtk_scrolled_window_get_placement()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513462"></a><h3>
<a name="gtk-scrolled-window-set-shadow-type"></a>gtk_scrolled_window_set_shadow_type ()</h3>
<a class="indexterm" name="id3513476"></a><pre class="programlisting">void gtk_scrolled_window_set_shadow_type
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> type);</pre>
<p>
Changes the type of shadow drawn around the contents of
<em class="parameter"><code>scrolled_window</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
<td> kind of shadow to draw around scrolled window contents
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513564"></a><h3>
<a name="gtk-scrolled-window-set-hadjustment"></a>gtk_scrolled_window_set_hadjustment ()</h3>
<a class="indexterm" name="id3513579"></a><pre class="programlisting">void gtk_scrolled_window_set_hadjustment
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment);</pre>
<p>
Sets the <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> for the horizontal scrollbar.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></td>
<td>Horizontal scroll adjustment.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513665"></a><h3>
<a name="gtk-scrolled-window-set-vadjustment"></a>gtk_scrolled_window_set_vadjustment ()</h3>
<a class="indexterm" name="id3513680"></a><pre class="programlisting">void gtk_scrolled_window_set_vadjustment
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);</pre>
<p>
Sets the <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> for the vertical scrollbar.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td>A <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></td>
<td>Vertical scroll adjustment.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513766"></a><h3>
<a name="gtk-scrolled-window-get-placement"></a>gtk_scrolled_window_get_placement ()</h3>
<a class="indexterm" name="id3513781"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> gtk_scrolled_window_get_placement
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Gets the placement of the contents with respect to the scrollbars
for the scrolled window. See <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current placement value.
See also <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</code></a> and
<a href="GtkScrolledWindow.html#gtk-scrolled-window-unset-placement"><code class="function">gtk_scrolled_window_unset_placement()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3513887"></a><h3>
<a name="gtk-scrolled-window-get-policy"></a>gtk_scrolled_window_get_policy ()</h3>
<a class="indexterm" name="id3513900"></a><pre class="programlisting">void gtk_scrolled_window_get_policy (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *hscrollbar_policy,
<a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *vscrollbar_policy);</pre>
<p>
Retrieves the current policy values for the horizontal and vertical
scrollbars. See <a href="GtkScrolledWindow.html#gtk-scrolled-window-set-policy"><code class="function">gtk_scrolled_window_set_policy()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hscrollbar_policy</code></em> :</span></td>
<td> location to store the policy for the horizontal scrollbar, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>vscrollbar_policy</code></em> :</span></td>
<td> location to store the policy for the horizontal scrollbar, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514037"></a><h3>
<a name="gtk-scrolled-window-get-shadow-type"></a>gtk_scrolled_window_get_shadow_type ()</h3>
<a class="indexterm" name="id3514051"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> gtk_scrolled_window_get_shadow_type
(<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre>
<p>
Gets the shadow type of the scrolled window. See
<a href="GtkScrolledWindow.html#gtk-scrolled-window-set-shadow-type"><code class="function">gtk_scrolled_window_set_shadow_type()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></td>
<td> a <a href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current shadow type
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3514134"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3514145"></a><h3>
<a name="GtkScrolledWindow--hadjustment"></a>The "<code class="literal">hadjustment</code>" property</h3>
<a class="indexterm" name="id3514160"></a><pre class="programlisting"> "hadjustment" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct</pre>
<p>The GtkAdjustment for the horizontal position.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514184"></a><h3>
<a name="GtkScrolledWindow--hscrollbar-policy"></a>The "<code class="literal">hscrollbar-policy</code>" property</h3>
<a class="indexterm" name="id3514201"></a><pre class="programlisting"> "hscrollbar-policy" <a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> : Read / Write</pre>
<p>When the horizontal scrollbar is displayed.</p>
<p>Default value: GTK_POLICY_ALWAYS</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514228"></a><h3>
<a name="GtkScrolledWindow--shadow-type"></a>The "<code class="literal">shadow-type</code>" property</h3>
<a class="indexterm" name="id3514245"></a><pre class="programlisting"> "shadow-type" <a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read / Write</pre>
<p>Style of bevel around the contents.</p>
<p>Default value: GTK_SHADOW_NONE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514272"></a><h3>
<a name="GtkScrolledWindow--vadjustment"></a>The "<code class="literal">vadjustment</code>" property</h3>
<a class="indexterm" name="id3514289"></a><pre class="programlisting"> "vadjustment" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct</pre>
<p>The GtkAdjustment for the vertical position.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514313"></a><h3>
<a name="GtkScrolledWindow--vscrollbar-policy"></a>The "<code class="literal">vscrollbar-policy</code>" property</h3>
<a class="indexterm" name="id3514330"></a><pre class="programlisting"> "vscrollbar-policy" <a href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> : Read / Write</pre>
<p>When the vertical scrollbar is displayed.</p>
<p>Default value: GTK_POLICY_ALWAYS</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514358"></a><h3>
<a name="GtkScrolledWindow--window-placement"></a>The "<code class="literal">window-placement</code>" property</h3>
<a class="indexterm" name="id3514375"></a><pre class="programlisting"> "window-placement" <a href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> : Read / Write</pre>
<p>Where the contents are located with respect to the scrollbars. This property only takes effect if "window-placement-set" is TRUE.</p>
<p>Default value: GTK_CORNER_TOP_LEFT</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514404"></a><h3>
<a name="GtkScrolledWindow--window-placement-set"></a>The "<code class="literal">window-placement-set</code>" property</h3>
<a class="indexterm" name="id3514421"></a><pre class="programlisting"> "window-placement-set" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>
Whether "window-placement" should be used to determine the location
of the contents with respect to the scrollbars. Otherwise, the
"gtk-scrolled-window-placement" setting is used.</p>
<p>
</p>
<p>Default value: FALSE</p>
<p>Since 2.10
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3514460"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3514471"></a><h3>
<a name="GtkScrolledWindow--scrollbar-spacing"></a>The "<code class="literal">scrollbar-spacing</code>" style property</h3>
<a class="indexterm" name="id3514489"></a><pre class="programlisting"> "scrollbar-spacing" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read</pre>
<p>Number of pixels between the scrollbars and the scrolled window.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 3</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3514522"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3514532"></a><h3>
<a name="GtkScrolledWindow-move-focus-out"></a>The "move-focus-out" signal</h3>
<a class="indexterm" name="id3514544"></a><pre class="programlisting">void user_function (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolledwindow,
<a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolledwindow</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3514633"></a><h3>
<a name="GtkScrolledWindow-scroll-child"></a>The "scroll-child" signal</h3>
<a class="indexterm" name="id3514644"></a><pre class="programlisting">void user_function (<a href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolledwindow,
<a href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>scrolledwindow</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3514758"></a><h2>See Also</h2>
<p>
<a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>, <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>, <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>
</p>
</div>
<div class="footnotes">
<br><hr width="100" align="left">
<div class="footnote"><p><sup>[<a name="ftn.id3512063" href="#id3512063">5</a>] </sup>The scrolled window installs <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> objects in
the child window's slots using the set_scroll_adjustments_signal,
found in <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>. (Conceptually, these widgets implement a
"Scrollable" interface; because GTK+ 1.2 lacked interface support in
the object system, this interface is hackily implemented as a signal
in <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>. The GTK+ 2.0 object system would allow a clean
implementation, but it wasn't worth breaking the
API.)</p></div>
</div>
</div>
</body>
</html>