Aligns rectangle
to a regular tile grid, of which tile
is a representative
tile, and stores the result in destination
.
alignment
can be one of:
GEGL_RECTANGLE_ALIGNMENT_SUBSET: Calculate the biggest aligned rectangle
contained in rectangle
.
GEGL_RECTANGLE_ALIGNMENT_SUPERSET: Calculate the smallest aligned
rectangle containing rectangle
.
GEGL_RECTANGLE_ALIGNMENT_NEAREST: Calculate the nearest aligned rectangle
to rectangle
.
destination
may point to the same object as rectangle
or tile
.
Returns TRUE if the result is not empty.
a #GeglRectangle
a #GeglRectangle
a #GeglRectangleAlignment value
Aligns rectangle
to the tile grid of buffer,
and stores the result in
destination
.
alignment
has the same meaning as for gegl_rectangle_align().
destination
may point to the same object as rectangle
.
Returns TRUE if the result is not empty.
a #GeglRectangle
a #GeglBuffer
a #GeglRectangleAlignment value
For debugging purposes, not stable API.
Check if a rectangle is equal to a set of parameters.
Returns TRUE if rectangle
and x,``y
width
x height
are equal.
X coordinate
Y coordinate
width of rectangle
height of rectangle
Calculates the intersection of two rectangles. If the rectangles do not intersect, dest's width and height are set to 0 and its x and y values are undefined.
dest
may point to the same object as src1
or src2
.
Returns TRUE if the rectangles intersect.
Check if a rectangle has zero area.
Returns TRUE if the width or height of rectangle
is 0.
Returns TRUE if the GeglRectangle represents an infininte plane, FALSE otherwise.
Sets the x,
y,
width
and height
on rectangle
.
upper left x coordinate
upper left y coordinate
width in pixels.
height in pixels.
Subtracts subtrahend
from minuend,
and stores the resulting rectangles in
destination
. Between 0 and 4 disjoint rectangles may be produced.
destination
may contain minuend
or subtrahend
.
Returns the number of resulting rectangles.
Computes the bounding box of the area formed by subtracting subtrahend
from minuend,
and stores the result in destination
.
destination
may point to the same object as minuend
or subtrahend
.
Returns TRUE if the result is not empty.
Computes the symmetric difference of the rectangles source1
and source2
,
and stores the resulting rectangles in destination
. Between 0 and 4
disjoint rectangles may be produced.
destination
may contain rectangle1
or rectangle2
.
Returns the number of resulting rectangles.
Creates a new rectangle set with the values from
x,
y,
width
andheight
.