Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkspinbutton.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
4 * GtkSpinButton widget for GTK+
5 * Copyright (C) 1998 Lars Hamann and Stefan Jeske
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21/*
22 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
23 * file for a list of people on the GTK+ Team. See the ChangeLog
24 * files for a list of changes. These files are distributed with
25 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
26 */
27
28#pragma once
29
30
31#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
32#error "Only <gtk/gtk.h> can be included directly."
33#endif
34
35#include <gtk/gtkwidget.h>
36
37
39
40#define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ())
41#define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton))
42#define GTK_IS_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON))
43
44/**
45 * GTK_INPUT_ERROR:
46 *
47 * Constant to return from a signal handler for the ::input
48 * signal in case of conversion failure.
49 *
50 * See [signal@Gtk.SpinButton::input].
51 */
52#define GTK_INPUT_ERROR -1
53
54/**
55 * GtkSpinButtonUpdatePolicy:
56 * @GTK_UPDATE_ALWAYS: When refreshing your `GtkSpinButton`, the value is
57 * always displayed
58 * @GTK_UPDATE_IF_VALID: When refreshing your `GtkSpinButton`, the value is
59 * only displayed if it is valid within the bounds of the spin button's
60 * adjustment
61 *
62 * Determines whether the spin button displays values outside the adjustment
63 * bounds.
64 *
65 * See [method@Gtk.SpinButton.set_update_policy].
66 */
72
73/**
74 * GtkSpinType:
75 * @GTK_SPIN_STEP_FORWARD: Increment by the adjustments step increment.
76 * @GTK_SPIN_STEP_BACKWARD: Decrement by the adjustments step increment.
77 * @GTK_SPIN_PAGE_FORWARD: Increment by the adjustments page increment.
78 * @GTK_SPIN_PAGE_BACKWARD: Decrement by the adjustments page increment.
79 * @GTK_SPIN_HOME: Go to the adjustments lower bound.
80 * @GTK_SPIN_END: Go to the adjustments upper bound.
81 * @GTK_SPIN_USER_DEFINED: Change by a specified amount.
82 *
83 * The values of the GtkSpinType enumeration are used to specify the
84 * change to make in gtk_spin_button_spin().
85 */
96
97
98typedef struct _GtkSpinButton GtkSpinButton;
99
102
105 GtkAdjustment *adjustment,
106 double climb_rate,
107 guint digits);
108
111 double climb_rate,
112 guint digits);
113
116 double max,
117 double step);
118
121 gboolean activates_default);
122
125
128 GtkAdjustment *adjustment);
129
132
135 guint digits);
138
141 double step,
142 double page);
145 double *step,
146 double *page);
147
150 double min,
151 double max);
154 double *min,
155 double *max);
156
159
162
165 double value);
166
172
175 gboolean numeric);
178
181 GtkSpinType direction,
182 double increment);
183
186 gboolean wrap);
189
192 gboolean snap_to_ticks);
195
198 double climb_rate);
201
204
206
208
#define GDK_AVAILABLE_IN_4_14
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GtkSpinButtonUpdatePolicy
@ GTK_UPDATE_IF_VALID
@ GTK_UPDATE_ALWAYS
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_snap_to_ticks(GtkSpinButton *spin_button, gboolean snap_to_ticks)
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_configure(GtkSpinButton *spin_button, GtkAdjustment *adjustment, double climb_rate, guint digits)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_numeric(GtkSpinButton *spin_button, gboolean numeric)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_get_range(GtkSpinButton *spin_button, double *min, double *max)
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_wrap(GtkSpinButton *spin_button)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_update_policy(GtkSpinButton *spin_button, GtkSpinButtonUpdatePolicy policy)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_value(GtkSpinButton *spin_button, double value)
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
GDK_AVAILABLE_IN_4_14 gboolean gtk_spin_button_get_activates_default(GtkSpinButton *spin_button)
GDK_AVAILABLE_IN_ALL GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy(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_range(GtkSpinButton *spin_button, double min, double max)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_spin(GtkSpinButton *spin_button, GtkSpinType direction, double increment)
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_snap_to_ticks(GtkSpinButton *spin_button)
GDK_AVAILABLE_IN_ALL GtkAdjustment * gtk_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 double gtk_spin_button_get_climb_rate(GtkSpinButton *spin_button)
struct _GtkSpinButton GtkSpinButton
GDK_AVAILABLE_IN_ALL double gtk_spin_button_get_value(GtkSpinButton *spin_button)
GDK_AVAILABLE_IN_ALL GType gtk_spin_button_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_14 void gtk_spin_button_set_activates_default(GtkSpinButton *spin_button, gboolean activates_default)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_spin_button_new_with_range(double min, double max, double step)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_climb_rate(GtkSpinButton *spin_button, double climb_rate)
GDK_AVAILABLE_IN_ALL guint gtk_spin_button_get_digits(GtkSpinButton *spin_button)
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_wrap(GtkSpinButton *spin_button, gboolean wrap)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button, GtkAdjustment *adjustment)
GDK_AVAILABLE_IN_ALL void gtk_spin_button_update(GtkSpinButton *spin_button)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_spin_button_new(GtkAdjustment *adjustment, double climb_rate, guint digits)
GDK_AVAILABLE_IN_ALL gboolean gtk_spin_button_get_numeric(GtkSpinButton *spin_button)
typedefG_BEGIN_DECLS struct _GtkAdjustment GtkAdjustment
Definition gtktypes.h:35
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
unsigned int guint
Definition gtypes.h:61
int value
Definition lsqlite3.c:2155