Region.polygon

Warning gdk_region_polygon has been deprecated since version 2.22 and should not be used in newly-written code. There is no replacement. For working with paths, please use Cairo. Creates a new GdkRegion using the polygon defined by a number of points.

class Region
static
polygon

Parameters

points GdkPoint[]

an array of GdkPoint structs

fillRule GdkFillRule

specifies which pixels are included in the region when the polygon overlaps itself.

Return Value

Type: Region

a new GdkRegion based on the given polygon

Meta