/src/wrappers/gtk/library/gtk_vbox.e

http://github.com/tybor/Liberty · Specman e · 49 lines · 37 code · 7 blank · 5 comment · 2 complexity · dab32a50589b40b48e52960c8cd963cd MD5 · raw file

  1. indexing
  2. description: "GtkVBox -- A vertical 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_VBOX
  21. inherit
  22. GTK_BOX
  23. -- GtkHBox implements AtkImplementorIface.
  24. insert
  25. GTK_VBOX_EXTERNALS
  26. creation make, from_external_pointer
  27. feature {} -- Creation
  28. make (an_homogeneous: BOOLEAN; a_spacing: INTEGER) is
  29. -- Creates a new GtkVBox. If `an_homogeneous' is True all
  30. -- children are to be given equal space
  31. -- allotments. `a_spacing' is the number of pixels to place
  32. -- by default between children.
  33. require gtk_initialized: gtk.is_initialized
  34. do
  35. from_external_pointer (gtk_vbox_new (an_homogeneous.to_integer, a_spacing))
  36. end
  37. feature -- struct size
  38. struct_size: INTEGER is
  39. external "C inline use <gtk/gtk.h>"
  40. alias "sizeof(GtkVBox)"
  41. end
  42. end