/src/wrappers/gtk/library/gtk_hbutton_box.e

http://github.com/tybor/Liberty · Specman e · 65 lines · 36 code · 12 blank · 17 comment · 3 complexity · 8ca5be96a1eab2b52c84b23007282cb2 MD5 · raw file

  1. indexing
  2. description: "GtkHButtonBox: A container for arranging buttons horizontally."
  3. copyright: "[
  4. Copyright (C) 2007 Paolo Redaelli, 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 hopeOA 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. wrapped_version: "2.10.6"
  19. class GTK_HBUTTON_BOX
  20. -- A button box provides a consistent layout of buttons throughout
  21. -- your application. The layout/spacing can be altered by the
  22. -- programmer, or if desired, by the user to alter the 'feel' of a
  23. -- program to a small degree.
  24. -- Buttons are packed into a button box the same way widgets are
  25. -- added to any other container, using `add'. You can also use
  26. -- `pack_start' or `pack_end', but for button boxes both these
  27. -- functions work just like `add', ie., they pack the button in a
  28. -- way that depends on the current layout style and on whether the
  29. -- button has had gtk_button_box_set_child_secondary() called on
  30. -- it.
  31. -- The spacing between buttons can be set with gtk_box_set_spacing(). The
  32. -- arrangement and layout of the buttons can be changed with
  33. -- gtk_button_box_set_layout().
  34. inherit GTK_BUTTON_BOX
  35. -- GtkHButtonBox implements AtkImplementorIface.
  36. creation make, from_external_pointer
  37. feature {} -- Creation
  38. make is
  39. -- Creates a new horizontal button box.
  40. do
  41. from_external_pointer(gtk_hbutton_box_new)
  42. end
  43. feature {} -- External calls
  44. gtk_hbutton_box_new: POINTER is
  45. -- GtkWidget* gtk_hbutton_box_new (void);
  46. external "C inline use <gtk/gtk.h>"
  47. end
  48. feature -- size
  49. struct_size: INTEGER is
  50. external "C inline use <gtk/gtk.h>"
  51. alias "sizeof(GtkHButtonBox)"
  52. end
  53. end -- class GTK_HBUTTON_BOX