NAME

XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion - region arithmetic

SYNTAX

int XIntersectRegion(Region _s_r_a, Region _s_r_b, Region _d_r___r_e_t_u_r_n); int XUnionRegion(Region _s_r_a, Region _s_r_b, Region _d_r___r_e_t_u_r_n); int XUnionRectWithRegion(XRectangle *_r_e_c_t_a_n_g_l_e, Region _s_r_c___r_e_g_i_o_n, Region _d_e_s_t___r_e_g_i_o_n___r_e_t_u_r_n); int XSubtractRegion(Region _s_r_a, Region _s_r_b, Region _d_r___r_e_t_u_r_n); int XXorRegion(Region _s_r_a, Region _s_r_b, Region _d_r___r_e_t_u_r_n); int XOffsetRegion(Region _r, int _d_x, int _d_y); int XShrinkRegion(Region _r, int _d_x, int _d_y);

ARGUMENTS

_d_e_s_t___r_e_g_i_o_n___r_e_t_u_r_n Returns the destination region.
_d_r___r_e_t_u_r_n Returns the result of the computation.
ds Dy move or shrink
_d_x
_d_y Specify the x and y coordinates,
which define the amount you want to the specified region.
_r Specifies the region.
_r_e_c_t_a_n_g_l_e Specifies the rectangle.
_s_r_a
_s_r_b Specify the two regions with which you want to perform the computation.
_s_r_c___r_e_g_i_o_n Specifies the source region to be used.

DESCRIPTION

The _X_I_n_t_e_r_s_e_c_t_R_e_g_i_o_n function computes the intersection of two regions.

The _X_U_n_i_o_n_R_e_g_i_o_n function computes the union of two regions.

The _X_U_n_i_o_n_R_e_c_t_W_i_t_h_R_e_g_i_o_n function updates the destination region from a union of the specified rectangle and the specified source region.

The _X_S_u_b_t_r_a_c_t_R_e_g_i_o_n function subtracts srb from sra and stores the results in dr_return.

The _X_X_o_r_R_e_g_i_o_n function calculates the difference between the union and intersection of two regions.

The _X_O_f_f_s_e_t_R_e_g_i_o_n function moves the specified region by a specified amount.

The _X_S_h_r_i_n_k_R_e_g_i_o_n function reduces the specified region by a specified amount. Positive values shrink the size of the region, and negative values expand the region.

SEE ALSO

XCreateRegion(3X11), XDrawRectangle(3X11), XEmptyRegion(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e