Webhosting and cheap domain registration service
  

 Home

GTK Classes
Prev GtkSpinButton Next

GtkSpinButton

Widget offering masked numerical entry and/or selection.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkEditable
              `-- GtkEntry
                     `-- GtkSpinButton

Description

A GtkSpinButton is a widget offering a displayed numerical value which can be incremented or decremented within a pre-set range by the user's clicking on one of two arrow buttons, or by using the Up and Down arrow keys.

The display area is a GtkEntry; the spinbutton object currently provides the only built-in means of masking input in GTK+. If you want to restrict the user to the values displayed rather than allowing keyboard input, call set_editable() from the spinbutton.

See also: GtkAdjustment, GtkCombo.

Constructor

GtkSpinButton ([ GtkAdjustment adjustment = NULL , [double climb_rate = 0.0 , [int digits = 0 ]]]);

-- Creates an editable rotating display of selectable numbers.

Methods

configure()
  Configures all elements of a spinbutton.
set_adjustment()
  Sets adjustment object.
get_adjustment()
  Retrieves adjustment object.
set_digits()
  Sets number of decimal places displayed.
get_value_as_float()
  Retrieves value as float.
get_value_as_int()
  Retrieves value as integer.
set_value()
  Sets value displayed in spinbutton entry field.
set_update_policy()
  Controls update policy.
set_numeric()
  Toggles the way non-numeric input is treated in display.
spin()
  Forces a spin.
set_wrap()
  Toggles whether the display wraps.
set_shadow_type()
  Controls appearance of spinbutton.
set_snap_to_ticks()
  Toggles whether input is aligned with increment.
update()
  Updates value according to settings.


Prev Home Next
GtkSocket::steal Up GtkSpinButton Constructor

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
The most common error made in matters of appearance is the belief that one should disdain the superficial and let the true beauty of one's soul shine through. If there are places on your body where this is a possibility, you are not attractive - you are leaking.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php