1 | /* GTK - The GIMP Toolkit |
2 | * |
3 | * Copyright (C) 2003 Sun Microsystems, Inc. |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 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 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public |
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
17 | * |
18 | * Authors: |
19 | * Mark McLoughlin <mark@skynet.ie> |
20 | */ |
21 | |
22 | #ifndef __GTK_EXPANDER_H__ |
23 | #define __GTK_EXPANDER_H__ |
24 | |
25 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
26 | #error "Only <gtk/gtk.h> can be included directly." |
27 | #endif |
28 | |
29 | #include <gtk/gtkwidget.h> |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define GTK_TYPE_EXPANDER (gtk_expander_get_type ()) |
34 | #define GTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPANDER, GtkExpander)) |
35 | #define GTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPANDER)) |
36 | |
37 | typedef struct _GtkExpander GtkExpander; |
38 | |
39 | GDK_AVAILABLE_IN_ALL |
40 | GType gtk_expander_get_type (void) G_GNUC_CONST; |
41 | |
42 | GDK_AVAILABLE_IN_ALL |
43 | GtkWidget *gtk_expander_new (const char *label); |
44 | GDK_AVAILABLE_IN_ALL |
45 | GtkWidget *gtk_expander_new_with_mnemonic (const char *label); |
46 | |
47 | GDK_AVAILABLE_IN_ALL |
48 | void gtk_expander_set_expanded (GtkExpander *expander, |
49 | gboolean expanded); |
50 | GDK_AVAILABLE_IN_ALL |
51 | gboolean gtk_expander_get_expanded (GtkExpander *expander); |
52 | |
53 | GDK_AVAILABLE_IN_ALL |
54 | void gtk_expander_set_label (GtkExpander *expander, |
55 | const char *label); |
56 | GDK_AVAILABLE_IN_ALL |
57 | const char * gtk_expander_get_label (GtkExpander *expander); |
58 | |
59 | GDK_AVAILABLE_IN_ALL |
60 | void gtk_expander_set_use_underline (GtkExpander *expander, |
61 | gboolean use_underline); |
62 | GDK_AVAILABLE_IN_ALL |
63 | gboolean gtk_expander_get_use_underline (GtkExpander *expander); |
64 | |
65 | GDK_AVAILABLE_IN_ALL |
66 | void gtk_expander_set_use_markup (GtkExpander *expander, |
67 | gboolean use_markup); |
68 | GDK_AVAILABLE_IN_ALL |
69 | gboolean gtk_expander_get_use_markup (GtkExpander *expander); |
70 | |
71 | GDK_AVAILABLE_IN_ALL |
72 | void gtk_expander_set_label_widget (GtkExpander *expander, |
73 | GtkWidget *label_widget); |
74 | GDK_AVAILABLE_IN_ALL |
75 | GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander); |
76 | GDK_AVAILABLE_IN_ALL |
77 | void gtk_expander_set_resize_toplevel (GtkExpander *expander, |
78 | gboolean resize_toplevel); |
79 | GDK_AVAILABLE_IN_ALL |
80 | gboolean gtk_expander_get_resize_toplevel (GtkExpander *expander); |
81 | |
82 | GDK_AVAILABLE_IN_ALL |
83 | void gtk_expander_set_child (GtkExpander *expander, |
84 | GtkWidget *child); |
85 | GDK_AVAILABLE_IN_ALL |
86 | GtkWidget * gtk_expander_get_child (GtkExpander *expander); |
87 | |
88 | |
89 | G_END_DECLS |
90 | |
91 | #endif /* __GTK_EXPANDER_H__ */ |
92 | |