XDefineCursor(3X11) AIX (XLIB FUNCTIONS) XDefineCursor(3X11) NAME XDefineCursor, XUndefineCursor - define cursors SYNTAX XDefineCursor(_d_i_s_p_l_a_y, _w, _c_u_r_s_o_r) Display *_d_i_s_p_l_a_y; Window _w; Cursor _c_u_r_s_o_r; XUndefineCursor(_d_i_s_p_l_a_y, _w) Display *_d_i_s_p_l_a_y; Window _w; ARGUMENTS _c_u_r_s_o_r Specifies the cursor that is to be displayed or _N_o_n_e. _d_i_s_p_l_a_y Specifies the connection to the X server. _w Specifies the window. DESCRIPTION If a cursor is set, it will be used when the pointer is in the window. If the cursor is _N_o_n_e, it is equivalent to _X_U_n_- _d_e_f_i_n_e_C_u_r_s_o_r. _X_D_e_f_i_n_e_C_u_r_s_o_r can generate _B_a_d_C_u_r_s_o_r and _B_a_d_W_i_n_d_o_w errors. The _X_U_n_d_e_f_i_n_e_C_u_r_s_o_r undoes the effect of a previous _X_D_e_- _f_i_n_e_C_u_r_s_o_r for this window. When the pointer is in the win- dow, the parent's cursor will now be used. On the root win- dow, the default cursor is restored. _X_U_n_d_e_f_i_n_e_C_u_r_s_o_r can generate a _B_a_d_W_i_n_d_o_w error. DIAGNOSTICS _B_a_d_A_l_l_o_c The server failed to allocate the requested resource or server memory. _B_a_d_C_u_r_s_o_r A value for a Cursor argument does not name a defined Cursor. _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a defined Window. SEE ALSO XCreateFontCursor(3X11), XRecolorCursor(3X11) _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e Rev. Release 5 Page 1