1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2010 Christian Dywan
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __GTK_COMBO_BOX_TEXT_H__
20#define __GTK_COMBO_BOX_TEXT_H__
21
22#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gtk/gtk.h> can be included directly."
24#endif
25
26#include <gtk/gtkcombobox.h>
27
28G_BEGIN_DECLS
29
30#define GTK_TYPE_COMBO_BOX_TEXT (gtk_combo_box_text_get_type ())
31#define GTK_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxText))
32#define GTK_IS_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX_TEXT))
33
34typedef struct _GtkComboBoxText GtkComboBoxText;
35
36GDK_AVAILABLE_IN_ALL
37GType gtk_combo_box_text_get_type (void) G_GNUC_CONST;
38GDK_AVAILABLE_IN_ALL
39GtkWidget* gtk_combo_box_text_new (void);
40GDK_AVAILABLE_IN_ALL
41GtkWidget* gtk_combo_box_text_new_with_entry (void);
42GDK_AVAILABLE_IN_ALL
43void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box,
44 const char *text);
45GDK_AVAILABLE_IN_ALL
46void gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box,
47 int position,
48 const char *text);
49GDK_AVAILABLE_IN_ALL
50void gtk_combo_box_text_prepend_text (GtkComboBoxText *combo_box,
51 const char *text);
52GDK_AVAILABLE_IN_ALL
53void gtk_combo_box_text_remove (GtkComboBoxText *combo_box,
54 int position);
55GDK_AVAILABLE_IN_ALL
56void gtk_combo_box_text_remove_all (GtkComboBoxText *combo_box);
57GDK_AVAILABLE_IN_ALL
58char *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box);
59
60GDK_AVAILABLE_IN_ALL
61void gtk_combo_box_text_insert (GtkComboBoxText *combo_box,
62 int position,
63 const char *id,
64 const char *text);
65GDK_AVAILABLE_IN_ALL
66void gtk_combo_box_text_append (GtkComboBoxText *combo_box,
67 const char *id,
68 const char *text);
69GDK_AVAILABLE_IN_ALL
70void gtk_combo_box_text_prepend (GtkComboBoxText *combo_box,
71 const char *id,
72 const char *text);
73
74G_END_DECLS
75
76#endif /* __GTK_COMBO_BOX_TEXT_H__ */
77

source code of gtk/gtk/gtkcomboboxtext.h