Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkcombobox.h
Go to the documentation of this file.
1/* gtkcombobox.h
2 * Copyright (C) 2002, 2003 Kristian Rietveld <kris@gtk.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gtk/gtk.h> can be included directly."
22#endif
23
24#include <gtk/gtkwidget.h>
27
29
30#define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ())
31#define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox))
32#define GTK_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX, GtkComboBoxClass))
33#define GTK_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX))
34#define GTK_IS_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX))
35#define GTK_COMBO_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX, GtkComboBoxClass))
36
39
44
45/**
46 * GtkComboBoxClass:
47 * @parent_class: The parent class.
48 * @changed: Signal is emitted when the active item is changed.
49 * @format_entry_text: Signal which allows you to change how the text
50 * displayed in a combo box’s entry is displayed.
51 */
53{
55
56 /*< public >*/
57
58 /* signals */
59 void (* changed) (GtkComboBox *combo_box);
60 char *(* format_entry_text) (GtkComboBox *combo_box,
61 const char *path);
62 void (* activate) (GtkComboBox *combo_box);
63
64 /*< private >*/
65
67};
68
69
70/* construction */
81
82/* get/set active item */
87 int index_);
90 GtkTreeIter *iter);
93 GtkTreeIter *iter);
94
95/* getters and setters */
98 GtkTreeModel *model);
101
107 gpointer data,
108 GDestroyNotify destroy);
109
112 GtkSensitivityType sensitivity);
115
120 int text_column);
123
126 gboolean fixed);
129
130/* programmatic control */
135 GdkDevice *device);
138
143 int id_column);
145const char * gtk_combo_box_get_active_id (GtkComboBox *combo_box);
148 const char *active_id);
149
152 GtkWidget *child);
155
157
159
#define GDK_DEPRECATED_IN_4_10_FOR(f)
#define GDK_AVAILABLE_IN_ALL
struct _GdkDevice GdkDevice
Definition gdktypes.h:84
#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)
gboolean gtk_combo_box_set_active_id(GtkComboBox *combo_box, const char *active_id)
gboolean gtk_combo_box_get_has_entry(GtkComboBox *combo_box)
void gtk_combo_box_set_row_separator_func(GtkComboBox *combo_box, GtkTreeViewRowSeparatorFunc func, gpointer data, GDestroyNotify destroy)
void gtk_combo_box_popup_for_device(GtkComboBox *combo_box, GdkDevice *device)
void gtk_combo_box_set_id_column(GtkComboBox *combo_box, int id_column)
int gtk_combo_box_get_id_column(GtkComboBox *combo_box)
int gtk_combo_box_get_entry_text_column(GtkComboBox *combo_box)
GtkWidget * gtk_combo_box_get_child(GtkComboBox *combo_box)
gboolean gtk_combo_box_get_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter)
void gtk_combo_box_set_model(GtkComboBox *combo_box, GtkTreeModel *model)
GtkWidget * gtk_combo_box_new_with_model_and_entry(GtkTreeModel *model)
const char * gtk_combo_box_get_active_id(GtkComboBox *combo_box)
GtkTreeViewRowSeparatorFunc gtk_combo_box_get_row_separator_func(GtkComboBox *combo_box)
void gtk_combo_box_set_button_sensitivity(GtkComboBox *combo_box, GtkSensitivityType sensitivity)
gboolean gtk_combo_box_get_popup_fixed_width(GtkComboBox *combo_box)
void gtk_combo_box_set_active(GtkComboBox *combo_box, int index_)
void gtk_combo_box_set_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter)
void gtk_combo_box_set_entry_text_column(GtkComboBox *combo_box, int text_column)
int gtk_combo_box_get_active(GtkComboBox *combo_box)
GtkWidget * gtk_combo_box_new(void)
void gtk_combo_box_popdown(GtkComboBox *combo_box)
void gtk_combo_box_popup(GtkComboBox *combo_box)
GtkTreeModel * gtk_combo_box_get_model(GtkComboBox *combo_box)
GtkWidget * gtk_combo_box_new_with_entry(void)
GDK_AVAILABLE_IN_ALL GType gtk_combo_box_get_type(void) G_GNUC_CONST
void gtk_combo_box_set_child(GtkComboBox *combo_box, GtkWidget *child)
void gtk_combo_box_set_popup_fixed_width(GtkComboBox *combo_box, gboolean fixed)
GtkSensitivityType gtk_combo_box_get_button_sensitivity(GtkComboBox *combo_box)
GtkWidget * gtk_combo_box_new_with_model(GtkTreeModel *model)
GtkSensitivityType
Definition gtkenums.h:251
struct _GtkTreeModel GtkTreeModel
gboolean(* GtkTreeViewRowSeparatorFunc)(GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140
void(* activate)(GtkComboBox *combo_box)
Definition gtkcombobox.h:62
gpointer padding[7]
Definition gtkcombobox.h:66
void(* changed)(GtkComboBox *combo_box)
Definition gtkcombobox.h:59
GtkWidgetClass parent_class
Definition gtkcombobox.h:54
GtkWidget parent_instance
Definition gtkcombobox.h:42