gtkhwrapbox.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 2 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, write to the
  19. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20. * Boston, MA 02111-1307, USA.
  21. */
  22. #ifndef __GTK_HWRAP_BOX_H__
  23. #define __GTK_HWRAP_BOX_H__
  24. #include "gtkwrapbox.h"
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif /* __cplusplus */
  28. /* --- type macros --- */
  29. #define GTK_TYPE_HWRAP_BOX (gtk_hwrap_box_get_type ())
  30. #define GTK_HWRAP_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HWRAP_BOX, GtkHWrapBox))
  31. #define GTK_HWRAP_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HWRAP_BOX, GtkHWrapBoxClass))
  32. #define GTK_IS_HWRAP_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HWRAP_BOX))
  33. #define GTK_IS_HWRAP_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HWRAP_BOX))
  34. #define GTK_HWRAP_BOX_GET_CLASS(obj) (GTK_HWRAP_BOX_CLASS (((GtkObject*) (obj))->klass))
  35. /* --- typedefs --- */
  36. typedef struct _GtkHWrapBox GtkHWrapBox;
  37. typedef struct _GtkHWrapBoxClass GtkHWrapBoxClass;
  38. /* --- GtkHWrapBox --- */
  39. struct _GtkHWrapBox
  40. {
  41. GtkWrapBox parent_widget;
  42. /*<h2v-off>*/
  43. guint16 max_child_width;
  44. guint16 max_child_height;
  45. /*<h2v-on>*/
  46. };
  47. struct _GtkHWrapBoxClass
  48. {
  49. GtkWrapBoxClass parent_class;
  50. };
  51. /* --- prototypes --- */
  52. GtkType gtk_hwrap_box_get_type (void);
  53. GtkWidget* gtk_hwrap_box_new (gboolean homogeneous);
  54. #ifdef __cplusplus
  55. }
  56. #endif /* __cplusplus */
  57. #endif /* __GTK_HWRAP_BOX_H__ */