| GIMP Base Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gboolean gimp_rectangle_intersect (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height); void gimp_rectangle_union (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height);
gboolean gimp_rectangle_intersect (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height);
Calculates the intersection of two rectangles.
|
origin of first rectangle |
|
origin of first rectangle |
|
width of first rectangle |
|
height of first rectangle |
|
origin of second rectangle |
|
origin of second rectangle |
|
width of second rectangle |
|
height of second rectangle |
|
return location for origin of intersection (may be NULL) |
|
return location for origin of intersection (may be NULL) |
|
return location for width of intersection (may be NULL) |
|
return location for height of intersection (may be NULL) |
Returns : |
TRUE if the intersection is non-empty, FALSE otherwise |
Since GIMP 2.4
void gimp_rectangle_union (gint x1,gint y1,gint width1,gint height1,gint x2,gint y2,gint width2,gint height2,gint *dest_x,gint *dest_y,gint *dest_width,gint *dest_height);
Calculates the union of two rectangles.
|
origin of first rectangle |
|
origin of first rectangle |
|
width of first rectangle |
|
height of first rectangle |
|
origin of second rectangle |
|
origin of second rectangle |
|
width of second rectangle |
|
height of second rectangle |
|
return location for origin of union (may be NULL) |
|
return location for origin of union (may be NULL) |
|
return location for width of union (may be NULL) |
|
return location for height of union (may be NULL) |
Since GIMP 2.8