NAME
XEmptyRegion, XEqualRegion, XPointInRegion, XRectInRegion - determine if regions are empty or equal
SYNTAX
Bool XEmptyRegion(Region _r);
Bool XEqualRegion(Region _r_1, Region _r_2);
Bool XPointInRegion(Region _r, int _x, int _y);
int XRectInRegion(Region _r, int _x, int _y, unsigned
int _w_i_d_t_h, unsigned int _h_e_i_g_h_t);
ARGUMENTS
-
_r
Specifies the region.
-
-
_r_1
-
-
_r_2
Specify the two regions.
-
-
_w_i_d_t_h
-
-
_h_e_i_g_h_t
Specify the width and height, which define the rectangle.
-
or the coordinates of the upper-left corner of the rectangle
-
_x
-
-
_y
Specify the x and y coordinates, which define the point.
-
DESCRIPTION
The
_X_E_m_p_t_y_R_e_g_i_o_n
function returns
_T_r_u_e
if the region is empty.
The
_X_E_q_u_a_l_R_e_g_i_o_n
function returns
_T_r_u_e
if the two regions have the same offset, size, and shape.
The
_X_P_o_i_n_t_I_n_R_e_g_i_o_n
function returns
_T_r_u_e
if the point (x, y) is contained in the region r.
The
_X_R_e_c_t_I_n_R_e_g_i_o_n
function returns
_R_e_c_t_a_n_g_l_e_I_n
if the rectangle is entirely in the specified region,
_R_e_c_t_a_n_g_l_e_O_u_t
if the rectangle is entirely out of the specified region,
and
_R_e_c_t_a_n_g_l_e_P_a_r_t
if the rectangle is partially in the specified region.
SEE ALSO
XCreateRegion(3X11),
XIntersectRegion(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e