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

  1.  
  2.  
  3.  
  4. XDrawString(3X11)      XLIB FUNCTIONS    XDrawString(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XDrawString, XDrawString16 - draw text characters
  9.  
  10. SSYYNNTTAAXX
  11.        XDrawString(_d_i_s_p_l_a_y, _d, _g_c, _x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
  12.          Display *_d_i_s_p_l_a_y;
  13.          Drawable _d;
  14.          GC _g_c;
  15.          int _x, _y;
  16.          char *_s_t_r_i_n_g;
  17.          int _l_e_n_g_t_h;
  18.  
  19.        XDrawString16(_d_i_s_p_l_a_y, _d, _g_c, _x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
  20.          Display *_d_i_s_p_l_a_y;
  21.          Drawable _d;
  22.          GC _g_c;
  23.          int _x, _y;
  24.          XChar2b *_s_t_r_i_n_g;
  25.          int _l_e_n_g_t_h;
  26.  
  27. AARRGGUUMMEENNTTSS
  28.        _d     Specifies the drawable.
  29.  
  30.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  31.  
  32.        _g_c     Specifies the GC.
  33.  
  34.        _l_e_n_g_t_h     Specifies the number of characters in the string
  35.          argument.
  36.  
  37.        _s_t_r_i_n_g     Specifies the character string.
  38.  
  39.        _x
  40.        _y     Specify the x and y coordinates, which are rela-
  41.          tive to the origin of the specified drawable and
  42.          define the origin of the first character.
  43.  
  44. DDEESSCCRRIIPPTTIIOONN
  45.        Each character image, as defined by the font in the GC, is
  46.        treated as an additional mask for a fill operation on the
  47.        drawable.  The drawable is modified only where the font
  48.        character has a bit set to 1.  For fonts defined with
  49.        2-byte matrix indexing and used with _X_D_r_a_w_S_t_r_i_n_g_1_6, each
  50.        byte is used as a byte2 with a byte1 of zero.
  51.  
  52.        Both functions use these GC components: function, plane-
  53.        mask, fill-style, font, subwindow-mode, clip-x-origin,
  54.        clip-y-origin, and clip-mask.  They also use these GC
  55.        mode-dependent components: foreground, background, tile,
  56.        stipple, tile-stipple-x-origin, and tile-stipple-y-origin.
  57.  
  58.        _X_D_r_a_w_S_t_r_i_n_g and _X_D_r_a_w_S_t_r_i_n_g_1_6 can generate _B_a_d_D_r_a_w_a_b_l_e,
  59.        _B_a_d_G_C, and _B_a_d_M_a_t_c_h errors.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XDrawString(3X11)      XLIB FUNCTIONS    XDrawString(3X11)
  71.  
  72.  
  73. DDIIAAGGNNOOSSTTIICCSS
  74.        _B_a_d_D_r_a_w_a_b_l_e
  75.          A value for a Drawable argument does not name a
  76.          defined Window or Pixmap.
  77.  
  78.        _B_a_d_G_C     A value for a GContext argument does not name a
  79.          defined GContext.
  80.  
  81.        _B_a_d_M_a_t_c_h     An _I_n_p_u_t_O_n_l_y window is used as a Drawable.
  82.  
  83.        _B_a_d_M_a_t_c_h     Some argument or pair of arguments has the cor-
  84.          rect type and range but fails to match in some
  85.          other way required by the request.
  86.  
  87. SSEEEE AALLSSOO
  88.        XDrawImageString(3X11), XDrawText(3X11), XLoadFont(3X11)
  89.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.