<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkAdjustment">
<refmeta>
<refentrytitle role="top_of_page" id="GtkAdjustment.top_of_page">GtkAdjustment</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkAdjustment</refname>
<refpurpose>A representation of an adjustable bounded value</refpurpose>
</refnamediv>

<refsect1 id="GtkAdjustment.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkAdjustment"><returnvalue>GtkAdjustment</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-adjustment-new">gtk_adjustment_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-value">gtk_adjustment_get_value</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-value">gtk_adjustment_set_value</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-clamp-page">gtk_adjustment_clamp_page</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-configure">gtk_adjustment_configure</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-lower">gtk_adjustment_get_lower</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-page-increment">gtk_adjustment_get_page_increment</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-page-size">gtk_adjustment_get_page_size</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-step-increment">gtk_adjustment_get_step_increment</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-minimum-increment">gtk_adjustment_get_minimum_increment</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-get-upper">gtk_adjustment_get_upper</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-lower">gtk_adjustment_set_lower</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-page-increment">gtk_adjustment_set_page_increment</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-page-size">gtk_adjustment_set_page_size</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-step-increment">gtk_adjustment_set_step_increment</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-adjustment-set-upper">gtk_adjustment_set_upper</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAdjustment.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--lower">lower</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--page-increment">page-increment</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--page-size">page-size</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--step-increment">step-increment</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--upper">upper</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gdouble"><type>gdouble</type></link></entry><entry role="property_name"><link linkend="GtkAdjustment--value">value</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAdjustment.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="signal_proto_type" colwidth="150px"/>
<colspec colname="signal_proto_name" colwidth="300px"/>
<colspec colname="signal_proto_flags" colwidth="200px"/>
<tbody>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkAdjustment-changed">changed</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-NO-RECURSE:CAPS">No Recursion</link></entry></row>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkAdjustment-value-changed">value-changed</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-NO-RECURSE:CAPS">No Recursion</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAdjustment.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkAdjustment-struct">GtkAdjustment</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAdjustment.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkAdjustment
</screen>
</refsect1>

<refsect1 id="GtkAdjustment.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkAdjustment.description" role="desc">
<title role="desc.title">Description</title>
<para>The <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> object represents a value which has an associated lower
and upper bound, together with step and page increments, and a page size.
It is used within several GTK+ widgets, including <link linkend="GtkSpinButton"><type>GtkSpinButton</type></link>, <link linkend="GtkViewport"><type>GtkViewport</type></link>,
and <link linkend="GtkRange"><type>GtkRange</type></link> (which is a base class for <link linkend="GtkScrollbar"><type>GtkScrollbar</type></link> and <link linkend="GtkScale"><type>GtkScale</type></link>).</para>
<para>The <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> object does not update the value itself. Instead
it is left up to the owner of the <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> to control the value.</para>

</refsect1>
<refsect1 id="GtkAdjustment.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-adjustment-new" role="function">
<title>gtk_adjustment_new&#160;()</title>
<indexterm zone="gtk-adjustment-new"><primary>gtk_adjustment_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkAdjustment"><returnvalue>GtkAdjustment</returnvalue></link>&#160;*
gtk_adjustment_new (<parameter><link linkend="gdouble"><type>gdouble</type></link> value</parameter>,
                    <parameter><link linkend="gdouble"><type>gdouble</type></link> lower</parameter>,
                    <parameter><link linkend="gdouble"><type>gdouble</type></link> upper</parameter>,
                    <parameter><link linkend="gdouble"><type>gdouble</type></link> step_increment</parameter>,
                    <parameter><link linkend="gdouble"><type>gdouble</type></link> page_increment</parameter>,
                    <parameter><link linkend="gdouble"><type>gdouble</type></link> page_size</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link>.</para>
<refsect3 id="gtk-adjustment-new.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>value</para></entry>
<entry role="parameter_description"><para>the initial value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>lower</para></entry>
<entry role="parameter_description"><para>the minimum value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>upper</para></entry>
<entry role="parameter_description"><para>the maximum value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>step_increment</para></entry>
<entry role="parameter_description"><para>the step increment</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_increment</para></entry>
<entry role="parameter_description"><para>the page increment</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_size</para></entry>
<entry role="parameter_description"><para>the page size</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-new.returns" role="returns">
<title>Returns</title>
<para> a new <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-value" role="function">
<title>gtk_adjustment_get_value&#160;()</title>
<indexterm zone="gtk-adjustment-get-value"><primary>gtk_adjustment_get_value</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_value (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Gets the current value of the adjustment.
See <link linkend="gtk-adjustment-set-value"><function>gtk_adjustment_set_value()</function></link>.</para>
<refsect3 id="gtk-adjustment-get-value.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-value.returns" role="returns">
<title>Returns</title>
<para> The current value of the adjustment</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-value" role="function">
<title>gtk_adjustment_set_value&#160;()</title>
<indexterm zone="gtk-adjustment-set-value"><primary>gtk_adjustment_set_value</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_value (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> value</parameter>);</programlisting>
<para>Sets the <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> value. The value is clamped to lie between
<link linkend="GtkAdjustment--lower"><type>“lower”</type></link> and <link linkend="GtkAdjustment--upper"><type>“upper”</type></link>.</para>
<para>Note that for adjustments which are used in a <link linkend="GtkScrollbar"><type>GtkScrollbar</type></link>, the
effective range of allowed values goes from <link linkend="GtkAdjustment--lower"><type>“lower”</type></link> to
<link linkend="GtkAdjustment--upper"><type>“upper”</type></link> - <link linkend="GtkAdjustment--page-size"><type>“page-size”</type></link>.</para>
<refsect3 id="gtk-adjustment-set-value.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>value</para></entry>
<entry role="parameter_description"><para>the new value</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-clamp-page" role="function">
<title>gtk_adjustment_clamp_page&#160;()</title>
<indexterm zone="gtk-adjustment-clamp-page"><primary>gtk_adjustment_clamp_page</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_clamp_page (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                           <parameter><link linkend="gdouble"><type>gdouble</type></link> lower</parameter>,
                           <parameter><link linkend="gdouble"><type>gdouble</type></link> upper</parameter>);</programlisting>
<para>Updates the <link linkend="GtkAdjustment--value"><type>“value”</type></link> property to ensure that the range
between <parameter>lower</parameter>
 and <parameter>upper</parameter>
 is in the current page (i.e. between
<link linkend="GtkAdjustment--value"><type>“value”</type></link> and <link linkend="GtkAdjustment--value"><type>“value”</type></link> + <link linkend="GtkAdjustment--page-size"><type>“page-size”</type></link>).
If the range is larger than the page size, then only the start of it will
be in the current page.</para>
<para>A <link linkend="GtkAdjustment-value-changed"><type>“value-changed”</type></link> signal will be emitted if the value is changed.</para>
<refsect3 id="gtk-adjustment-clamp-page.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>lower</para></entry>
<entry role="parameter_description"><para>the lower value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>upper</para></entry>
<entry role="parameter_description"><para>the upper value</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-configure" role="function">
<title>gtk_adjustment_configure&#160;()</title>
<indexterm zone="gtk-adjustment-configure"><primary>gtk_adjustment_configure</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_configure (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> value</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> lower</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> upper</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> step_increment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> page_increment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> page_size</parameter>);</programlisting>
<para>Sets all properties of the adjustment at once.</para>
<para>Use this function to avoid multiple emissions of the
<link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signal. See <link linkend="gtk-adjustment-set-lower"><function>gtk_adjustment_set_lower()</function></link>
for an alternative way of compressing multiple emissions of
<link linkend="GtkAdjustment-changed"><type>“changed”</type></link> into one.</para>
<refsect3 id="gtk-adjustment-configure.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>value</para></entry>
<entry role="parameter_description"><para>the new value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>lower</para></entry>
<entry role="parameter_description"><para>the new minimum value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>upper</para></entry>
<entry role="parameter_description"><para>the new maximum value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>step_increment</para></entry>
<entry role="parameter_description"><para>the new step increment</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_increment</para></entry>
<entry role="parameter_description"><para>the new page increment</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_size</para></entry>
<entry role="parameter_description"><para>the new page size</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-lower" role="function">
<title>gtk_adjustment_get_lower&#160;()</title>
<indexterm zone="gtk-adjustment-get-lower"><primary>gtk_adjustment_get_lower</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_lower (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Retrieves the minimum value of the adjustment.</para>
<refsect3 id="gtk-adjustment-get-lower.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-lower.returns" role="returns">
<title>Returns</title>
<para> The current minimum value of the adjustment</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-page-increment" role="function">
<title>gtk_adjustment_get_page_increment&#160;()</title>
<indexterm zone="gtk-adjustment-get-page-increment"><primary>gtk_adjustment_get_page_increment</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_page_increment (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Retrieves the page increment of the adjustment.</para>
<refsect3 id="gtk-adjustment-get-page-increment.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-page-increment.returns" role="returns">
<title>Returns</title>
<para> The current page increment of the adjustment</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-page-size" role="function">
<title>gtk_adjustment_get_page_size&#160;()</title>
<indexterm zone="gtk-adjustment-get-page-size"><primary>gtk_adjustment_get_page_size</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_page_size (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Retrieves the page size of the adjustment.</para>
<refsect3 id="gtk-adjustment-get-page-size.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-page-size.returns" role="returns">
<title>Returns</title>
<para> The current page size of the adjustment</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-step-increment" role="function">
<title>gtk_adjustment_get_step_increment&#160;()</title>
<indexterm zone="gtk-adjustment-get-step-increment"><primary>gtk_adjustment_get_step_increment</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_step_increment (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Retrieves the step increment of the adjustment.</para>
<refsect3 id="gtk-adjustment-get-step-increment.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-step-increment.returns" role="returns">
<title>Returns</title>
<para> The current step increment of the adjustment.</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-minimum-increment" role="function">
<title>gtk_adjustment_get_minimum_increment&#160;()</title>
<indexterm zone="gtk-adjustment-get-minimum-increment"><primary>gtk_adjustment_get_minimum_increment</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_minimum_increment (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Gets the smaller of step increment and page increment.</para>
<refsect3 id="gtk-adjustment-get-minimum-increment.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-minimum-increment.returns" role="returns">
<title>Returns</title>
<para> the minimum increment of <parameter>adjustment</parameter>
</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-get-upper" role="function">
<title>gtk_adjustment_get_upper&#160;()</title>
<indexterm zone="gtk-adjustment-get-upper"><primary>gtk_adjustment_get_upper</primary></indexterm>
<programlisting language="C"><link linkend="gdouble"><returnvalue>gdouble</returnvalue></link>
gtk_adjustment_get_upper (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>);</programlisting>
<para>Retrieves the maximum value of the adjustment.</para>
<refsect3 id="gtk-adjustment-get-upper.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-adjustment-get-upper.returns" role="returns">
<title>Returns</title>
<para> The current maximum value of the adjustment</para>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-lower" role="function">
<title>gtk_adjustment_set_lower&#160;()</title>
<indexterm zone="gtk-adjustment-set-lower"><primary>gtk_adjustment_set_lower</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_lower (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> lower</parameter>);</programlisting>
<para>Sets the minimum value of the adjustment.</para>
<para>When setting multiple adjustment properties via their individual
setters, multiple <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signals will be emitted.
However, since the emission of the <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signal
is tied to the emission of the <link linkend="GObject-notify"><type>“notify”</type></link> signals of the changed
properties, it’s possible to compress the <link linkend="GtkAdjustment-changed"><type>“changed”</type></link>
signals into one by calling <link linkend="g-object-freeze-notify"><function>g_object_freeze_notify()</function></link> and
<link linkend="g-object-thaw-notify"><function>g_object_thaw_notify()</function></link> around the calls to the individual setters.</para>
<para>Alternatively, using a single <link linkend="g-object-set"><function>g_object_set()</function></link> for all the properties
to change, or using <link linkend="gtk-adjustment-configure"><function>gtk_adjustment_configure()</function></link> has the same effect
of compressing <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> emissions.</para>
<refsect3 id="gtk-adjustment-set-lower.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>lower</para></entry>
<entry role="parameter_description"><para>the new minimum value</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-page-increment" role="function">
<title>gtk_adjustment_set_page_increment&#160;()</title>
<indexterm zone="gtk-adjustment-set-page-increment"><primary>gtk_adjustment_set_page_increment</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_page_increment (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                                   <parameter><link linkend="gdouble"><type>gdouble</type></link> page_increment</parameter>);</programlisting>
<para>Sets the page increment of the adjustment.</para>
<para>See <link linkend="gtk-adjustment-set-lower"><function>gtk_adjustment_set_lower()</function></link> about how to compress multiple
emissions of the <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signal when setting
multiple adjustment properties.</para>
<refsect3 id="gtk-adjustment-set-page-increment.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_increment</para></entry>
<entry role="parameter_description"><para>the new page increment</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-page-size" role="function">
<title>gtk_adjustment_set_page_size&#160;()</title>
<indexterm zone="gtk-adjustment-set-page-size"><primary>gtk_adjustment_set_page_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_page_size (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                              <parameter><link linkend="gdouble"><type>gdouble</type></link> page_size</parameter>);</programlisting>
<para>Sets the page size of the adjustment.</para>
<para>See <link linkend="gtk-adjustment-set-lower"><function>gtk_adjustment_set_lower()</function></link> about how to compress multiple
emissions of the GtkAdjustment::changed signal when setting
multiple adjustment properties.</para>
<refsect3 id="gtk-adjustment-set-page-size.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>page_size</para></entry>
<entry role="parameter_description"><para>the new page size</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-step-increment" role="function">
<title>gtk_adjustment_set_step_increment&#160;()</title>
<indexterm zone="gtk-adjustment-set-step-increment"><primary>gtk_adjustment_set_step_increment</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_step_increment (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                                   <parameter><link linkend="gdouble"><type>gdouble</type></link> step_increment</parameter>);</programlisting>
<para>Sets the step increment of the adjustment.</para>
<para>See <link linkend="gtk-adjustment-set-lower"><function>gtk_adjustment_set_lower()</function></link> about how to compress multiple
emissions of the <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signal when setting
multiple adjustment properties.</para>
<refsect3 id="gtk-adjustment-set-step-increment.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>step_increment</para></entry>
<entry role="parameter_description"><para>the new step increment</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-adjustment-set-upper" role="function">
<title>gtk_adjustment_set_upper&#160;()</title>
<indexterm zone="gtk-adjustment-set-upper"><primary>gtk_adjustment_set_upper</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_adjustment_set_upper (<parameter><link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment</parameter>,
                          <parameter><link linkend="gdouble"><type>gdouble</type></link> upper</parameter>);</programlisting>
<para>Sets the maximum value of the adjustment.</para>
<para>Note that values will be restricted by <literal>upper - page-size</literal>
if the page-size property is nonzero.</para>
<para>See <link linkend="gtk-adjustment-set-lower"><function>gtk_adjustment_set_lower()</function></link> about how to compress multiple
emissions of the <link linkend="GtkAdjustment-changed"><type>“changed”</type></link> signal when setting
multiple adjustment properties.</para>
<refsect3 id="gtk-adjustment-set-upper.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>upper</para></entry>
<entry role="parameter_description"><para>the new maximum value</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkAdjustment.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkAdjustment-struct" role="struct">
<title>GtkAdjustment</title>
<indexterm zone="GtkAdjustment-struct"><primary>GtkAdjustment</primary></indexterm>
<programlisting language="C">typedef struct _GtkAdjustment GtkAdjustment;</programlisting>
<para>The <link linkend="GtkAdjustment-struct"><type>GtkAdjustment</type></link> contains only private fields and
should not be directly accessed.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkAdjustment.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkAdjustment--lower" role="property"><title>The <literal>“lower”</literal> property</title>
<indexterm zone="GtkAdjustment--lower"><primary>GtkAdjustment:lower</primary></indexterm>
<programlisting>  “lower”                    <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The minimum value of the adjustment.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkAdjustment--page-increment" role="property"><title>The <literal>“page-increment”</literal> property</title>
<indexterm zone="GtkAdjustment--page-increment"><primary>GtkAdjustment:page-increment</primary></indexterm>
<programlisting>  “page-increment”           <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The page increment of the adjustment.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkAdjustment--page-size" role="property"><title>The <literal>“page-size”</literal> property</title>
<indexterm zone="GtkAdjustment--page-size"><primary>GtkAdjustment:page-size</primary></indexterm>
<programlisting>  “page-size”                <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The page size of the adjustment.
Note that the page-size is irrelevant and should be set to zero
if the adjustment is used for a simple scalar value, e.g. in a
<link linkend="GtkSpinButton"><type>GtkSpinButton</type></link>.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkAdjustment--step-increment" role="property"><title>The <literal>“step-increment”</literal> property</title>
<indexterm zone="GtkAdjustment--step-increment"><primary>GtkAdjustment:step-increment</primary></indexterm>
<programlisting>  “step-increment”           <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The step increment of the adjustment.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkAdjustment--upper" role="property"><title>The <literal>“upper”</literal> property</title>
<indexterm zone="GtkAdjustment--upper"><primary>GtkAdjustment:upper</primary></indexterm>
<programlisting>  “upper”                    <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The maximum value of the adjustment.
Note that values will be restricted by
<literal>upper - page-size</literal> if the page-size
property is nonzero.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkAdjustment--value" role="property"><title>The <literal>“value”</literal> property</title>
<indexterm zone="GtkAdjustment--value"><primary>GtkAdjustment:value</primary></indexterm>
<programlisting>  “value”                    <link linkend="gdouble"><type>gdouble</type></link></programlisting>
<para>The value of the adjustment.</para>
<para>Owner: GtkAdjustment</para>
<para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>

</refsect1>
<refsect1 id="GtkAdjustment.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkAdjustment-changed" role="signal"><title>The <literal>“changed”</literal> signal</title>
<indexterm zone="GtkAdjustment-changed"><primary>GtkAdjustment::changed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment,
               <link linkend="gpointer"><type>gpointer</type></link>       user_data)</programlisting>
<para>Emitted when one or more of the <link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> properties have been
changed, other than the <link linkend="GtkAdjustment--value"><type>“value”</type></link> property.</para>
<refsect3 id="GtkAdjustment-changed.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>the object which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-NO-RECURSE:CAPS">No Recursion</link></para>
</refsect2><refsect2 id="GtkAdjustment-value-changed" role="signal"><title>The <literal>“value-changed”</literal> signal</title>
<indexterm zone="GtkAdjustment-value-changed"><primary>GtkAdjustment::value-changed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkAdjustment"><type>GtkAdjustment</type></link> *adjustment,
               <link linkend="gpointer"><type>gpointer</type></link>       user_data)</programlisting>
<para>Emitted when the <link linkend="GtkAdjustment--value"><type>“value”</type></link> property has been changed.</para>
<refsect3 id="GtkAdjustment-value-changed.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>adjustment</para></entry>
<entry role="parameter_description"><para>the object which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-NO-RECURSE:CAPS">No Recursion</link></para>
</refsect2>
</refsect1>

</refentry>
