/src/wrappers/gtk/library/gtk_hscrollbar.e

http://github.com/tybor/Liberty · Specman e · 60 lines · 41 code · 11 blank · 8 comment · 2 complexity · 7d4cc6fc23671cb00c715828f0af5496 MD5 · raw file

  1. indexing
  2. description: "GtkHScrollbar - A horizontal scrollbar."
  3. copyright: "[
  4. Copyright (C) 2006 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 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. class GTK_HSCROLLBAR
  19. -- The GTK_HSCROLLBAR widget is a widget arranged horizontally
  20. -- creating a scrollbar. See GTK_SCROLLBAR for details on
  21. -- scrollbars. A GTK_ADJUSTMENT may be added to handle the
  22. -- adjustment of the scrollbar or it may be left Void in which case
  23. -- one will be created for you. See GTK_ADJUSTMENT for details.
  24. inherit GTK_SCROLLBAR
  25. -- GtkHScrollbar implements AtkImplementorIface.
  26. creation make, with_adjustment, from_external_pointer
  27. feature {} -- Creation
  28. make is
  29. -- Creates a new horizontal scrollbar; a new adjustment is also created.
  30. do
  31. from_external_pointer (gtk_hscrollbar_new (default_pointer))
  32. end
  33. with_adjustment (an_adjustment: GTK_ADJUSTMENT) is
  34. -- Creates a new horizontal scrollbar using `an_adjustment'.
  35. require
  36. adjustment_not_void: an_adjustment /= Void
  37. do
  38. from_external_pointer (gtk_hscrollbar_new (an_adjustment.handle))
  39. end
  40. feature -- size
  41. struct_size: INTEGER is
  42. external "C inline use <gtk/gtk.h>"
  43. alias "sizeof(GtkHSCrollbar)"
  44. end
  45. feature {} -- External calls
  46. gtk_hscrollbar_new (gtk_adjustment: POINTER): POINTER is -- GtkWidget*
  47. external "C use <gtk/gtk.h>"
  48. end
  49. end -- class GTK_HSCROLLBAR