


XtOffset(3Xt)							XtOffset(3Xt)
X11R5									X11R5



NAME
  XtOffset, XtNumber - determine the byte offset or number of array elements

SYNTAX
  Cardinal XtOffset(_p_o_i_n_t_e_r__t_y_p_e, _f_i_e_l_d__n_a_m_e)
	Type _p_o_i_n_t_e_r__t_y_p_e;
	Field _f_i_e_l_d__n_a_m_e;

  Cardinal XtNumber(_a_r_r_a_y)
	ArrayVariable _a_r_r_a_y;

ARGUMENTS

  _a_r_r_a_y	    Specifies a	fixed-size array.

  _f_i_e_l_d__n_a_m_e
	    Specifies the name of the field for	which to calculate the byte
	    offset.

  _p_o_i_n_t_e_r__t_y_p_e
	    Specifies a	type that is declared as a pointer to the structure.

DESCRIPTION
  The _X_t_O_f_f_s_e_t macro is	usually	used to	determine the offset of	various
  resource fields from the beginning of	a widget and can be used at compile
  time in static initializations.

  The _X_t_N_u_m_b_e_r macro returns the number	of elements in the specified argument
  lists, resources lists, and other counted arrays.

SEE ALSO
  XtGetResourceList(3Xt), XtSetArg(3Xt)
  _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e	delim off
























