If regions of the source rectangle are obscured and have not been retained in backing store or if regions outside the boundaries of the source drawable are specified, those regions are not copied. Instead, the following occurs on all corresponding destination regions that are either visible or are retained in backing store. If the destination is a window with a background other than _N_o_n_e, corresponding regions of the destination are tiled with that background (with plane-mask of all ones and _G_X_c_o_p_y function). Regardless of tiling or whether the destination is a window or a pixmap, if graphics-exposures is _T_r_u_e, then _G_r_a_p_h_i_c_s_E_x_p_o_s_e events for all corresponding destination regions are generated. If graphics-exposures is _T_r_u_e but no _G_r_a_p_h_i_c_s_E_x_p_o_s_e events are generated, a _N_o_E_x_p_o_s_e event is generated. Note that by default graphics-exposures is _T_r_u_e in new GCs.
This function uses these GC components: function, plane-mask, subwindow-mode, graphics-exposures, clip-x-origin, clip-y-origin, and clip-mask.
_X_C_o_p_y_A_r_e_a can generate _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C, and _B_a_d_M_a_t_c_h errors.
The _X_C_o_p_y_P_l_a_n_e function uses a single bit plane of the specified source rectangle combined with the specified GC to modify the specified rectangle of dest. The drawables must have the same root but need not have the same depth. If the drawables do not have the same root, a _B_a_d_M_a_t_c_h error results. If plane does not have exactly one bit set to 1 and the value of plane is not less than %2 sup n%, where _n is the depth of src, a _B_a_d_V_a_l_u_e error results.
Effectively, _X_C_o_p_y_P_l_a_n_e forms a pixmap of the same depth as the rectangle of dest and with a size specified by the source region. It uses the foreground/background pixels in the GC (foreground everywhere the bit plane in src contains a bit set to 1, background everywhere the bit plane in src contains a bit set to 0) and the equivalent of a _C_o_p_y_A_r_e_a protocol request is performed with all the same exposure semantics. This can also be thought of as using the specified region of the source bit plane as a stipple with a fill-style of _F_i_l_l_O_p_a_q_u_e_S_t_i_p_p_l_e_d for filling a rectangular area of the destination.
This function uses these GC components: function, plane-mask, foreground, background, subwindow-mode, graphics-exposures, clip-x-origin, clip-y-origin, and clip-mask.
_X_C_o_p_y_P_l_a_n_e can generate _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C, _B_a_d_M_a_t_c_h, and _B_a_d_V_a_l_u_e errors.