NAME
XSetState, XSetFunction, XSetPlaneMask, XSetForeground, XSetBackground - GC convenience routines
SYNTAX
int XSetState(Display *_d_i_s_p_l_a_y, GC _g_c, unsigned long
_f_o_r_e_g_r_o_u_n_d, unsigned int _b_a_c_k_g_r_o_u_n_d, int _f_u_n_c_t_i_o_n,
unsigned long _p_l_a_n_e___m_a_s_k);
int XSetFunction(Display *_d_i_s_p_l_a_y, GC _g_c, int
_f_u_n_c_t_i_o_n);
int XSetPlaneMask(Display *_d_i_s_p_l_a_y, GC _g_c, unsigned long
_p_l_a_n_e___m_a_s_k);
int XSetForeground(Display *_d_i_s_p_l_a_y, GC _g_c, unsigned long
_f_o_r_e_g_r_o_u_n_d);
int XSetBackground(Display *_d_i_s_p_l_a_y, GC _g_c, unsigned long
_b_a_c_k_g_r_o_u_n_d);
ARGUMENTS
-
_b_a_c_k_g_r_o_u_n_d
Specifies the background you want to set for the specified GC.
-
-
_d_i_s_p_l_a_y
Specifies the connection to the X server.
-
-
_f_o_r_e_g_r_o_u_n_d
Specifies the foreground you want to set for the specified GC.
-
-
_f_u_n_c_t_i_o_n
Specifies the function you want to set for the specified GC.
-
-
_g_c
Specifies the GC.
-
-
_p_l_a_n_e___m_a_s_k
Specifies the plane mask.
-
DESCRIPTION
The
_X_S_e_t_S_t_a_t_e
function sets the foreground, background, plane mask, and function components
for the specified GC.
_X_S_e_t_S_t_a_t_e
can generate
_B_a_d_A_l_l_o_c,
_B_a_d_G_C,
and
_B_a_d_V_a_l_u_e
errors.
_X_S_e_t_F_u_n_c_t_i_o_n
sets a specified value in the specified GC.
_X_S_e_t_F_u_n_c_t_i_o_n
can generate
_B_a_d_A_l_l_o_c,
_B_a_d_G_C,
and
_B_a_d_V_a_l_u_e
errors.
The
_X_S_e_t_P_l_a_n_e_M_a_s_k
function sets the plane mask in the specified GC.
_X_S_e_t_P_l_a_n_e_M_a_s_k
can generate
_B_a_d_A_l_l_o_c
and
_B_a_d_G_C
errors.
The
_X_S_e_t_F_o_r_e_g_r_o_u_n_d
function sets the foreground in the specified GC.
_X_S_e_t_F_o_r_e_g_r_o_u_n_d
can generate
_B_a_d_A_l_l_o_c
and
_B_a_d_G_C
errors.
The
_X_S_e_t_B_a_c_k_g_r_o_u_n_d
function sets the background in the specified GC.
_X_S_e_t_B_a_c_k_g_r_o_u_n_d
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_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.
SEE ALSO
XCreateGC(3X11),
XQueryBestSize(3X11),
XSetArcMode(3X11),
XSetClipOrigin(3X11),
XSetFillStyle(3X11),
XSetFont(3X11),
XSetLineAttributes(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