GEMLIB
0.44.0
|
some usefull utilities function. This library doesn't contain any AES call. More...
Functions | |
short | rc_copy (const GRECT *src, GRECT *dst) |
short | rc_equal (const GRECT *r1, const GRECT *r2) |
short | rc_intersect (const GRECT *src, GRECT *dst) |
GRECT * | array_to_grect (const short *array, GRECT *area) |
short * | grect_to_array (const GRECT *area, short *array) |
some usefull utilities function. This library doesn't contain any AES call.
transform a PXY-array structure to a GRECT structure
array | specify the area using a PXY-array |
area | will then contain the area in a GRECT structure |
area
is returned.References graphic_rectangle::g_h, graphic_rectangle::g_w, graphic_rectangle::g_x, and graphic_rectangle::g_y.
short* grect_to_array | ( | const GRECT * | area, |
short * | array | ||
) |
transform a GRECT structure to a PXY-array structure
area | specify the area using a GRECT structure |
array | will then contain the area in a PXY-array |
array
is returned.References graphic_rectangle::g_h, graphic_rectangle::g_w, graphic_rectangle::g_x, and graphic_rectangle::g_y.
copy a GRECT structure
src | |
dst |
return non-zero value if both area are equal
p1 | an area |
p2 | an other area |
p1
and p2
are not the same area, any other value (not 0) otherwise (p1
equal p2
). Compute the interesection of two rectangles
r1 | the first rectangle |
r2 | the other rectangle. The intersection area will be returned in r2 . |
r2
will contain the common area. References graphic_rectangle::g_h, graphic_rectangle::g_w, graphic_rectangle::g_x, and graphic_rectangle::g_y.