1 | /* GTK - The GIMP Toolkit |
---|
2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
---|
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 | /* |
---|
21 | * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS |
---|
22 | * file for a list of people on the GTK+ Team. See the ChangeLog |
---|
23 | * files for a list of changes. These files are distributed with |
---|
24 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef __GTK_BOX_H__ |
---|
28 | #define __GTK_BOX_H__ |
---|
29 | |
---|
30 | |
---|
31 | #include <gdk/gdk.h> |
---|
32 | #include <gtk/gtkcontainer.h> |
---|
33 | |
---|
34 | |
---|
35 | #ifdef __cplusplus |
---|
36 | extern "C" { |
---|
37 | #endif /* __cplusplus */ |
---|
38 | |
---|
39 | |
---|
40 | #define GTK_TYPE_BOX (gtk_box_get_type ()) |
---|
41 | #define GTK_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BOX, GtkBox)) |
---|
42 | #define GTK_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass)) |
---|
43 | #define GTK_IS_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BOX)) |
---|
44 | #define GTK_IS_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX)) |
---|
45 | |
---|
46 | |
---|
47 | typedef struct _GtkBox GtkBox; |
---|
48 | typedef struct _GtkBoxClass GtkBoxClass; |
---|
49 | typedef struct _GtkBoxChild GtkBoxChild; |
---|
50 | |
---|
51 | struct _GtkBox |
---|
52 | { |
---|
53 | GtkContainer container; |
---|
54 | |
---|
55 | GList *children; |
---|
56 | gint16 spacing; |
---|
57 | guint homogeneous : 1; |
---|
58 | }; |
---|
59 | |
---|
60 | struct _GtkBoxClass |
---|
61 | { |
---|
62 | GtkContainerClass parent_class; |
---|
63 | }; |
---|
64 | |
---|
65 | struct _GtkBoxChild |
---|
66 | { |
---|
67 | GtkWidget *widget; |
---|
68 | guint16 padding; |
---|
69 | guint expand : 1; |
---|
70 | guint fill : 1; |
---|
71 | guint pack : 1; |
---|
72 | }; |
---|
73 | |
---|
74 | |
---|
75 | GtkType gtk_box_get_type (void); |
---|
76 | void gtk_box_pack_start (GtkBox *box, |
---|
77 | GtkWidget *child, |
---|
78 | gboolean expand, |
---|
79 | gboolean fill, |
---|
80 | guint padding); |
---|
81 | void gtk_box_pack_end (GtkBox *box, |
---|
82 | GtkWidget *child, |
---|
83 | gboolean expand, |
---|
84 | gboolean fill, |
---|
85 | guint padding); |
---|
86 | void gtk_box_pack_start_defaults (GtkBox *box, |
---|
87 | GtkWidget *widget); |
---|
88 | void gtk_box_pack_end_defaults (GtkBox *box, |
---|
89 | GtkWidget *widget); |
---|
90 | void gtk_box_set_homogeneous (GtkBox *box, |
---|
91 | gboolean homogeneous); |
---|
92 | void gtk_box_set_spacing (GtkBox *box, |
---|
93 | gint spacing); |
---|
94 | void gtk_box_reorder_child (GtkBox *box, |
---|
95 | GtkWidget *child, |
---|
96 | gint position); |
---|
97 | void gtk_box_query_child_packing (GtkBox *box, |
---|
98 | GtkWidget *child, |
---|
99 | gboolean *expand, |
---|
100 | gboolean *fill, |
---|
101 | guint *padding, |
---|
102 | GtkPackType *pack_type); |
---|
103 | void gtk_box_set_child_packing (GtkBox *box, |
---|
104 | GtkWidget *child, |
---|
105 | gboolean expand, |
---|
106 | gboolean fill, |
---|
107 | guint padding, |
---|
108 | GtkPackType pack_type); |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | #ifdef __cplusplus |
---|
113 | } |
---|
114 | #endif /* __cplusplus */ |
---|
115 | |
---|
116 | |
---|
117 | #endif /* __GTK_BOX_H__ */ |
---|