XIntersectRegion(3X11)AIX (XLIB FUNCTIONS) XIntersectRegion(3X11) NAME XIntersectRegion, XUnionRegion, XUnionRectWithRegion, XSub- tractRegion, XXorRegion, XOffsetRegion, XShrinkRegion - region arithmetic SYNTAX XIntersectRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n) Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n; XUnionRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n) Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n; XUnionRectWithRegion(_r_e_c_t_a_n_g_l_e, _s_r_c__r_e_g_i_o_n, _d_e_s_t__r_e_g_i_o_n__r_e_t_u_r_n) 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; XSubtractRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n) Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n; XXorRegion(_s_r_a, _s_r_b, _d_r__r_e_t_u_r_n) Region _s_r_a, _s_r_b, _d_r__r_e_t_u_r_n; XOffsetRegion(_r, _d_x, _d_y) Region _r; int _d_x, _d_y; XShrinkRegion(_r, _d_x, _d_y) Region _r; int _d_x, _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. Rev. Release 5 Page 1 XIntersectRegion(3X11)AIX (XLIB FUNCTIONS) XIntersectRegion(3X11) 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 Rev. Release 5 Page 2