/src/wrappers/gdk/library/gdk_event_expose.e

http://github.com/tybor/Liberty · Specman e · 64 lines · 38 code · 14 blank · 12 comment · 2 complexity · e18bc55ad011410ef106316ffb3997c7 MD5 · raw file

  1. indexing
  2. description: "Generated when all or part of a window becomes visible and needs to be redrawn."
  3. copyright: "[
  4. Copyright (C) 2007 eiffel-libraries team, 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 GDK_EVENT_EXPOSE
  19. inherit
  20. GDK_EVENT
  21. insert
  22. GDK_EVENT_EXPOSE_EXTERNALS
  23. creation from_external_pointer
  24. feature -- access
  25. area: GDK_RECTANGLE is
  26. -- bounding box of region.
  27. do
  28. create Result.from_external_copy (gdk_event_expose_get_area (handle))
  29. end
  30. region: GDK_REGION is
  31. -- bounding box of region.
  32. do
  33. create Result.from_external_copy (gdk_event_expose_get_region (handle))
  34. end
  35. count: INTEGER is
  36. -- the number of contiguous GDK_EXPOSE events following this one.
  37. -- The only use for this is "exposure compression", i.e. handling
  38. -- all contiguous GDK_EXPOSE events in one go, though GDK performs
  39. -- some exposure compression so this is not normally needed.
  40. do
  41. Result := gdk_event_expose_get_count (handle)
  42. end
  43. -- feature -- size
  44. --
  45. -- struct_size: INTEGER is
  46. -- external "C inline use <gdk/gdk.h>"
  47. -- alias "sizeof(GdkEventExpose)"
  48. -- end
  49. invariant is_event_expose
  50. end -- class GDK_EVENT_EXPOSE