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

  1.  
  2.  
  3.  
  4. XIntersectRegion(3X11)      XLIB FUNCTIONS   XIntersectRegion(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XIntersectRegion, XUnionRegion, XUnionRectWithRegion,
  9.        XSubtractRegion, XXorRegion, XOffsetRegion, XShrinkRegion
  10.        - region arithmetic
  11.  
  12. SSYYNNTTAAXX
  13.        XIntersectRegion(_s_r_a, _s_r_b, _d_r___r_e_t_u_r_n)
  14.          Region _s_r_a, _s_r_b, _d_r___r_e_t_u_r_n;
  15.  
  16.        XUnionRegion(_s_r_a, _s_r_b, _d_r___r_e_t_u_r_n)
  17.          Region _s_r_a, _s_r_b, _d_r___r_e_t_u_r_n;
  18.  
  19.        XUnionRectWithRegion(_r_e_c_t_a_n_g_l_e, _s_r_c___r_e_g_i_o_n,
  20.        _d_e_s_t___r_e_g_i_o_n___r_e_t_u_r_n)
  21.         XRectangle *_r_e_c_t_a_n_g_l_e;
  22.         Region _s_r_c___r_e_g_i_o_n;
  23.         Region _d_e_s_t___r_e_g_i_o_n___r_e_t_u_r_n;
  24.  
  25.        XSubtractRegion(_s_r_a, _s_r_b, _d_r___r_e_t_u_r_n)
  26.          Region _s_r_a, _s_r_b, _d_r___r_e_t_u_r_n;
  27.  
  28.        XXorRegion(_s_r_a, _s_r_b, _d_r___r_e_t_u_r_n)
  29.          Region _s_r_a, _s_r_b, _d_r___r_e_t_u_r_n;
  30.  
  31.        XOffsetRegion(_r, _d_x, _d_y)
  32.          Region _r;
  33.          int _d_x, _d_y;
  34.  
  35.        XShrinkRegion(_r, _d_x, _d_y)
  36.          Region _r;
  37.          int _d_x, _d_y;
  38.  
  39. AARRGGUUMMEENNTTSS
  40.        _d_e_s_t___r_e_g_i_o_n___r_e_t_u_r_n
  41.          Returns the destination region.
  42.  
  43.        _d_r___r_e_t_u_r_n Returns the result of the computation.     ds Dy
  44.          move or shrink
  45.  
  46.        _d_x
  47.        _d_y     Specify the x and y coordinates, which define
  48.          the amount you want to     the specified region.
  49.  
  50.        _r     Specifies the region.
  51.  
  52.        _r_e_c_t_a_n_g_l_e Specifies the rectangle.
  53.  
  54.        _s_r_a
  55.        _s_r_b     Specify the two regions with which you want to
  56.          perform the computation.
  57.  
  58.        _s_r_c___r_e_g_i_o_n
  59.          Specifies the source region to be used.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XIntersectRegion(3X11)      XLIB FUNCTIONS   XIntersectRegion(3X11)
  71.  
  72.  
  73. DDEESSCCRRIIPPTTIIOONN
  74.        The _X_I_n_t_e_r_s_e_c_t_R_e_g_i_o_n function computes the intersection of
  75.        two regions.
  76.  
  77.        The _X_U_n_i_o_n_R_e_g_i_o_n function computes the union of two
  78.        regions.
  79.  
  80.        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
  81.        region from a union of the specified rectangle and the
  82.        specified source region.
  83.  
  84.        The _X_S_u_b_t_r_a_c_t_R_e_g_i_o_n function subtracts srb from sra and
  85.        stores the results in dr_return.
  86.  
  87.        The _X_X_o_r_R_e_g_i_o_n function calculates the difference between
  88.        the union and intersection of two regions.
  89.  
  90.        The _X_O_f_f_s_e_t_R_e_g_i_o_n function moves the specified region by a
  91.        specified amount.
  92.  
  93.        The _X_S_h_r_i_n_k_R_e_g_i_o_n function reduces the specified region by
  94.        a specified amount.  Positive values shrink the size of
  95.        the region, and negative values expand the region.
  96.  
  97. SSEEEE AALLSSOO
  98.        XCreateRegion(3X11), XDrawRectangle(3X11), XEmptyRe-
  99.        gion(3X11)
  100.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.