/src/wrappers/gdk/library/gdk_fill_rule.e
Specman e | 39 lines | 23 code | 8 blank | 8 comment | 2 complexity | e58e6f9b7c03062e8e26ca38d47075ba MD5 | raw file
1indexing 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 8 -- The method for determining which pixels are included in a 9 -- region, when creating a GdkRegion from a polygon. The fill 10 -- rule is only relevant for polygons which overlap 11 -- themselves. 12 13deferred class GDK_FILL_RULE 14 15inherit ANY undefine is_equal, copy end 16 17feature {} -- enum 18 19 is_valid_fill_rule (a_rule :INTEGER): BOOLEAN is 20 do 21 Result:=((a_rule = gdk_even_odd_rule) or else 22 (a_rule = gdk_winding_rule)) 23 end 24 25 gdk_even_odd_rule: INTEGER is 26 -- areas which are overlapped an odd number of times are 27 -- included in the region, while areas overlapped an even 28 -- number of times are not. 29 external "C macro use <gdk/gdk.h>" 30 alias "GDK_EVEN_ODD_RULE" 31 end 32 33 gdk_winding_rule: INTEGER is 34 -- overlapping areas are always included. 35 external "C macro use <gdk/gdk.h>" 36 alias "GDK_WINDING_RULE" 37 end 38 39end