home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XSetClipOrigin, XSetClipMask, XSetClipRectangles - GC
- convenience routines
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- XSetClipOrigin(_d_i_s_p_l_a_y, _g_c, _c_l_i_p__x__o_r_i_g_i_n, _c_l_i_p__y__o_r_i_g_i_n)
- Display *_d_i_s_p_l_a_y;
- GC _g_c;
- int _c_l_i_p__x__o_r_i_g_i_n, _c_l_i_p__y__o_r_i_g_i_n;
-
- XSetClipMask(_d_i_s_p_l_a_y, _g_c, _p_i_x_m_a_p)
- Display *_d_i_s_p_l_a_y;
- GC _g_c;
- Pixmap _p_i_x_m_a_p;
-
- XSetClipRectangles(_d_i_s_p_l_a_y, _g_c, _c_l_i_p__x__o_r_i_g_i_n,
- _c_l_i_p__y__o_r_i_g_i_n, _r_e_c_t_a_n_g_l_e_s, _n, _o_r_d_e_r_i_n_g)
- Display *_d_i_s_p_l_a_y;
- GC _g_c;
- int _c_l_i_p__x__o_r_i_g_i_n, _c_l_i_p__y__o_r_i_g_i_n;
- XRectangle _r_e_c_t_a_n_g_l_e_s[];
- int _n;
- int _o_r_d_e_r_i_n_g;
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _c_l_i_p__x__o_r_i_g_i_n
- _c_l_i_p__y__o_r_i_g_i_n
- Specify the x and y coordinates of the clip-mask
- origin.
-
- _g_c Specifies the GC.
-
- _n Specifies the number of rectangles.
-
- _o_r_d_e_r_i_n_g Specifies the ordering relations on the
- rectangles. You can pass _U_n_s_o_r_t_e_d, _Y_S_o_r_t_e_d,
- _Y_X_S_o_r_t_e_d, or _Y_X_B_a_n_d_e_d.
-
- _p_i_x_m_a_p Specifies the pixmap or _N_o_n_e.
-
- _r_e_c_t_a_n_g_l_e_s
- Specifies an array of rectangles that define the
- clip-mask.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _X_S_e_t_C_l_i_p_O_r_i_g_i_n function sets the clip origin in the
- specified GC. The clip-mask origin is interpreted relative
- to the origin of whatever destination drawable is specified
- in the graphics request.
-
-
-
-
- Page 1 (printed 10/3/02)
-
-
-
-
-
-
- XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))
-
-
-
- _X_S_e_t_C_l_i_p_O_r_i_g_i_n can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
-
- The _X_S_e_t_C_l_i_p_M_a_s_k function sets the clip-mask in the
- specified GC to the specified pixmap. If the clip-mask is
- set to _N_o_n_e, the pixels are are always drawn (regardless of
- the clip-origin).
-
- _X_S_e_t_C_l_i_p_M_a_s_k can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, _B_a_d_M_a_t_c_h, and
- _B_a_d_V_a_l_u_e errors.
-
- The _X_S_e_t_C_l_i_p_R_e_c_t_a_n_g_l_e_s function changes the clip-mask in the
- specified GC to the specified list of rectangles and sets
- the clip origin. The output is clipped to remain contained
- within the rectangles. The clip-origin is interpreted
- relative to the origin of whatever destination drawable is
- specified in a graphics request. The rectangle coordinates
- are interpreted relative to the clip-origin. The rectangles
- should be nonintersecting, or the graphics results will be
- undefined. Note that the list of rectangles can be empty,
- which effectively disables output. This is the opposite of
- passing _N_o_n_e as the clip-mask in _X_C_r_e_a_t_e_G_C, _X_C_h_a_n_g_e_G_C, and
- _X_S_e_t_C_l_i_p_M_a_s_k.
-
- If known by the client, ordering relations on the rectangles
- can be specified with the ordering argument. This may
- provide faster operation by the server. If an incorrect
- ordering is specified, the X server may generate a _B_a_d_M_a_t_c_h
- error, but it is not required to do so. If no error is
- generated, the graphics results are undefined. _U_n_s_o_r_t_e_d
- means the rectangles are in arbitrary order. _Y_S_o_r_t_e_d means
- that the rectangles are nondecreasing in their Y origin.
- _Y_X_S_o_r_t_e_d additionally constrains _Y_S_o_r_t_e_d order in that all
- rectangles with an equal Y origin are nondecreasing in their
- X origin. _Y_X_B_a_n_d_e_d additionally constrains _Y_X_S_o_r_t_e_d by
- requiring that, for every possible Y scanline, all
- rectangles that include that scanline have an identical Y
- origins and Y extents.
-
- _X_S_e_t_C_l_i_p_R_e_c_t_a_n_g_l_e_s can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, _B_a_d_M_a_t_c_h,
- and _B_a_d_V_a_l_u_e errors.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _B_a_d_A_l_l_o_c The server failed to allocate the requested
- resource or server memory.
-
- _B_a_d_G_C A value for a GContext argument does not name a
- defined GContext.
-
- _B_a_d_M_a_t_c_h Some argument or pair of arguments has the correct
- type and range but fails to match in some other
- way required by the request.
-
-
-
-
- Page 2 (printed 10/3/02)
-
-
-
-
-
-
- XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXSSSSeeeettttCCCClllliiiippppOOOOrrrriiiiggggiiiinnnn((((3333XXXX11111111))))
-
-
-
- _B_a_d_V_a_l_u_e Some numeric value falls outside the range of
- values accepted by the request. Unless a specific
- range is specified for an argument, the full range
- defined by the argument's type is accepted. Any
- argument defined as a set of alternatives can
- generate this error.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XCreateGC(3X11), XDrawRectangle(3X11), XQueryBestSize(3X11),
- XSetArcMode(3X11), XSetFillStyle(3X11), XSetFont(3X11),
- XSetLineAttributes(3X11), XSetState(3X11), XSetTile(3X11)
- _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 10/3/02)
-
-
-
-