home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xtoffset.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. XtOffset(3Xt)           XT FUNCTIONS            XtOffset(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtOffset, XtOffsetOf, XtNumber - determine the byte offset
  9.        or number of array elements
  10.  
  11. SSYYNNTTAAXX
  12.        Cardinal XtOffset(_p_o_i_n_t_e_r___t_y_p_e, _f_i_e_l_d___n_a_m_e)
  13.          Type _p_o_i_n_t_e_r___t_y_p_e;
  14.          Field _f_i_e_l_d___n_a_m_e;
  15.  
  16.        Cardinal XtOffsetOf(_s_t_r_u_c_t_u_r_e___t_y_p_e, _f_i_e_l_d___n_a_m_e)
  17.          Type _s_t_r_u_c_t_u_r_e___t_y_p_e;
  18.          Field _f_i_e_l_d___n_a_m_e;
  19.  
  20.        Cardinal XtNumber(_a_r_r_a_y)
  21.          ArrayVariable _a_r_r_a_y;
  22.  
  23. AARRGGUUMMEENNTTSS
  24.        _a_r_r_a_y     Specifies a fixed-size array.
  25.  
  26.        _f_i_e_l_d___n_a_m_e
  27.          Specifies the name of the field for which to
  28.          calculate the byte offset.
  29.  
  30.        _p_o_i_n_t_e_r___t_y_p_e
  31.          Specifies a type that is declared as a pointer
  32.          to the structure.
  33.  
  34.        _s_t_r_u_c_t_u_r_e___t_y_p_e
  35.          Specifies a type that is declared as a struc-
  36.          ture.
  37.  
  38. DDEESSCCRRIIPPTTIIOONN
  39.        The _X_t_O_f_f_s_e_t macro is usually used to determine the offset
  40.        of various resource fields from the beginning of a widget
  41.        and can be used at compile time in static initializations.
  42.  
  43.        The _X_t_O_f_f_s_e_t_O_f macro expands to a constant expression that
  44.        gives the offset in bytes to the specified structure mem-
  45.        ber rom the beginning of the structure.    It is normally
  46.        used to statically initialize resource lists and is more
  47.        portable than _X_t_O_f_f_s_e_t, which serves the same function.
  48.  
  49.        The _X_t_N_u_m_b_e_r macro returns the number of elements in the
  50.        specified argument lists, resources lists, and other
  51.        counted arrays.
  52.  
  53. SSEEEE AALLSSOO
  54.        XtGetResourceList(3Xt), XtSetArg(3Xt)
  55.        _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
  56.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.