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 | |
28 | G_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 | |
34 | typedef struct _GtkComboBoxText GtkComboBoxText; |
35 | |
36 | GDK_AVAILABLE_IN_ALL |
37 | GType gtk_combo_box_text_get_type (void) G_GNUC_CONST; |
38 | GDK_AVAILABLE_IN_ALL |
39 | GtkWidget* gtk_combo_box_text_new (void); |
40 | GDK_AVAILABLE_IN_ALL |
41 | GtkWidget* gtk_combo_box_text_new_with_entry (void); |
42 | GDK_AVAILABLE_IN_ALL |
43 | void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box, |
44 | const char *text); |
45 | GDK_AVAILABLE_IN_ALL |
46 | void gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box, |
47 | int position, |
48 | const char *text); |
49 | GDK_AVAILABLE_IN_ALL |
50 | void gtk_combo_box_text_prepend_text (GtkComboBoxText *combo_box, |
51 | const char *text); |
52 | GDK_AVAILABLE_IN_ALL |
53 | void gtk_combo_box_text_remove (GtkComboBoxText *combo_box, |
54 | int position); |
55 | GDK_AVAILABLE_IN_ALL |
56 | void gtk_combo_box_text_remove_all (GtkComboBoxText *combo_box); |
57 | GDK_AVAILABLE_IN_ALL |
58 | char *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box); |
59 | |
60 | GDK_AVAILABLE_IN_ALL |
61 | void gtk_combo_box_text_insert (GtkComboBoxText *combo_box, |
62 | int position, |
63 | const char *id, |
64 | const char *text); |
65 | GDK_AVAILABLE_IN_ALL |
66 | void gtk_combo_box_text_append (GtkComboBoxText *combo_box, |
67 | const char *id, |
68 | const char *text); |
69 | GDK_AVAILABLE_IN_ALL |
70 | void gtk_combo_box_text_prepend (GtkComboBoxText *combo_box, |
71 | const char *id, |
72 | const char *text); |
73 | |
74 | G_END_DECLS |
75 | |
76 | #endif /* __GTK_COMBO_BOX_TEXT_H__ */ |
77 | |