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

  1.  
  2.  
  3.  
  4. XPolygonRegion(3X11)      XLIB FUNCTIONS     XPolygonRegion(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XPolygonRegion, XClipBox - generate regions
  9.  
  10. SSYYNNTTAAXX
  11.        Region XPolygonRegion(_p_o_i_n_t_s, _n, _f_i_l_l___r_u_l_e)
  12.          XPoint _p_o_i_n_t_s_[_];
  13.          int _n;
  14.          int _f_i_l_l___r_u_l_e;
  15.  
  16.        XClipBox(_r, _r_e_c_t___r_e_t_u_r_n)
  17.          Region _r;
  18.          XRectangle *_r_e_c_t___r_e_t_u_r_n;
  19.  
  20. AARRGGUUMMEENNTTSS
  21.        _f_i_l_l___r_u_l_e Specifies the fill-rule you want to set for the
  22.          specified GC.    You can pass _E_v_e_n_O_d_d_R_u_l_e or
  23.          _W_i_n_d_i_n_g_R_u_l_e.
  24.  
  25.        _n     Specifies the number of points in the polygon.
  26.  
  27.        _p_o_i_n_t_s     Specifies an array of points.
  28.  
  29.        _r     Specifies the region.
  30.  
  31.        _r_e_c_t___r_e_t_u_r_n
  32.          Returns the smallest enclosing rectangle.
  33.  
  34. DDEESSCCRRIIPPTTIIOONN
  35.        The _X_P_o_l_y_g_o_n_R_e_g_i_o_n function returns a region for the poly-
  36.        gon defined by the points array.     For an explanation of
  37.        fill_rule, see _X_C_r_e_a_t_e_G_C.
  38.  
  39.        The _X_C_l_i_p_B_o_x function returns the smallest rectangle
  40.        enclosing the specified region.
  41.  
  42. SSEEEE AALLSSOO
  43.        XCreateGC(3X11), XDrawPoint(3X11), XDrawRectangle(3X11)
  44.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.