-
public Region copy ()
Copies region, creating an identical new region.
-
public bool empty ()
Finds out if the Region is empty.
-
public bool equal (Region region2)
Finds out if the two regions are the same.
-
public void get_clipbox (out Rectangle rectangle)
Obtains the smallest rectangle which includes the entire Region
.
-
public void get_rectangles (out Rectangle[] rectangles)
Obtains the area covered by the region as a list of rectangles. The array returned in rectangles
must be freed with g_free.
-
public void intersect (Region source2)
Sets the area of source1 to the intersection of the areas of source1 and
source2. The resulting area is the set of pixels contained in both source1 and source2.
-
public void offset (int dx, int dy)
Moves a region the specified distance.
-
public bool point_in (int x, int y)
Finds out if a point is in a region.
-
public bool rect_equal (Rectangle rectangle)
Finds out if a regions is the same as a rectangle.
-
public OverlapType rect_in (Rectangle rectangle)
Tests whether a rectangle is within a region.
-
public void shrink (int dx, int dy)
Resizes a region by the specified amount. Positive values shrink the region. Negative values expand it.
-
public void spans_intersect_foreach (Span[] spans, bool sorted, SpanFunc function, void* data)
Calls a function on each span in the intersection of region and spans.
-
public void subtract (Region source2)
Subtracts the area of source2 from the area source1. The resulting area is the
set of pixels contained in source1 but not in source2.
-
public void union (Region source2)
Sets the area of source1 to the union of the areas of source1 and
source2. The resulting area is the set of pixels contained in either source1 or source2.
-
public void union_with_rect (Rectangle rect)
Sets the area of region to the union of the areas of region and rect
. The resulting area is the set of pixels contained in either region or rect.
-
public void xor (Region source2)
Sets the area of source1 to the exclusive-OR of the areas of source1 and
source2. The resulting area is the set of pixels contained in one or the other of the two sources but not in both.