Ardour  9.0-pre0-582-g084a23a80d
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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef __GTK_COMBO_BOX_H__
21 #define __GTK_COMBO_BOX_H__
22 
23 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
25 #endif
26 
27 #include <gtk/gtkbin.h>
28 #include <gtk/gtktreemodel.h>
29 #include <gtk/gtktreeview.h>
30 
31 G_BEGIN_DECLS
32 
33 #define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ())
34 #define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox))
35 #define GTK_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX, GtkComboBoxClass))
36 #define GTK_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX))
37 #define GTK_IS_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX))
38 #define GTK_COMBO_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX, GtkComboBoxClass))
39 
40 typedef struct _GtkComboBox GtkComboBox;
41 typedef struct _GtkComboBoxClass GtkComboBoxClass;
42 typedef struct _GtkComboBoxPrivate GtkComboBoxPrivate;
43 
45 {
47 
48  /*< private >*/
50 };
51 
53 {
55 
56  /* signals */
57  void (* changed) (GtkComboBox *combo_box);
58 
59  /* vfuncs */
60  gchar * (* get_active_text) (GtkComboBox *combo_box);
61 
62  /* Padding for future expansion */
63  void (*_gtk_reserved0) (void);
64  void (*_gtk_reserved1) (void);
65  void (*_gtk_reserved2) (void);
66 };
67 
68 
69 /* construction */
70 GType gtk_combo_box_get_type (void) G_GNUC_CONST;
75 
76 /* grids */
79  gint width);
82  gint row_span);
85  gint column_span);
86 
89  gboolean add_tearoffs);
90 
91 const gchar * gtk_combo_box_get_title (GtkComboBox *combo_box);
93  const gchar *title);
94 
97  gboolean focus_on_click);
98 
99 /* get/set active item */
102  gint index_);
104  GtkTreeIter *iter);
106  GtkTreeIter *iter);
107 
108 /* getters and setters */
110  GtkTreeModel *model);
112 
116  gpointer data,
117  GDestroyNotify destroy);
118 
120  GtkSensitivityType sensitivity);
122 
125  gint text_column);
127 
128 #if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
129 
130 /* convenience -- text */
133  const gchar *text);
135  gint position,
136  const gchar *text);
138  const gchar *text);
140  gint position);
142 
143 #endif
144 
145 /* programmatic control */
149 
150 
151 G_END_DECLS
152 
153 #endif /* __GTK_COMBO_BOX_H__ */
GtkWidget * gtk_combo_box_new(void)
AtkObject * gtk_combo_box_get_popup_accessible(GtkComboBox *combo_box)
gint gtk_combo_box_get_active(GtkComboBox *combo_box)
GtkWidget * gtk_combo_box_new_text(void)
GtkWidget * gtk_combo_box_new_with_model_and_entry(GtkTreeModel *model)
void gtk_combo_box_remove_text(GtkComboBox *combo_box, gint position)
gboolean gtk_combo_box_get_has_entry(GtkComboBox *combo_box)
const gchar * gtk_combo_box_get_title(GtkComboBox *combo_box)
void gtk_combo_box_set_wrap_width(GtkComboBox *combo_box, gint width)
gchar * gtk_combo_box_get_active_text(GtkComboBox *combo_box)
void gtk_combo_box_set_row_separator_func(GtkComboBox *combo_box, GtkTreeViewRowSeparatorFunc func, gpointer data, GDestroyNotify destroy)
gint gtk_combo_box_get_row_span_column(GtkComboBox *combo_box)
gboolean gtk_combo_box_get_add_tearoffs(GtkComboBox *combo_box)
void gtk_combo_box_set_entry_text_column(GtkComboBox *combo_box, gint text_column)
gint gtk_combo_box_get_wrap_width(GtkComboBox *combo_box)
GType gtk_combo_box_get_type(void) G_GNUC_CONST
GtkTreeModel * gtk_combo_box_get_model(GtkComboBox *combo_box)
void gtk_combo_box_set_add_tearoffs(GtkComboBox *combo_box, gboolean add_tearoffs)
gboolean gtk_combo_box_get_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter)
void gtk_combo_box_set_focus_on_click(GtkComboBox *combo, gboolean focus_on_click)
gboolean gtk_combo_box_get_focus_on_click(GtkComboBox *combo)
GtkWidget * gtk_combo_box_new_with_entry(void)
void gtk_combo_box_prepend_text(GtkComboBox *combo_box, const gchar *text)
void gtk_combo_box_set_model(GtkComboBox *combo_box, GtkTreeModel *model)
gint gtk_combo_box_get_entry_text_column(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)
void gtk_combo_box_insert_text(GtkComboBox *combo_box, gint position, const gchar *text)
GtkWidget * gtk_combo_box_new_with_model(GtkTreeModel *model)
void gtk_combo_box_set_title(GtkComboBox *combo_box, const gchar *title)
gint gtk_combo_box_get_column_span_column(GtkComboBox *combo_box)
void gtk_combo_box_set_active_iter(GtkComboBox *combo_box, GtkTreeIter *iter)
void gtk_combo_box_set_active(GtkComboBox *combo_box, gint index_)
void gtk_combo_box_set_column_span_column(GtkComboBox *combo_box, gint column_span)
void gtk_combo_box_append_text(GtkComboBox *combo_box, const gchar *text)
void gtk_combo_box_popdown(GtkComboBox *combo_box)
void gtk_combo_box_popup(GtkComboBox *combo_box)
struct _GtkComboBoxPrivate GtkComboBoxPrivate
Definition: gtkcombobox.h:42
GtkSensitivityType gtk_combo_box_get_button_sensitivity(GtkComboBox *combo_box)
void gtk_combo_box_set_row_span_column(GtkComboBox *combo_box, gint row_span)
GtkSensitivityType
Definition: gtkenums.h:155
struct _GtkTreeModel GtkTreeModel
Definition: gtktreemodel.h:46
gboolean(* GtkTreeViewRowSeparatorFunc)(GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
Definition: gtktreeview.h:131
Definition: gtkbin.h:52
GtkBinClass parent_class
Definition: gtkcombobox.h:54
void(* changed)(GtkComboBox *combo_box)
Definition: gtkcombobox.h:57
void(* _gtk_reserved0)(void)
Definition: gtkcombobox.h:63
void(* _gtk_reserved1)(void)
Definition: gtkcombobox.h:64
void(* _gtk_reserved2)(void)
Definition: gtkcombobox.h:65
GtkBin parent_instance
Definition: gtkcombobox.h:46
GtkComboBoxPrivate * GSEAL(priv)
gint width
Definition: xcursors.h:1