GtkSpinButton

Name

GtkSpinButton —

Synopsis


#include <gtk/gtk.h>


struct      GtkSpinButton;
enum        GtkSpinButtonUpdatePolicy;
enum        GtkSpinType;
void        gtk_spin_button_configure       (GtkSpinButton *spin_button,
                                             GtkAdjustment *adjustment,
                                             gfloat climb_rate,
                                             guint digits);
GtkWidget*  gtk_spin_button_new             (GtkAdjustment *adjustment,
                                             gfloat climb_rate,
                                             guint digits);
void        gtk_spin_button_set_adjustment  (GtkSpinButton *spin_button,
                                             GtkAdjustment *adjustment);
GtkAdjustment* gtk_spin_button_get_adjustment
                                            (GtkSpinButton *spin_button);
void        gtk_spin_button_set_digits      (GtkSpinButton *spin_button,
                                             guint digits);
gfloat      gtk_spin_button_get_value_as_float
                                            (GtkSpinButton *spin_button);
gint        gtk_spin_button_get_value_as_int
                                            (GtkSpinButton *spin_button);
void        gtk_spin_button_set_value       (GtkSpinButton *spin_button,
                                             gfloat value);
void        gtk_spin_button_set_update_policy
                                            (GtkSpinButton *spin_button,
                                             GtkSpinButtonUpdatePolicy policy);
void        gtk_spin_button_set_numeric     (GtkSpinButton *spin_button,
                                             gboolean numeric);
void        gtk_spin_button_spin            (GtkSpinButton *spin_button,
                                             GtkSpinType direction,
                                             gfloat increment);
void        gtk_spin_button_set_wrap        (GtkSpinButton *spin_button,
                                             gboolean wrap);
void        gtk_spin_button_set_shadow_type (GtkSpinButton *spin_button,
                                             GtkShadowType shadow_type);
void        gtk_spin_button_set_snap_to_ticks
                                            (GtkSpinButton *spin_button,
                                             gboolean snap_to_ticks);
void        gtk_spin_button_update          (GtkSpinButton *spin_button);

Object Hierarchy


  GtkObject
   +----GtkWidget
         +----GtkEditable
               +----GtkEntry
                     +----GtkSpinButton

Args


  "adjustment"           GtkAdjustment        : Read / Write
  "climb_rate"           gfloat               : Read / Write
  "digits"               guint                : Read / Write
  "snap_to_ticks"        gboolean             : Read / Write
  "numeric"              gboolean             : Read / Write
  "wrap"                 gboolean             : Read / Write
  "update_policy"        GtkSpinButtonUpdatePolicy : Read / Write
  "shadow_type"          GtkShadowType        : Read / Write
  "value"                gfloat               : Read / Write

Description

Details

struct GtkSpinButton

struct GtkSpinButton;


enum GtkSpinButtonUpdatePolicy

typedef enum
{
  GTK_UPDATE_ALWAYS,
  GTK_UPDATE_IF_VALID
} GtkSpinButtonUpdatePolicy;


enum GtkSpinType

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;


gtk_spin_button_configure ()

void        gtk_spin_button_configure       (GtkSpinButton *spin_button,
                                             GtkAdjustment *adjustment,
                                             gfloat climb_rate,
                                             guint digits);

spin_button : 
adjustment : 
climb_rate : 
digits : 


gtk_spin_button_new ()

GtkWidget*  gtk_spin_button_new             (GtkAdjustment *adjustment,
                                             gfloat climb_rate,
                                             guint digits);

adjustment : 
climb_rate : 
digits : 
Returns : 


gtk_spin_button_set_adjustment ()

void        gtk_spin_button_set_adjustment  (GtkSpinButton *spin_button,
                                             GtkAdjustment *adjustment);

spin_button : 
adjustment : 


gtk_spin_button_get_adjustment ()

GtkAdjustment* gtk_spin_button_get_adjustment
                                            (GtkSpinButton *spin_button);

spin_button : 
Returns : 


gtk_spin_button_set_digits ()

void        gtk_spin_button_set_digits      (GtkSpinButton *spin_button,
                                             guint digits);

spin_button : 
digits : 


gtk_spin_button_get_value_as_float ()

gfloat      gtk_spin_button_get_value_as_float
                                            (GtkSpinButton *spin_button);

spin_button : 
Returns : 


gtk_spin_button_get_value_as_int ()

gint        gtk_spin_button_get_value_as_int
                                            (GtkSpinButton *spin_button);

spin_button : 
Returns : 


gtk_spin_button_set_value ()

void        gtk_spin_button_set_value       (GtkSpinButton *spin_button,
                                             gfloat value);

spin_button : 
value : 


gtk_spin_button_set_update_policy ()

void        gtk_spin_button_set_update_policy
                                            (GtkSpinButton *spin_button,
                                             GtkSpinButtonUpdatePolicy policy);

spin_button : 
policy : 


gtk_spin_button_set_numeric ()

void        gtk_spin_button_set_numeric     (GtkSpinButton *spin_button,
                                             gboolean numeric);

spin_button : 
numeric : 


gtk_spin_button_spin ()

void        gtk_spin_button_spin            (GtkSpinButton *spin_button,
                                             GtkSpinType direction,
                                             gfloat increment);

spin_button : 
direction : 
increment : 


gtk_spin_button_set_wrap ()

void        gtk_spin_button_set_wrap        (GtkSpinButton *spin_button,
                                             gboolean wrap);

spin_button : 
wrap : 


gtk_spin_button_set_shadow_type ()

void        gtk_spin_button_set_shadow_type (GtkSpinButton *spin_button,
                                             GtkShadowType shadow_type);

spin_button : 
shadow_type : 


gtk_spin_button_set_snap_to_ticks ()

void        gtk_spin_button_set_snap_to_ticks
                                            (GtkSpinButton *spin_button,
                                             gboolean snap_to_ticks);

spin_button : 
snap_to_ticks : 


gtk_spin_button_update ()

void        gtk_spin_button_update          (GtkSpinButton *spin_button);

spin_button : 

Args

"adjustment" (GtkAdjustment : Read / Write)

"climb_rate" (gfloat : Read / Write)

"digits" (guint : Read / Write)

"snap_to_ticks" (gboolean : Read / Write)

"numeric" (gboolean : Read / Write)

"wrap" (gboolean : Read / Write)

"update_policy" (GtkSpinButtonUpdatePolicy : Read / Write)

"shadow_type" (GtkShadowType : Read / Write)

"value" (gfloat : Read / Write)