


XDefineCursor(3X11)					  XDefineCursor(3X11)
X11R5									X11R5



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 function 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 window, the parent's cursor
  will now be used.  On	the root window, 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













