NAME

XSetTile, XSetStipple, XSetTSOrigin - GC convenience routines

SYNTAX

int XSetTile(Display *_d_i_s_p_l_a_y, GC _g_c, Pixmap _t_i_l_e); int XSetStipple(Display *_d_i_s_p_l_a_y, GC _g_c, Pixmap _s_t_i_p_p_l_e); int XSetTSOrigin(Display *_d_i_s_p_l_a_y, GC _g_c, int _t_s___x___o_r_i_g_i_n, int _t_s___y___o_r_i_g_i_n);

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server.
_g_c Specifies the GC.
_s_t_i_p_p_l_e Specifies the stipple you want to set for the specified GC.
_t_i_l_e Specifies the fill tile you want to set for the specified GC.
_t_s___x___o_r_i_g_i_n
_t_s___y___o_r_i_g_i_n Specify the x and y coordinates of the tile and stipple origin.

DESCRIPTION

The _X_S_e_t_T_i_l_e function sets the fill tile in the specified GC. The tile and GC must have the same depth, or a _B_a_d_M_a_t_c_h error results.

_X_S_e_t_T_i_l_e 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_P_i_x_m_a_p errors.

The _X_S_e_t_S_t_i_p_p_l_e function sets the stipple in the specified GC. The stipple must have a depth of one, or a _B_a_d_M_a_t_c_h error results.

_X_S_e_t_S_t_i_p_p_l_e 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_P_i_x_m_a_p errors.

The _X_S_e_t_T_S_O_r_i_g_i_n function sets the tile/stipple origin in the specified GC. When graphics requests call for tiling or stippling, the parent's origin will be interpreted relative to whatever destination drawable is specified in the graphics request.

_X_S_e_t_T_S_O_r_i_g_i_n can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.

DIAGNOSTICS

_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.
_B_a_d_P_i_x_m_a_p
A value for a Pixmap argument does not name a defined Pixmap.

SEE ALSO

XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetLineAttributes(3X11), XSetState(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e