/src/wrappers/gtk/library/gtk_hbox.e

http://github.com/tybor/Liberty · Specman e · 52 lines · 35 code · 8 blank · 9 comment · 2 complexity · ae01ffcc788944cc0bd007c7babc94f2 MD5 · raw file

  1. indexing
  2. description: "GtkHBox -- A horizontal container box."
  3. copyright: "[
  4. Copyright (C) 2006 eiffel-libraries team, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. date: "$Date:$"
  19. revision: "$Revision:$"
  20. class GTK_HBOX
  21. -- GtkHBox is a container that organizes child widgets into a
  22. -- single row. Use the GtkBox packing interface to determine the
  23. -- arrangement, spacing, width, and alignment of GtkHBox
  24. -- children. All children are allocated the same height.
  25. inherit GTK_BOX
  26. -- GtkHBox also implements AtkImplementorIface.
  27. insert GTK_HBOX_EXTERNALS
  28. creation make, from_external_pointer
  29. feature {} -- Creation
  30. make (an_homogeneous: BOOLEAN; a_spacing: INTEGER) is
  31. -- Creates a new GtkHBox. If `an_homogeneous' is True all
  32. -- children are to be given equal space
  33. -- allotments. `a_spacing' is the number of pixels to place
  34. -- by default between children.
  35. require gtk_initialized: gtk.is_initialized
  36. do
  37. from_external_pointer (gtk_hbox_new (an_homogeneous.to_integer, a_spacing))
  38. end
  39. feature -- struct size
  40. struct_size: INTEGER is
  41. external "C inline use <gtk/gtk.h>"
  42. alias "sizeof(GtkHBox)"
  43. end
  44. end