<refentry id="GtkViewport">
<refmeta>
<refentrytitle>GtkViewport</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkViewport</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

#include &lt;gtk/gtk.h&gt;


struct      <link linkend="GtkViewport-struct">GtkViewport</link>;
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="gtk-viewport-new">gtk_viewport_new</link>                (<link linkend="GtkAdjustment">GtkAdjustment</link> *hadjustment,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadjustment);
<link linkend="GtkAdjustment">GtkAdjustment</link>* <link linkend="gtk-viewport-get-hadjustment">gtk_viewport_get_hadjustment</link> (<link linkend="GtkViewport">GtkViewport</link> *viewport);
<link linkend="GtkAdjustment">GtkAdjustment</link>* <link linkend="gtk-viewport-get-vadjustment">gtk_viewport_get_vadjustment</link> (<link linkend="GtkViewport">GtkViewport</link> *viewport);
void        <link linkend="gtk-viewport-set-hadjustment">gtk_viewport_set_hadjustment</link>    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment);
void        <link linkend="gtk-viewport-set-vadjustment">gtk_viewport_set_vadjustment</link>    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment);
void        <link linkend="gtk-viewport-set-shadow-type">gtk_viewport_set_shadow_type</link>    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkShadowType">GtkShadowType</link> type);
<link linkend="GtkShadowType">GtkShadowType</link> <link linkend="gtk-viewport-get-shadow-type">gtk_viewport_get_shadow_type</link>  (<link linkend="GtkViewport">GtkViewport</link> *viewport);


</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GtkObject">GtkObject</link>
         +----<link linkend="GtkWidget">GtkWidget</link>
               +----<link linkend="GtkContainer">GtkContainer</link>
                     +----<link linkend="GtkBin">GtkBin</link>
                           +----GtkViewport
</synopsis>

</refsect1>

<refsect1>
<title>Properties</title>
<synopsis>

  &quot;<link linkend="GtkViewport--hadjustment">hadjustment</link>&quot;          <link linkend="GtkAdjustment">GtkAdjustment</link>        : Read / Write
  &quot;<link linkend="GtkViewport--vadjustment">vadjustment</link>&quot;          <link linkend="GtkAdjustment">GtkAdjustment</link>        : Read / Write
  &quot;<link linkend="GtkViewport--shadow-type">shadow-type</link>&quot;          <link linkend="GtkShadowType">GtkShadowType</link>        : Read / Write
</synopsis>
</refsect1>

<refsect1>
<title>Signal Prototypes</title>
<synopsis>

&quot;<link linkend="GtkViewport-set-scroll-adjustments">set-scroll-adjustments</link>&quot;
            void        user_function      (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg1,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);
</synopsis>
</refsect1>


<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GtkViewport-struct">struct GtkViewport</title>
<programlisting>struct GtkViewport;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-new">gtk_viewport_new ()</title>
<programlisting><link linkend="GtkWidget">GtkWidget</link>*  gtk_viewport_new                (<link linkend="GtkAdjustment">GtkAdjustment</link> *hadjustment,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadjustment);</programlisting>
<para>
Creates a new <link linkend="GtkViewport">GtkViewport</link> with the given adjustments.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>hadjustment</parameter>&nbsp;:</entry>
<entry> horizontal adjustment.
</entry></row>
<row><entry align="right"><parameter>vadjustment</parameter>&nbsp;:</entry>
<entry> vertical adjustment.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> a new <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-get-hadjustment">gtk_viewport_get_hadjustment ()</title>
<programlisting><link linkend="GtkAdjustment">GtkAdjustment</link>* gtk_viewport_get_hadjustment (<link linkend="GtkViewport">GtkViewport</link> *viewport);</programlisting>
<para>
Returns the horizontal adjustment of the viewport.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the horizontal adjustment of <parameter>viewport</parameter>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-get-vadjustment">gtk_viewport_get_vadjustment ()</title>
<programlisting><link linkend="GtkAdjustment">GtkAdjustment</link>* gtk_viewport_get_vadjustment (<link linkend="GtkViewport">GtkViewport</link> *viewport);</programlisting>
<para>
Returns the vertical adjustment of the viewport.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the vertical adjustment of <parameter>viewport</parameter>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-set-hadjustment">gtk_viewport_set_hadjustment ()</title>
<programlisting>void        gtk_viewport_set_hadjustment    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment);</programlisting>
<para>
Sets the horizontal adjustment of the viewport.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
<row><entry align="right"><parameter>adjustment</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkAdjustment">GtkAdjustment</link>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-set-vadjustment">gtk_viewport_set_vadjustment ()</title>
<programlisting>void        gtk_viewport_set_vadjustment    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment);</programlisting>
<para>
Sets the vertical adjustment of the viewport.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
<row><entry align="right"><parameter>adjustment</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkAdjustment">GtkAdjustment</link>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-set-shadow-type">gtk_viewport_set_shadow_type ()</title>
<programlisting>void        gtk_viewport_set_shadow_type    (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                             <link linkend="GtkShadowType">GtkShadowType</link> type);</programlisting>
<para>
Sets the shadow type of the viewport.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>.
</entry></row>
<row><entry align="right"><parameter>type</parameter>&nbsp;:</entry>
<entry> the new shadow type.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-viewport-get-shadow-type">gtk_viewport_get_shadow_type ()</title>
<programlisting><link linkend="GtkShadowType">GtkShadowType</link> gtk_viewport_get_shadow_type  (<link linkend="GtkViewport">GtkViewport</link> *viewport);</programlisting>
<para>
Gets the shadow type of the <link linkend="GtkViewport">GtkViewport</link>. See
<link linkend="gtk-viewport-set-shadow-type">gtk_viewport_set_shadow_type</link>().</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry> a <link linkend="GtkViewport">GtkViewport</link>
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> the shadow type 
</entry></row>
</tbody></tgroup></informaltable></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GtkViewport--hadjustment">&quot;<literal>hadjustment</literal>&quot; (<link linkend="GtkAdjustment">GtkAdjustment</link> : Read / Write)</term>
<listitem>
<para>

</para></listitem></varlistentry>
<varlistentry><term><anchor id="GtkViewport--vadjustment">&quot;<literal>vadjustment</literal>&quot; (<link linkend="GtkAdjustment">GtkAdjustment</link> : Read / Write)</term>
<listitem>
<para>

</para></listitem></varlistentry>
<varlistentry><term><anchor id="GtkViewport--shadow-type">&quot;<literal>shadow-type</literal>&quot; (<link linkend="GtkShadowType">GtkShadowType</link> : Read / Write)</term>
<listitem>
<para>

</para></listitem></varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Signals</title>
<refsect2><title><anchor id="GtkViewport-set-scroll-adjustments">The &quot;set-scroll-adjustments&quot; signal</title>
<programlisting>void        user_function                  (<link linkend="GtkViewport">GtkViewport</link> *viewport,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg1,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>viewport</parameter>&nbsp;:</entry>
<entry>the object which received the signal.
</entry></row>
<row><entry align="right"><parameter>arg1</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>arg2</parameter>&nbsp;:</entry>
<entry>

</entry></row>
<row><entry align="right"><parameter>user_data</parameter>&nbsp;:</entry>
<entry>user data set when the signal handler was connected.</entry></row>
</tbody></tgroup></informaltable></refsect2>
</refsect1>



</refentry>
