home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xemptyregion.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. XEmptyRegion(3X11)      XLIB FUNCTIONS       XEmptyRegion(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XEmptyRegion, XEqualRegion, XPointInRegion, XRectInRegion
  9.        - determine if regions are empty or equal
  10.  
  11. SSYYNNTTAAXX
  12.        Bool XEmptyRegion(_r)
  13.          Region _r;
  14.  
  15.        Bool XEqualRegion(_r_1, _r_2)
  16.          Region _r_1, _r_2;
  17.  
  18.        Bool XPointInRegion(_r, _x, _y)
  19.          Region _r;
  20.          int _x, _y;
  21.  
  22.        int XRectInRegion(_r, _x, _y, _w_i_d_t_h, _h_e_i_g_h_t)
  23.          Region _r;
  24.          int _x, _y;
  25.          unsigned int _w_i_d_t_h, _h_e_i_g_h_t;
  26.  
  27. AARRGGUUMMEENNTTSS
  28.        _r     Specifies the region.
  29.  
  30.        _r_1
  31.        _r_2     Specify the two regions.
  32.  
  33.        _w_i_d_t_h
  34.        _h_e_i_g_h_t     Specify the width and height, which define the
  35.          rectangle.
  36.  
  37.        _x
  38.        _y     Specify the x and y coordinates, which define
  39.          the point or the coordinates of the upper-left
  40.          corner of the rectangle.
  41.  
  42. DDEESSCCRRIIPPTTIIOONN
  43.        The _X_E_m_p_t_y_R_e_g_i_o_n function returns _T_r_u_e if the region is
  44.        empty.
  45.  
  46.        The _X_E_q_u_a_l_R_e_g_i_o_n function returns _T_r_u_e if the two regions
  47.        have the same offset, size, and shape.
  48.  
  49.        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,
  50.        y) is contained in the region r.
  51.  
  52.        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
  53.        rectangle is entirely in the specified region, _R_e_c_t_a_n_g_l_e_-
  54.        _O_u_t if the rectangle is entirely out of the specified
  55.        region, and _R_e_c_t_a_n_g_l_e_P_a_r_t if the rectangle is partially in
  56.        the specified region.
  57.  
  58. SSEEEE AALLSSOO
  59.        XCreateRegion(3X11), XIntersectRegion(3X11)
  60.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.