1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
5 * Copyright (C) 1998 Shawn T. Amundson, James S. Mitchell, Michael L. Staiger
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
25 * file for a list of people on the GTK+ Team. See the ChangeLog
26 * files for a list of changes. These files are distributed with
27 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
30 #ifndef GTK_DISABLE_DEPRECATED
32 #ifndef __GTK_PACKER_H__
33 #define __GTK_PACKER_H__
35 #include <gtk/gtkcontainer.h>
39 #endif /* __cplusplus */
42 #define GTK_TYPE_PACKER (gtk_packer_get_type ())
43 #define GTK_PACKER(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PACKER, GtkPacker))
44 #define GTK_PACKER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PACKER, GtkPackerClass))
45 #define GTK_IS_PACKER(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PACKER))
46 #define GTK_IS_PACKER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PACKER))
47 #define GTK_PACKER_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PACKER, GtkPackerClass))
50 typedef struct _GtkPacker GtkPacker;
51 typedef struct _GtkPackerClass GtkPackerClass;
52 typedef struct _GtkPackerChild GtkPackerChild;
56 GTK_PACK_EXPAND = 1 << 0, /*< nick=expand >*/
73 GTK_ANCHOR_NORTH_WEST,
74 GTK_ANCHOR_NORTH_EAST,
76 GTK_ANCHOR_SOUTH_WEST,
77 GTK_ANCHOR_SOUTH_EAST,
80 GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
81 GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
82 GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
83 GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
84 GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
85 GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
86 GTK_ANCHOR_W = GTK_ANCHOR_WEST,
87 GTK_ANCHOR_E = GTK_ANCHOR_EAST
90 struct _GtkPackerChild
96 GtkPackerOptions options;
98 guint use_default : 1;
100 guint border_width : 16;
115 guint default_border_width : 16;
116 guint default_pad_x : 16;
117 guint default_pad_y : 16;
118 guint default_i_pad_x : 16;
119 guint default_i_pad_y : 16;
122 struct _GtkPackerClass
124 GtkContainerClass parent_class;
128 GtkType gtk_packer_get_type (void) G_GNUC_CONST;
129 GtkWidget* gtk_packer_new (void);
130 void gtk_packer_add_defaults (GtkPacker *packer,
133 GtkAnchorType anchor,
134 GtkPackerOptions options);
135 void gtk_packer_add (GtkPacker *packer,
138 GtkAnchorType anchor,
139 GtkPackerOptions options,
145 void gtk_packer_set_child_packing (GtkPacker *packer,
148 GtkAnchorType anchor,
149 GtkPackerOptions options,
155 void gtk_packer_reorder_child (GtkPacker *packer,
158 void gtk_packer_set_spacing (GtkPacker *packer,
160 void gtk_packer_set_default_border_width (GtkPacker *packer,
162 void gtk_packer_set_default_pad (GtkPacker *packer,
165 void gtk_packer_set_default_ipad (GtkPacker *packer,
172 #endif /* __cplusplus */
175 #endif /* __GTK_PACKER_H__ */
177 #endif /* GTK_DISABLE_DEPRECATED */