/src/wrappers/gtk/library/gtk_vscrollbar.e

http://github.com/tybor/Liberty · Specman e · 62 lines · 44 code · 10 blank · 8 comment · 2 complexity · 6b31599ba25318f013bff394ab29d5b7 MD5 · raw file

  1. indexing
  2. description: "GtkHScrollbar, a vertical 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_VSCROLLBAR
  19. -- The GTK_VSCROLLBAR widget is a widget arranged vertically
  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 vertical scrollbar; a new adjustment is also created.
  30. require
  31. gtk_initialized: gtk.is_initialized
  32. do
  33. from_external_pointer (gtk_vscrollbar_new (default_pointer))
  34. end
  35. with_adjustment (an_adjustment: GTK_ADJUSTMENT) is
  36. -- Creates a new vertical scrollbar using `an_adjustment'.
  37. require
  38. gtk_initialized: gtk.is_initialized
  39. adjustment_not_void: an_adjustment /= Void
  40. do
  41. from_external_pointer (gtk_vscrollbar_new (an_adjustment.handle))
  42. end
  43. feature -- size
  44. struct_size: INTEGER is
  45. external "C inline use <gtk/gtk.h>"
  46. alias "sizeof(GtkVSCrollbar)"
  47. end
  48. feature {} -- External calls
  49. gtk_vscrollbar_new (gtk_adjustment: POINTER): POINTER is -- GtkWidget*
  50. external "C use <gtk/gtk.h>"
  51. end
  52. end -- class GTK_VSCROLLBAR