1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * GtkVWrapBox: Vertical wrapping box widget
5 * Copyright (C) 1999 Tim Janik
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library 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 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library 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.
22 #ifndef __GTK_VWRAP_BOX_H__
23 #define __GTK_VWRAP_BOX_H__
26 #include "gtkwrapbox.h"
31 #endif /* __cplusplus */
34 /* --- type macros --- */
35 #define GTK_TYPE_VWRAP_BOX (gtk_vwrap_box_get_type ())
36 #define GTK_VWRAP_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VWRAP_BOX, GtkVWrapBox))
37 #define GTK_VWRAP_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VWRAP_BOX, GtkVWrapBoxClass))
38 #define GTK_IS_VWRAP_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VWRAP_BOX))
39 #define GTK_IS_VWRAP_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VWRAP_BOX))
40 #define GTK_VWRAP_BOX_GET_CLASS(obj) (GTK_VWRAP_BOX_CLASS (((GtkObject*) (obj))->klass))
43 /* --- typedefs --- */
44 typedef struct _GtkVWrapBox GtkVWrapBox
;
45 typedef struct _GtkVWrapBoxClass GtkVWrapBoxClass
;
48 /* --- GtkVWrapBox --- */
51 GtkWrapBox parent_widget
;
54 guint16 max_child_width
;
55 guint16 max_child_height
;
59 struct _GtkVWrapBoxClass
61 GtkWrapBoxClass parent_class
;
65 /* --- prototypes --- */
66 GtkType
gtk_vwrap_box_get_type (void);
67 GtkWidget
* gtk_vwrap_box_new (gboolean homogeneous
);
72 #endif /* __cplusplus */
75 #endif /* __GTK_VWRAP_BOX_H__ */