/src/wrappers/gtk/library/gtk_window_group.e

http://github.com/tybor/Liberty · Specman e · 71 lines · 51 code · 15 blank · 5 comment · 2 complexity · 58b0b31cb582edef055ec77600f2c59b MD5 · raw file

  1. indexing
  2. description: "GtkWindowGroup -- Limit the effect of grabs."
  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 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. class GTK_WINDOW_GROUP
  19. inherit G_OBJECT
  20. creation make, from_external_pointer
  21. feature {} -- Creation
  22. make is
  23. -- Creates a new GtkWindowGroup object. Grabs added with
  24. -- gtk_grab_add() only affect windows within the same
  25. -- GtkWindowGroup.
  26. do
  27. from_external_pointer (gtk_window_group_new)
  28. end
  29. add (a_window: GTK_WINDOW) is
  30. -- Adds `a_window' to a GtkWindowGroup.
  31. require window_not_void: a_window/=Void
  32. do
  33. gtk_window_group_add_window(handle,a_window.handle)
  34. end
  35. remove (a_window: GTK_WINDOW) is
  36. -- Removes `a_window' from a GtkWindowGroup.
  37. require window_not_void: a_window/=Void
  38. do
  39. gtk_window_group_remove_window (handle, a_window.handle)
  40. end
  41. feature -- size
  42. struct_size: INTEGER is
  43. external "C inline use <gtk/gtk.h>"
  44. alias "sizeof(GtkWindowGroup)"
  45. end
  46. feature {} -- External calls
  47. gtk_window_group_new: POINTER is
  48. external "C use <gtk/gtk.h>"
  49. end
  50. gtk_window_group_add_window (window_group, window: POINTER) is
  51. external "C use <gtk/gtk.h>"
  52. end
  53. gtk_window_group_remove_window (window_group, window: POINTER) is
  54. external "C use <gtk/gtk.h>"
  55. end
  56. end -- class GTK_WINDOW_GROUP