You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

78 lines
2.8 KiB

  1. /*
  2. * This file is partly based on OBox
  3. * Copyright (C) 2002 Red Hat Inc. based on GtkHBox
  4. *
  5. * Copyright (C) 2006-2007 Jasper Huijsmans <jasper@xfce.org>
  6. * Copyright (C) 2006 Jani Monoses <jani@ubuntu.com>
  7. * Copyright (C) 2007-2010 Nick Schermer <nick@xfce.org>
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2.1 of the License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* #if !defined(LIBXFCE4PANEL_INSIDE_LIBXFCE4PANEL_H) && !defined(LIBXFCE4PANEL_COMPILATION)
  24. #error "Only <libxfce4panel/libxfce4panel.h> can be included directly, this file may disappear or change contents"
  25. #endif */
  26. #ifndef __XFCE_HVBOX_H__
  27. #define __XFCE_HVBOX_H__
  28. #include <gtk/gtk.h>
  29. G_BEGIN_DECLS
  30. typedef struct _XfceHVBoxClass XfceHVBoxClass;
  31. typedef struct _XfceHVBox XfceHVBox;
  32. #define XFCE_TYPE_HVBOX (xfce_hvbox_get_type())
  33. #define XFCE_HVBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, XFCE_TYPE_HVBOX, XfceHVBox))
  34. #define XFCE_HVBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, XFCE_TYPE_HVBOX, XfceHVBoxClass))
  35. #define XFCE_IS_HVBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, XFCE_TYPE_HVBOX))
  36. #define XFCE_IS_HVBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_HVBOX))
  37. #define XFCE_HVBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_HVBOX, XfceHVBoxClass))
  38. struct _XfceHVBoxClass
  39. {
  40. /*< private >*/
  41. GtkBoxClass __parent__;
  42. };
  43. /**
  44. * XfceHVBox:
  45. *
  46. * This struct contain private data only and should be accessed by
  47. * the functions below.
  48. **/
  49. struct _XfceHVBox
  50. {
  51. /*< private >*/
  52. GtkBox __parent__;
  53. GtkOrientation orientation;
  54. };
  55. GType xfce_hvbox_get_type (void) G_GNUC_CONST;
  56. GtkWidget *xfce_hvbox_new (GtkOrientation orientation,
  57. gboolean homogeneous,
  58. gint spacing) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
  59. void xfce_hvbox_set_orientation (XfceHVBox *hvbox,
  60. GtkOrientation orientation);
  61. GtkOrientation xfce_hvbox_get_orientation (XfceHVBox *hvbox);
  62. G_END_DECLS
  63. #endif /* !__XFCE_HVBOX_H__ */