1 /* GTK - The GIMP Toolkit 2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 3 * 4 * GtkHWrapBox: Horizontal wrapping box widget 5 * Copyright (C) 1999 Tim Janik 6 * 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 3 of the License, or (at your option) any later version. 11 * 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. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library. If not, see 19 * <https://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef __GTK_HWRAP_BOX_H__ 23 #define __GTK_HWRAP_BOX_H__ 24 25 26 #include "gtkwrapbox.h" 27 28 G_BEGIN_DECLS 29 30 31 /* --- type macros --- */ 32 #define GTK_TYPE_HWRAP_BOX (gtk_hwrap_box_get_type ()) 33 #define GTK_HWRAP_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HWRAP_BOX, GtkHWrapBox)) 34 #define GTK_HWRAP_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HWRAP_BOX, GtkHWrapBoxClass)) 35 #define GTK_IS_HWRAP_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HWRAP_BOX)) 36 #define GTK_IS_HWRAP_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HWRAP_BOX)) 37 #define GTK_HWRAP_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HWRAP_BOX, GtkHWrapBoxClass)) 38 39 40 /* --- typedefs --- */ 41 typedef struct _GtkHWrapBox GtkHWrapBox; 42 typedef struct _GtkHWrapBoxClass GtkHWrapBoxClass; 43 44 45 /* --- GtkHWrapBox --- */ 46 struct _GtkHWrapBox 47 { 48 GtkWrapBox parent_widget; 49 50 /*<h2v-off>*/ 51 guint max_child_width; 52 guint max_child_height; 53 /*<h2v-on>*/ 54 }; 55 56 struct _GtkHWrapBoxClass 57 { 58 GtkWrapBoxClass parent_class; 59 }; 60 61 62 /* --- prototypes --- */ 63 GType gtk_hwrap_box_get_type (void) G_GNUC_CONST; 64 GtkWidget * gtk_hwrap_box_new (gboolean homogeneous); 65 66 67 G_END_DECLS 68 69 #endif /* __GTK_HWRAP_BOX_H__ */ 70