/src/wrappers/gdk/library/gdk_fill_rule.e

http://github.com/tybor/Liberty · Specman e · 39 lines · 23 code · 8 blank · 8 comment · 2 complexity · e58e6f9b7c03062e8e26ca38d47075ba MD5 · raw file

  1. indexing
  2. description: "Enum GdkFillRule - The method for determining which pixels are included in a region, when creating a GdkRegion from a polygon. The fill rule is only relevant for polygons which overlap themselves."
  3. copyright: "(C) 2006 Paolo Redaelli "
  4. license: "LGPL v2 or later"
  5. date: "$Date:$"
  6. revision: "$Revision:$"
  7. -- The method for determining which pixels are included in a
  8. -- region, when creating a GdkRegion from a polygon. The fill
  9. -- rule is only relevant for polygons which overlap
  10. -- themselves.
  11. deferred class GDK_FILL_RULE
  12. inherit ANY undefine is_equal, copy end
  13. feature {} -- enum
  14. is_valid_fill_rule (a_rule :INTEGER): BOOLEAN is
  15. do
  16. Result:=((a_rule = gdk_even_odd_rule) or else
  17. (a_rule = gdk_winding_rule))
  18. end
  19. gdk_even_odd_rule: INTEGER is
  20. -- areas which are overlapped an odd number of times are
  21. -- included in the region, while areas overlapped an even
  22. -- number of times are not.
  23. external "C macro use <gdk/gdk.h>"
  24. alias "GDK_EVEN_ODD_RULE"
  25. end
  26. gdk_winding_rule: INTEGER is
  27. -- overlapping areas are always included.
  28. external "C macro use <gdk/gdk.h>"
  29. alias "GDK_WINDING_RULE"
  30. end
  31. end