Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkspinbutton.h File Reference
#include <gtk/gtkwidget.h>

Go to the source code of this file.

Macros

#define GTK_TYPE_SPIN_BUTTON   (gtk_spin_button_get_type ())
 
#define GTK_SPIN_BUTTON(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton))
 
#define GTK_IS_SPIN_BUTTON(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON))
 
#define GTK_INPUT_ERROR   -1
 

Typedefs

typedef struct _GtkSpinButton GtkSpinButton
 

Enumerations

enum  GtkSpinButtonUpdatePolicy { GTK_UPDATE_ALWAYS , GTK_UPDATE_IF_VALID }
 
enum  GtkSpinType {
  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
}
 

Functions

GDK_AVAILABLE_IN_ALL GType gtk_spin_button_get_type (void) G_GNUC_CONST
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_configure (GtkSpinButton *spin_button, GtkAdjustment *adjustment, double climb_rate, guint digits)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_spin_button_new (GtkAdjustment *adjustment, double climb_rate, guint digits)
 
GDK_AVAILABLE_IN_ALL GtkWidgetgtk_spin_button_new_with_range (double min, double max, double step)
 
GDK_AVAILABLE_IN_4_14 void gtk_spin_button_set_activates_default (GtkSpinButton *spin_button, gboolean activates_default)
 
GDK_AVAILABLE_IN_4_14 gboolean gtk_spin_button_get_activates_default (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, GtkAdjustment *adjustment)
 
GDK_AVAILABLE_IN_ALL GtkAdjustmentgtk_spin_button_get_adjustment (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_digits (GtkSpinButton *spin_button, guint digits)
 
GDK_AVAILABLE_IN_ALL guint gtk_spin_button_get_digits (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_increments (GtkSpinButton *spin_button, double step, double page)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_get_increments (GtkSpinButton *spin_button, double *step, double *page)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_range (GtkSpinButton *spin_button, double min, double max)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_get_range (GtkSpinButton *spin_button, double *min, double *max)
 
GDK_AVAILABLE_IN_ALL double gtk_spin_button_get_value (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL int gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_value (GtkSpinButton *spin_button, double value)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, GtkSpinButtonUpdatePolicy policy)
 
GDK_AVAILABLE_IN_ALL GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, gboolean numeric)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_numeric (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_spin (GtkSpinButton *spin_button, GtkSpinType direction, double increment)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, gboolean wrap)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_wrap (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button, gboolean snap_to_ticks)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_climb_rate (GtkSpinButton *spin_button, double climb_rate)
 
GDK_AVAILABLE_IN_ALL double gtk_spin_button_get_climb_rate (GtkSpinButton *spin_button)
 
GDK_AVAILABLE_IN_ALL void gtk_spin_button_update (GtkSpinButton *spin_button)
 

Macro Definition Documentation

◆ GTK_INPUT_ERROR

#define GTK_INPUT_ERROR   -1

GTK_INPUT_ERROR:

Constant to return from a signal handler for the ::input signal in case of conversion failure.

See [signa.nosp@m.l@Gt.nosp@m.k.Spi.nosp@m.nBut.nosp@m.ton::input].

Definition at line 52 of file gtkspinbutton.h.

◆ GTK_IS_SPIN_BUTTON

#define GTK_IS_SPIN_BUTTON ( obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON))

Definition at line 42 of file gtkspinbutton.h.

◆ GTK_SPIN_BUTTON

#define GTK_SPIN_BUTTON ( obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton))

Definition at line 41 of file gtkspinbutton.h.

◆ GTK_TYPE_SPIN_BUTTON

#define GTK_TYPE_SPIN_BUTTON   (gtk_spin_button_get_type ())

Definition at line 40 of file gtkspinbutton.h.

Typedef Documentation

◆ GtkSpinButton

typedef struct _GtkSpinButton GtkSpinButton

Definition at line 98 of file gtkspinbutton.h.

Enumeration Type Documentation

◆ GtkSpinButtonUpdatePolicy

GtkSpinButtonUpdatePolicy: @GTK_UPDATE_ALWAYS: When refreshing your GtkSpinButton, the value is always displayed @GTK_UPDATE_IF_VALID: When refreshing your GtkSpinButton, the value is only displayed if it is valid within the bounds of the spin button's adjustment

Determines whether the spin button displays values outside the adjustment bounds.

See [metho.nosp@m.d@Gt.nosp@m.k.Spi.nosp@m.nBut.nosp@m.ton.s.nosp@m.et_u.nosp@m.pdate.nosp@m._pol.nosp@m.icy].

Enumerator
GTK_UPDATE_ALWAYS 
GTK_UPDATE_IF_VALID 

Definition at line 67 of file gtkspinbutton.h.

68{
GtkSpinButtonUpdatePolicy
@ GTK_UPDATE_IF_VALID
@ GTK_UPDATE_ALWAYS

◆ GtkSpinType

GtkSpinType: @GTK_SPIN_STEP_FORWARD: Increment by the adjustments step increment. @GTK_SPIN_STEP_BACKWARD: Decrement by the adjustments step increment. @GTK_SPIN_PAGE_FORWARD: Increment by the adjustments page increment. @GTK_SPIN_PAGE_BACKWARD: Decrement by the adjustments page increment. @GTK_SPIN_HOME: Go to the adjustments lower bound. @GTK_SPIN_END: Go to the adjustments upper bound. @GTK_SPIN_USER_DEFINED: Change by a specified amount.

The values of the GtkSpinType enumeration are used to specify the change to make in gtk_spin_button_spin().

Enumerator
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 

Definition at line 86 of file gtkspinbutton.h.

87{
GtkSpinType
@ GTK_SPIN_HOME
@ GTK_SPIN_PAGE_BACKWARD
@ GTK_SPIN_STEP_BACKWARD
@ GTK_SPIN_STEP_FORWARD
@ GTK_SPIN_END
@ GTK_SPIN_USER_DEFINED
@ GTK_SPIN_PAGE_FORWARD

Function Documentation

◆ gtk_spin_button_configure()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_configure ( GtkSpinButton * spin_button,
GtkAdjustment * adjustment,
double climb_rate,
guint digits )

◆ gtk_spin_button_get_activates_default()

GDK_AVAILABLE_IN_4_14 gboolean gtk_spin_button_get_activates_default ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_adjustment()

GDK_AVAILABLE_IN_ALL GtkAdjustment * gtk_spin_button_get_adjustment ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_climb_rate()

GDK_AVAILABLE_IN_ALL double gtk_spin_button_get_climb_rate ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_digits()

GDK_AVAILABLE_IN_ALL guint gtk_spin_button_get_digits ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_increments()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_get_increments ( GtkSpinButton * spin_button,
double * step,
double * page )

◆ gtk_spin_button_get_numeric()

GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_numeric ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_range()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_get_range ( GtkSpinButton * spin_button,
double * min,
double * max )

◆ gtk_spin_button_get_snap_to_ticks()

GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_snap_to_ticks ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_type()

GDK_AVAILABLE_IN_ALL GType gtk_spin_button_get_type ( void )

◆ gtk_spin_button_get_update_policy()

GDK_AVAILABLE_IN_ALL GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_value()

GDK_AVAILABLE_IN_ALL double gtk_spin_button_get_value ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_value_as_int()

GDK_AVAILABLE_IN_ALL int gtk_spin_button_get_value_as_int ( GtkSpinButton * spin_button)

◆ gtk_spin_button_get_wrap()

GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_wrap ( GtkSpinButton * spin_button)

◆ gtk_spin_button_new()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_spin_button_new ( GtkAdjustment * adjustment,
double climb_rate,
guint digits )

◆ gtk_spin_button_new_with_range()

GDK_AVAILABLE_IN_ALL GtkWidget * gtk_spin_button_new_with_range ( double min,
double max,
double step )

◆ gtk_spin_button_set_activates_default()

GDK_AVAILABLE_IN_4_14 void gtk_spin_button_set_activates_default ( GtkSpinButton * spin_button,
gboolean activates_default )

◆ gtk_spin_button_set_adjustment()

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

◆ gtk_spin_button_set_climb_rate()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_climb_rate ( GtkSpinButton * spin_button,
double climb_rate )

◆ gtk_spin_button_set_digits()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_digits ( GtkSpinButton * spin_button,
guint digits )

◆ gtk_spin_button_set_increments()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_increments ( GtkSpinButton * spin_button,
double step,
double page )

◆ gtk_spin_button_set_numeric()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_numeric ( GtkSpinButton * spin_button,
gboolean numeric )

◆ gtk_spin_button_set_range()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_range ( GtkSpinButton * spin_button,
double min,
double max )

◆ gtk_spin_button_set_snap_to_ticks()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_snap_to_ticks ( GtkSpinButton * spin_button,
gboolean snap_to_ticks )

◆ gtk_spin_button_set_update_policy()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_update_policy ( GtkSpinButton * spin_button,
GtkSpinButtonUpdatePolicy policy )

◆ gtk_spin_button_set_value()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_value ( GtkSpinButton * spin_button,
double value )

◆ gtk_spin_button_set_wrap()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_wrap ( GtkSpinButton * spin_button,
gboolean wrap )

◆ gtk_spin_button_spin()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_spin ( GtkSpinButton * spin_button,
GtkSpinType direction,
double increment )

◆ gtk_spin_button_update()

GDK_AVAILABLE_IN_ALL void gtk_spin_button_update ( GtkSpinButton * spin_button)