/src/wrappers/gdk/library/gdk_event_configure.e

http://github.com/tybor/Liberty · Specman e · 96 lines · 60 code · 22 blank · 14 comment · 2 complexity · bdf5857451fe71bc68c5015fdd2450b9 MD5 · raw file

  1. indexing
  2. description: "."
  3. copyright: "[
  4. Copyright (C) 2007 Paolo Redaelli, $original_copyright_holder
  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 GDK_EVENT_CONFIGURE
  19. -- Generated when a window size or position has changed.
  20. inherit GDK_EVENT
  21. creation from_external_pointer
  22. feature
  23. x: INTEGER is
  24. -- the new x coordinate of the window, relative to its
  25. -- parent.
  26. do
  27. Result:=get_x(handle)
  28. end
  29. y: INTEGER is
  30. -- the new y coordinate of the window, relative to its
  31. -- parent.
  32. do
  33. Result:=get_y(handle)
  34. end
  35. width: INTEGER is
  36. -- the new width of the window.
  37. do
  38. Result:=get_width(handle)
  39. end
  40. height: INTEGER is
  41. -- the new height of the window.
  42. do
  43. Result:=get_height(handle)
  44. end
  45. feature {} -- Structure getter/setter calls
  46. get_type (a_ptr: POINTER): INTEGER is
  47. -- GdkEventType type;
  48. external "C struct GdkEventExpose get type use <gdk/gdk.h>"
  49. end
  50. get_window (a_ptr: POINTER): POINTER is
  51. -- GdkWindow *window;
  52. external "C struct GdkEventExpose get *window use <gdk/gdk.h>"
  53. end
  54. get_send_event (a_ptr: POINTER): INTEGER_8 is
  55. -- gint8 send_event;
  56. external "C struct GdkEventExpose get send_event use <gdk/gdk.h>"
  57. end
  58. get_x (a_ptr: POINTER): INTEGER is
  59. -- gint x;
  60. external "C struct GdkEventExpose get x use <gdk/gdk.h>"
  61. end
  62. get_y (a_ptr: POINTER): INTEGER is
  63. -- gint y;
  64. external "C struct GdkEventExpose get y use <gdk/gdk.h>"
  65. end
  66. get_width (a_ptr: POINTER): INTEGER is
  67. -- gint width;
  68. external "C struct GdkEventExpose get width use <gdk/gdk.h>"
  69. end
  70. get_height (a_ptr: POINTER): INTEGER is
  71. -- gint height;
  72. external "C struct GdkEventExpose get height use <gdk/gdk.h>"
  73. end
  74. end -- class GDK_EVENT_CONFIGURE