


XQueryTree(3X11)					     XQueryTree(3X11)
X11R5									X11R5



NAME
  XQueryTree - query window tree information

SYNTAX
  Status XQueryTree(_d_i_s_p_l_a_y, _w,	_r_o_o_t__r_e_t_u_r_n, _p_a_r_e_n_t__r_e_t_u_r_n, _c_h_i_l_d_r_e_n__r_e_t_u_r_n,
  _n_c_h_i_l_d_r_e_n__r_e_t_u_r_n)
	Display	*_d_i_s_p_l_a_y;
	Window _w;
	Window *_r_o_o_t__r_e_t_u_r_n;
	Window *_p_a_r_e_n_t__r_e_t_u_r_n;
	Window **_c_h_i_l_d_r_e_n__r_e_t_u_r_n;
	unsigned int *_n_c_h_i_l_d_r_e_n__r_e_t_u_r_n;

ARGUMENTS

  _c_h_i_l_d_r_e_n__r_e_t_u_r_n
	    Returns the	list of	children.

  _d_i_s_p_l_a_y   Specifies the connection to	the X server.

  _n_c_h_i_l_d_r_e_n__r_e_t_u_r_n
	    Returns the	number of children.

  _p_a_r_e_n_t__r_e_t_u_r_n
	    Returns the	parent window.

  _r_o_o_t__r_e_t_u_r_n
	    Returns the	root window.

  _w	    Specifies the window whose list of children, root, parent, and
	    number of children you want	to obtain.

DESCRIPTION
  The _X_Q_u_e_r_y_T_r_e_e function returns the root ID, the parent window ID, a
  pointer to the list of children windows, and the number of children in the
  list for the specified window.  The children are listed in current stacking
  order, from bottommost (first) to topmost (last).  _X_Q_u_e_r_y_T_r_e_e	returns	zero
  if it	fails and nonzero if it	succeeds.  To free this	list when it is	no
  longer needed, use _X_F_r_e_e.

BUGS
  This really should return a screen *,	not a root window ID.

SEE ALSO
  XFree(3X11), XGetWindowAttributes(3X11), XQueryPointer(3X11)
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e












