|
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>GtkSpinButton</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="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="prev" href="GtkVScale.html" title="GtkVScale">
<link rel="next" href="GtkEditable.html" title="GtkEditable">
<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="GtkVScale.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="NumericEntry.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="GtkEditable.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="#id2950787" class="shortcut">Top</a>
 | 
<a href="#id2952667" class="shortcut">Description</a>
 | 
<a href="#id2952194" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id2952247" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id2952283" class="shortcut">Properties</a>
 | 
<a href="#id2952437" class="shortcut">Style Properties</a>
 | 
<a href="#id2952472" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkSpinButton"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2950787"></a><span class="refentrytitle">GtkSpinButton</span>
</h2>
<p>GtkSpinButton — Retrieve an integer or floating-point number from the user</p>
</td>
<td valign="top" align="right"><img src="spinbutton.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkSpinButton.html#GtkSpinButton-struct">GtkSpinButton</a>;
enum <a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a>;
enum <a href="GtkSpinButton.html#GtkSpinType">GtkSpinType</a>;
void <a href="GtkSpinButton.html#gtk-spin-button-configure">gtk_spin_button_configure</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> climb_rate,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkSpinButton.html#gtk-spin-button-new">gtk_spin_button_new</a> (<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> climb_rate,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkSpinButton.html#gtk-spin-button-new-with-range">gtk_spin_button_new_with_range</a> (<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> max,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> step);
void <a href="GtkSpinButton.html#gtk-spin-button-set-adjustment">gtk_spin_button_set_adjustment</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a href="GtkSpinButton.html#gtk-spin-button-get-adjustment">gtk_spin_button_get_adjustment</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
void <a href="GtkSpinButton.html#gtk-spin-button-set-digits">gtk_spin_button_set_digits</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);
void <a href="GtkSpinButton.html#gtk-spin-button-set-increments">gtk_spin_button_set_increments</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> step,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> page);
void <a href="GtkSpinButton.html#gtk-spin-button-set-range">gtk_spin_button_set_range</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> max);
#define <a href="GtkSpinButton.html#gtk-spin-button-get-value-as-float">gtk_spin_button_get_value_as_float</a>
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkSpinButton.html#gtk-spin-button-get-value-as-int">gtk_spin_button_get_value_as_int</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
void <a href="GtkSpinButton.html#gtk-spin-button-set-value">gtk_spin_button_set_value</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);
void <a href="GtkSpinButton.html#gtk-spin-button-set-update-policy">gtk_spin_button_set_update_policy</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> policy);
void <a href="GtkSpinButton.html#gtk-spin-button-set-numeric">gtk_spin_button_set_numeric</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> numeric);
void <a href="GtkSpinButton.html#gtk-spin-button-spin">gtk_spin_button_spin</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkSpinButton.html#GtkSpinType">GtkSpinType</a> direction,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> increment);
void <a href="GtkSpinButton.html#gtk-spin-button-set-wrap">gtk_spin_button_set_wrap</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> wrap);
void <a href="GtkSpinButton.html#gtk-spin-button-set-snap-to-ticks">gtk_spin_button_set_snap_to_ticks</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> snap_to_ticks);
void <a href="GtkSpinButton.html#gtk-spin-button-update">gtk_spin_button_update</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a href="GtkSpinButton.html#gtk-spin-button-get-digits">gtk_spin_button_get_digits</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
void <a href="GtkSpinButton.html#gtk-spin-button-get-increments">gtk_spin_button_get_increments</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *step,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *page);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkSpinButton.html#gtk-spin-button-get-numeric">gtk_spin_button_get_numeric</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
void <a href="GtkSpinButton.html#gtk-spin-button-get-range">gtk_spin_button_get_range</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *max);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkSpinButton.html#gtk-spin-button-get-snap-to-ticks">gtk_spin_button_get_snap_to_ticks</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
<a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> <a href="GtkSpinButton.html#gtk-spin-button-get-update-policy">gtk_spin_button_get_update_policy</a>
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a href="GtkSpinButton.html#gtk-spin-button-get-value">gtk_spin_button_get_value</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkSpinButton.html#gtk-spin-button-get-wrap">gtk_spin_button_get_wrap</a> (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);
#define <a href="GtkSpinButton.html#GTK-INPUT-ERROR:CAPS">GTK_INPUT_ERROR</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2952194"></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="GtkEntry.html" title="GtkEntry">GtkEntry</a>
+----GtkSpinButton
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2952247"></a><h2>Implemented Interfaces</h2>
<p>
GtkSpinButton implements
AtkImplementorIface, <a href="GtkCellEditable.html" title="GtkCellEditable">GtkCellEditable</a> and <a href="GtkEditable.html" title="GtkEditable">GtkEditable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2952283"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkSpinButton.html#GtkSpinButton--adjustment">adjustment</a>" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--climb-rate">climb-rate</a>" <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--digits">digits</a>" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--numeric">numeric</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--snap-to-ticks">snap-to-ticks</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--update-policy">update-policy</a>" <a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--value">value</a>" <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> : Read / Write
"<a href="GtkSpinButton.html#GtkSpinButton--wrap">wrap</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2952437"></a><h2>Style Properties</h2>
<pre class="synopsis">
"<a href="GtkSpinButton.html#GtkSpinButton--shadow-type">shadow-type</a>" <a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2952472"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkSpinButton.html#GtkSpinButton-change-value">change-value</a>"
void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkSpinButton.html#GtkSpinButton-input">input</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkSpinButton.html#GtkSpinButton-output">output</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkSpinButton.html#GtkSpinButton-value-changed">value-changed</a>"
void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkSpinButton.html#GtkSpinButton-wrapped">wrapped</a>" void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2952667"></a><h2>Description</h2>
<p>
A <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a> is an ideal way to allow the user to set the value of some
attribute. Rather than having to directly type a number into a <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>,
<a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a> allows the user to click on one of two arrows to increment or
decrement the displayed value. A value can still be typed in, with the bonus
that it can be checked to ensure it is in a given range.
</p>
<p>
The main properties of a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a> are through a <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. See the
<a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> section for more details about an adjustment's properties.
</p>
<p>
</p>
<div class="example">
<a name="id2952742"></a><p class="title"><b>Example 1. Using a <span class="structname">GtkSpinButton</span> to get an integer.</b></p>
<pre class="programlisting">
/* Provides a function to retrieve an integer value from a GtkSpinButton
* and creates a spin button to model percentage values.
*/
gint grab_int_value (GtkSpinButton *a_spinner, gpointer user_data) {
return gtk_spin_button_get_value_as_int (a_spinner);
}
void create_integer_spin_button (void) {
GtkWidget *window, *spinner;
GtkAdjustment *spinner_adj;
spinner_adj = (GtkAdjustment *) gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 5.0);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width (GTK_CONTAINER (window), 5);
/* creates the spinner, with no decimal places */
spinner = gtk_spin_button_new (spinner_adj, 1.0, 0);
gtk_container_add (GTK_CONTAINER (window), spinner);
gtk_widget_show_all (window);
return;
}
</pre>
</div>
<p>
</p>
<p>
</p>
<div class="example">
<a name="id2952775"></a><p class="title"><b>Example 2. Using a <span class="structname">GtkSpinButton</span> to get a floating point value.</b></p>
<pre class="programlisting">
/* Provides a function to retrieve a floating point value from a
* GtkSpinButton, and creates a high precision spin button.
*/
gfloat grab_int_value (GtkSpinButton *a_spinner, gpointer user_data) {
return gtk_spin_button_get_value (a_spinner);
}
void create_floating_spin_button (void) {
GtkWidget *window, *spinner;
GtkAdjustment *spinner_adj;
spinner_adj = (GtkAdjustment *) gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.1);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width (GTK_CONTAINER (window), 5);
/* creates the spinner, with three decimal places */
spinner = gtk_spin_button_new (spinner_adj, 0.001, 3);
gtk_container_add (GTK_CONTAINER (window), spinner);
gtk_widget_show_all (window);
return;
}
</pre>
</div>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2952807"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2952817"></a><h3>
<a name="GtkSpinButton-struct"></a>GtkSpinButton</h3>
<a class="indexterm" name="id2952830"></a><pre class="programlisting">typedef struct _GtkSpinButton GtkSpinButton;</pre>
<p>
<em class="structfield"><code>entry</code></em> is the <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> part of the <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
widget, and can be used accordingly. All other fields contain private data
and should only be modified using the functions below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2952868"></a><h3>
<a name="GtkSpinButtonUpdatePolicy"></a>enum GtkSpinButtonUpdatePolicy</h3>
<a class="indexterm" name="id2952882"></a><pre class="programlisting">typedef enum
{
GTK_UPDATE_ALWAYS,
GTK_UPDATE_IF_VALID
} GtkSpinButtonUpdatePolicy;
</pre>
<p>
</p>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col>
<col>
</colgroup>
<tbody>
<tr>
<td>GTK_UPDATE_ALWAYS</td>
<td>When refreshing your <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>, the value is always displayed.</td>
</tr>
<tr>
<td>GTK_UPDATE_IF_VALID</td>
<td>When refreshing your <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>, the value is only displayed if it is valid within the bounds of the spin button's <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2952972"></a><h3>
<a name="GtkSpinType"></a>enum GtkSpinType</h3>
<a class="indexterm" name="id2952984"></a><pre class="programlisting">typedef enum
{
GTK_SPIN_STEP_FORWARD,
GTK_SPIN_STEP_BACKWARD,
GTK_SPIN_PAGE_FORWARD,
GTK_SPIN_PAGE_BACKWARD,
GTK_SPIN_HOME,
GTK_SPIN_END,
GTK_SPIN_USER_DEFINED
} GtkSpinType;
</pre>
<p>
</p>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col>
<col>
</colgroup>
<tbody>
<tr>
<td>GTK_SPIN_STEP_FORWARD,
GTK_SPIN_STEP_BACKWARD,
GTK_SPIN_PAGE_FORWARD,
GTK_SPIN_PAGE_BACKWARD</td>
<td>These values spin a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a> by the relevant values of the spin button's <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</td>
</tr>
<tr>
<td>GTK_SPIN_HOME,
GTK_SPIN_END</td>
<td>These set the spin button's value to the minimum or maxmimum possible values, (set by its <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>), respectively.</td>
</tr>
<tr>
<td>GTK_SPIN_USER_DEFINED</td>
<td>The programmer must specify the exact amount to spin the <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>.</td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953093"></a><h3>
<a name="gtk-spin-button-configure"></a>gtk_spin_button_configure ()</h3>
<a class="indexterm" name="id2953107"></a><pre class="programlisting">void gtk_spin_button_configure (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> climb_rate,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);</pre>
<p>
Changes the properties of an existing spin button. The adjustment, climb rate, and number of decimal places are all changed accordingly, after this function call.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td>a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>adjustment</code></em> :</span></td>
<td>a <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>climb_rate</code></em> :</span></td>
<td>the new climb rate.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>digits</code></em> :</span></td>
<td>the number of decimal places to display in the spin button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953237"></a><h3>
<a name="gtk-spin-button-new"></a>gtk_spin_button_new ()</h3>
<a class="indexterm" name="id2953250"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_spin_button_new (<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> climb_rate,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);</pre>
<p>
Creates a new <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>adjustment</code></em> :</span></td>
<td>the <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> object that this spin button should use.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>climb_rate</code></em> :</span></td>
<td>specifies how much the spin button changes when an arrow is clicked on.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>digits</code></em> :</span></td>
<td>the number of decimal places to display.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>The new spin button as a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953375"></a><h3>
<a name="gtk-spin-button-new-with-range"></a>gtk_spin_button_new_with_range ()</h3>
<a class="indexterm" name="id2953388"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_spin_button_new_with_range (<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> max,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> step);</pre>
<p>
This is a convenience constructor that allows creation of a numeric
<a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a> without manually creating an adjustment. The value is
initially set to the minimum value and a page increment of 10 * <em class="parameter"><code>step</code></em>
is the default. The precision of the spin button is equivalent to the
precision of <em class="parameter"><code>step</code></em>.
</p>
<p>
Note that the way in which the precision is derived works best if <em class="parameter"><code>step</code></em>
is a power of ten. If the resulting precision is not suitable for your
needs, use <a href="GtkSpinButton.html#gtk-spin-button-set-digits"><code class="function">gtk_spin_button_set_digits()</code></a> to correct it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>min</code></em> :</span></td>
<td> Minimum allowable value
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>max</code></em> :</span></td>
<td> Maximum allowable value
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>step</code></em> :</span></td>
<td> Increment added or subtracted by spinning the widget
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The new spin button as a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953547"></a><h3>
<a name="gtk-spin-button-set-adjustment"></a>gtk_spin_button_set_adjustment ()</h3>
<a class="indexterm" name="id2953561"></a><pre class="programlisting">void gtk_spin_button_set_adjustment (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre>
<p>
Replaces the <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> associated with <em class="parameter"><code>spin_button</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>adjustment</code></em> :</span></td>
<td> a <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> to replace the existing adjustment
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953664"></a><h3>
<a name="gtk-spin-button-get-adjustment"></a>gtk_spin_button_get_adjustment ()</h3>
<a class="indexterm" name="id2953677"></a><pre class="programlisting"><a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_spin_button_get_adjustment
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Get the adjustment associated with a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> of <em class="parameter"><code>spin_button</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953769"></a><h3>
<a name="gtk-spin-button-set-digits"></a>gtk_spin_button_set_digits ()</h3>
<a class="indexterm" name="id2953783"></a><pre class="programlisting">void gtk_spin_button_set_digits (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> digits);</pre>
<p>
Set the precision to be displayed by <em class="parameter"><code>spin_button</code></em>. Up to 20 digit precision
is allowed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>digits</code></em> :</span></td>
<td> the number of digits after the decimal point to be displayed for the spin button's value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953870"></a><h3>
<a name="gtk-spin-button-set-increments"></a>gtk_spin_button_set_increments ()</h3>
<a class="indexterm" name="id2953883"></a><pre class="programlisting">void gtk_spin_button_set_increments (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> step,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> page);</pre>
<p>
Sets the step and page increments for spin_button. This affects how
quickly the value changes when the spin button's arrows are activated.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>step</code></em> :</span></td>
<td> increment applied for a button 1 press.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>page</code></em> :</span></td>
<td> increment applied for a button 2 press.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2953988"></a><h3>
<a name="gtk-spin-button-set-range"></a>gtk_spin_button_set_range ()</h3>
<a class="indexterm" name="id2954002"></a><pre class="programlisting">void gtk_spin_button_set_range (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> max);</pre>
<p>
Sets the minimum and maximum allowable values for <em class="parameter"><code>spin_button</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>min</code></em> :</span></td>
<td> minimum allowable value
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>max</code></em> :</span></td>
<td> maximum allowable value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954108"></a><h3>
<a name="gtk-spin-button-get-value-as-float"></a>gtk_spin_button_get_value_as_float</h3>
<a class="indexterm" name="id2954124"></a><pre class="programlisting">#define gtk_spin_button_get_value_as_float gtk_spin_button_get_value
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_spin_button_get_value_as_float</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Gets the value in the <em class="parameter"><code>spin_button</code></em>. This function is deprecated,
use <a href="GtkSpinButton.html#gtk-spin-button-get-value"><code class="function">gtk_spin_button_get_value()</code></a> instead.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>the value of <em class="parameter"><code>spin_button</code></em>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954191"></a><h3>
<a name="gtk-spin-button-get-value-as-int"></a>gtk_spin_button_get_value_as_int ()</h3>
<a class="indexterm" name="id2954205"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_spin_button_get_value_as_int
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Get the value <em class="parameter"><code>spin_button</code></em> represented as an integer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the value of <em class="parameter"><code>spin_button</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954287"></a><h3>
<a name="gtk-spin-button-set-value"></a>gtk_spin_button_set_value ()</h3>
<a class="indexterm" name="id2954301"></a><pre class="programlisting">void gtk_spin_button_set_value (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);</pre>
<p>
Set the value of <em class="parameter"><code>spin_button</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value</code></em> :</span></td>
<td> the new value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954386"></a><h3>
<a name="gtk-spin-button-set-update-policy"></a>gtk_spin_button_set_update_policy ()</h3>
<a class="indexterm" name="id2954400"></a><pre class="programlisting">void gtk_spin_button_set_update_policy
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> policy);</pre>
<p>
Sets the update behavior of a spin button. This determines whether the
spin button is always updated or only when a valid value is set.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>policy</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy"><span class="type">GtkSpinButtonUpdatePolicy</span></a> value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954492"></a><h3>
<a name="gtk-spin-button-set-numeric"></a>gtk_spin_button_set_numeric ()</h3>
<a class="indexterm" name="id2954505"></a><pre class="programlisting">void gtk_spin_button_set_numeric (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> numeric);</pre>
<p>
Sets the flag that determines if non-numeric text can be typed into
the spin button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>numeric</code></em> :</span></td>
<td> flag indicating if only numeric entry is allowed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954586"></a><h3>
<a name="gtk-spin-button-spin"></a>gtk_spin_button_spin ()</h3>
<a class="indexterm" name="id2954600"></a><pre class="programlisting">void gtk_spin_button_spin (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a href="GtkSpinButton.html#GtkSpinType">GtkSpinType</a> direction,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> increment);</pre>
<p>
Increment or decrement a spin button's value in a specified direction
by a specified amount.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>direction</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html#GtkSpinType"><span class="type">GtkSpinType</span></a> indicating the direction to spin.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>increment</code></em> :</span></td>
<td> step increment to apply in the specified direction.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954711"></a><h3>
<a name="gtk-spin-button-set-wrap"></a>gtk_spin_button_set_wrap ()</h3>
<a class="indexterm" name="id2954724"></a><pre class="programlisting">void gtk_spin_button_set_wrap (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> wrap);</pre>
<p>
Sets the flag that determines if a spin button value wraps around to the
opposite limit when the upper or lower limit of the range is exceeded.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wrap</code></em> :</span></td>
<td> a flag indicating if wrapping behavior is performed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954807"></a><h3>
<a name="gtk-spin-button-set-snap-to-ticks"></a>gtk_spin_button_set_snap_to_ticks ()</h3>
<a class="indexterm" name="id2954821"></a><pre class="programlisting">void gtk_spin_button_set_snap_to_ticks
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> snap_to_ticks);</pre>
<p>
Sets the policy as to whether values are corrected to the nearest step
increment when a spin button is activated after providing an invalid value.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>snap_to_ticks</code></em> :</span></td>
<td> a flag indicating if invalid values should be corrected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954905"></a><h3>
<a name="gtk-spin-button-update"></a>gtk_spin_button_update ()</h3>
<a class="indexterm" name="id2954918"></a><pre class="programlisting">void gtk_spin_button_update (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Manually force an update of the spin button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954977"></a><h3>
<a name="gtk-spin-button-get-digits"></a>gtk_spin_button_get_digits ()</h3>
<a class="indexterm" name="id2954991"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> gtk_spin_button_get_digits (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Fetches the precision of <em class="parameter"><code>spin_button</code></em>. See <a href="GtkSpinButton.html#gtk-spin-button-set-digits"><code class="function">gtk_spin_button_set_digits()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current precision
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955076"></a><h3>
<a name="gtk-spin-button-get-increments"></a>gtk_spin_button_get_increments ()</h3>
<a class="indexterm" name="id2955090"></a><pre class="programlisting">void gtk_spin_button_get_increments (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *step,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *page);</pre>
<p>
Gets the current step and page the increments used by <em class="parameter"><code>spin_button</code></em>. See
<a href="GtkSpinButton.html#gtk-spin-button-set-increments"><code class="function">gtk_spin_button_set_increments()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>step</code></em> :</span></td>
<td> location to store step increment, 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>page</code></em> :</span></td>
<td> location to store page increment, 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="id2955230"></a><h3>
<a name="gtk-spin-button-get-numeric"></a>gtk_spin_button_get_numeric ()</h3>
<a class="indexterm" name="id2955244"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_spin_button_get_numeric (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Returns whether non-numeric text can be typed into the spin button.
See <a href="GtkSpinButton.html#gtk-spin-button-set-numeric"><code class="function">gtk_spin_button_set_numeric()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if only numeric text can be entered
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955335"></a><h3>
<a name="gtk-spin-button-get-range"></a>gtk_spin_button_get_range ()</h3>
<a class="indexterm" name="id2955349"></a><pre class="programlisting">void gtk_spin_button_get_range (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *min,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *max);</pre>
<p>
Gets the range allowed for <em class="parameter"><code>spin_button</code></em>. See
<a href="GtkSpinButton.html#gtk-spin-button-set-range"><code class="function">gtk_spin_button_set_range()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>min</code></em> :</span></td>
<td> location to store minimum allowed value, 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>max</code></em> :</span></td>
<td> location to store maximum allowed value, 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="id2955487"></a><h3>
<a name="gtk-spin-button-get-snap-to-ticks"></a>gtk_spin_button_get_snap_to_ticks ()</h3>
<a class="indexterm" name="id2955501"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_spin_button_get_snap_to_ticks
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Returns whether the values are corrected to the nearest step. See
<a href="GtkSpinButton.html#gtk-spin-button-set-snap-to-ticks"><code class="function">gtk_spin_button_set_snap_to_ticks()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if values are snapped to the nearest step.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955593"></a><h3>
<a name="gtk-spin-button-get-update-policy"></a>gtk_spin_button_get_update_policy ()</h3>
<a class="indexterm" name="id2955607"></a><pre class="programlisting"><a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> gtk_spin_button_get_update_policy
(<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Gets the update behavior of a spin button. See
<a href="GtkSpinButton.html#gtk-spin-button-set-update-policy"><code class="function">gtk_spin_button_set_update_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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the current update policy
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955688"></a><h3>
<a name="gtk-spin-button-get-value"></a>gtk_spin_button_get_value ()</h3>
<a class="indexterm" name="id2955702"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gtk_spin_button_get_value (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Get the value in the <em class="parameter"><code>spin_button</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the value of <em class="parameter"><code>spin_button</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955782"></a><h3>
<a name="gtk-spin-button-get-wrap"></a>gtk_spin_button_get_wrap ()</h3>
<a class="indexterm" name="id2955794"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_spin_button_get_wrap (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spin_button);</pre>
<p>
Returns whether the spin button's value wraps around to the
opposite limit when the upper or lower limit of the range is
exceeded. See <a href="GtkSpinButton.html#gtk-spin-button-set-wrap"><code class="function">gtk_spin_button_set_wrap()</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>spin_button</code></em> :</span></td>
<td> a <a href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the spin button wraps around
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955886"></a><h3>
<a name="GTK-INPUT-ERROR:CAPS"></a>GTK_INPUT_ERROR</h3>
<a class="indexterm" name="id2955900"></a><pre class="programlisting">#define GTK_INPUT_ERROR -1
</pre>
<p>
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2955915"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2955926"></a><h3>
<a name="GtkSpinButton--adjustment"></a>The "<code class="literal">adjustment</code>" property</h3>
<a class="indexterm" name="id2955942"></a><pre class="programlisting"> "adjustment" <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write</pre>
<p>The adjustment that holds the value of the spinbutton.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955966"></a><h3>
<a name="GtkSpinButton--climb-rate"></a>The "<code class="literal">climb-rate</code>" property</h3>
<a class="indexterm" name="id2955982"></a><pre class="programlisting"> "climb-rate" <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> : Read / Write</pre>
<p>The acceleration rate when you hold down a button.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956013"></a><h3>
<a name="GtkSpinButton--digits"></a>The "<code class="literal">digits</code>" property</h3>
<a class="indexterm" name="id2956029"></a><pre class="programlisting"> "digits" <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> : Read / Write</pre>
<p>The number of decimal places to display.</p>
<p>Allowed values: <= 20</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956060"></a><h3>
<a name="GtkSpinButton--numeric"></a>The "<code class="literal">numeric</code>" property</h3>
<a class="indexterm" name="id2956076"></a><pre class="programlisting"> "numeric" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether non-numeric characters should be ignored.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956103"></a><h3>
<a name="GtkSpinButton--snap-to-ticks"></a>The "<code class="literal">snap-to-ticks</code>" property</h3>
<a class="indexterm" name="id2956120"></a><pre class="programlisting"> "snap-to-ticks" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether erroneous values are automatically changed to a spin button's nearest step increment.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956147"></a><h3>
<a name="GtkSpinButton--update-policy"></a>The "<code class="literal">update-policy</code>" property</h3>
<a class="indexterm" name="id2956164"></a><pre class="programlisting"> "update-policy" <a href="GtkSpinButton.html#GtkSpinButtonUpdatePolicy">GtkSpinButtonUpdatePolicy</a> : Read / Write</pre>
<p>Whether the spin button should update always, or only when the value is legal.</p>
<p>Default value: GTK_UPDATE_ALWAYS</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956193"></a><h3>
<a name="GtkSpinButton--value"></a>The "<code class="literal">value</code>" property</h3>
<a class="indexterm" name="id2956209"></a><pre class="programlisting"> "value" <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> : Read / Write</pre>
<p>Reads the current value, or sets a new value.</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956236"></a><h3>
<a name="GtkSpinButton--wrap"></a>The "<code class="literal">wrap</code>" property</h3>
<a class="indexterm" name="id2956251"></a><pre class="programlisting"> "wrap" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether a spin button should wrap upon reaching its limits.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2956280"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="id2956291"></a><h3>
<a name="GtkSpinButton--shadow-type"></a>The "<code class="literal">shadow-type</code>" style property</h3>
<a class="indexterm" name="id2956307"></a><pre class="programlisting"> "shadow-type" <a href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read</pre>
<p>
the type of border that surrounds the arrows of a spin button.
</p>
<p>Default value: GTK_SHADOW_IN</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2956336"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2956346"></a><h3>
<a name="GtkSpinButton-change-value"></a>The "change-value" signal</h3>
<a class="indexterm" name="id2956357"></a><pre class="programlisting">void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a href="gtk-Standard-Enumerations.html#GtkScrollType">GtkScrollType</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>spinbutton</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="id2956447"></a><h3>
<a name="GtkSpinButton-input"></a>The "input" signal</h3>
<a class="indexterm" name="id2956458"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spinbutton</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>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956557"></a><h3>
<a name="GtkSpinButton-output"></a>The "output" signal</h3>
<a class="indexterm" name="id2956567"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spinbutton</code></em> :</span></td>
<td>the object which received the signal.
</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>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956646"></a><h3>
<a name="GtkSpinButton-value-changed"></a>The "value-changed" signal</h3>
<a class="indexterm" name="id2956656"></a><pre class="programlisting">void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spinbutton</code></em> :</span></td>
<td>the object which received the signal.
</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="id2956725"></a><h3>
<a name="GtkSpinButton-wrapped"></a>The "wrapped" signal</h3>
<a class="indexterm" name="id2956735"></a><pre class="programlisting">void user_function (<a href="GtkSpinButton.html" title="GtkSpinButton">GtkSpinButton</a> *spinbutton,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
The wrapped signal is emitted right after the spinbutton wraps
from its maximum to minimum value or vice-versa.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>spinbutton</code></em> :</span></td>
<td> the object which received the signal
</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>
<p>Since 2.10
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2956816"></a><h2>See Also</h2>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a></span></td>
<td><p>retrieve text rather than numbers.</p></td>
</tr></tbody>
</table></div>
<p>
</p>
</div>
</div>
</body>
</html>