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

  1.  
  2.  
  3.  
  4. XTextWidth(3X11)      XLIB FUNCTIONS     XTextWidth(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XTextWidth, XTextWidth16 - compute text width
  9.  
  10. SSYYNNTTAAXX
  11.        int XTextWidth(_f_o_n_t___s_t_r_u_c_t, _s_t_r_i_n_g, _c_o_u_n_t)
  12.          XFontStruct *_f_o_n_t___s_t_r_u_c_t;
  13.          char *_s_t_r_i_n_g;
  14.          int _c_o_u_n_t;
  15.  
  16.        int XTextWidth16(_f_o_n_t___s_t_r_u_c_t, _s_t_r_i_n_g, _c_o_u_n_t)
  17.          XFontStruct *_f_o_n_t___s_t_r_u_c_t;
  18.          XChar2b *_s_t_r_i_n_g;
  19.          int _c_o_u_n_t;
  20.  
  21. AARRGGUUMMEENNTTSS
  22.        _c_o_u_n_t     Specifies the character count in the specified
  23.          string.
  24.  
  25.        _f_o_n_t___s_t_r_u_c_t
  26.          Specifies the font used for the width computa-
  27.          tion.
  28.  
  29.        _s_t_r_i_n_g     Specifies the character string.
  30.  
  31. DDEESSCCRRIIPPTTIIOONN
  32.        The _X_T_e_x_t_W_i_d_t_h and _X_T_e_x_t_W_i_d_t_h_1_6 functions return the width
  33.        of the specified 8-bit or 2-byte character strings.
  34.  
  35. SSEEEE AALLSSOO
  36.        XLoadFont(3X11), XTextExtents(3X11)
  37.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.