REF XText                                        A. Schoter, August 1991

        COPYRIGHT University of Sussex 1991. All Rights Reserved.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<                             >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<             X TEXT          >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<                             >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The data structures and procedures described in this REF file  implement
the equivalent C structures and functions for text manipulation.



---------------------
1  List of procedures
---------------------

The procedures below are made available by doing:

       uses xlib, XText;

For details see:

                     Xlib - C Language X Interface,
                       MIT X Consortium Standard,
                         X Version 11, Release 4

        Copyright (C) 1985, 1986, 1987, 1988, 1989 Massachusetts
        Institute of Technology,  Cambridge, Massachusetts,  and
        Digital Equipment Corporation, Maynard, Massachusetts.


XChar2b                                                        [typedef]
        This structure  is used  by  the text  routines. Normal  16  bit
        characters are two bytes.

            typedef struct {
                unsigned char byte1;
                unsigned char byte2;
            } XChar2b;


XTextItem                                                      [typedef]
        This structure is used by the Text routines.

            typedef struct {
                char *chars;
                int nchars;
                int delta;
                Font font;
            } XTextItem;

        chars is a  pointer to a  string; nchars is  the length of  that
        string; delta is the delta between strings; font is the font  to
        print it in.


XTextItem16                                                    [typedef]
        This structure is used by the text routines.

            typedef struct {
                XChar2b *chars;
                int nchars;
                int delta;
                Font font;
            } XTextItem16;

        chars is a pointer to a string of two byte characters; nchars is
        the number  of characters  in that  string; delta  is the  delta
        between strings; font is the font to print in.


XDrawImageString(DspPtr,xid,GCPtr,int1,int2,string,int3)     [procedure]
XDrawImageString16(DspPtr,xid,GCPtr,int1,int2,               [procedure]
                XChar2bPtr,int3)
XDrawString(DspPtr,xid,GCPtr,int1,int2,string,int3)          [procedure]
XDrawString16(DspPtr,xid,GCPtr,int1,int2,XChar2bPtr,int3)    [procedure]
XDrawText(DspPtr,xid,GCPtr,int1,int2,XTextItemPtr,int3)      [procedure]
XDrawText16(DspPtr,ulong,GCPtr,int1,int2,XTextItem16Ptr,     [procedure]
                int3)
XQueryTextExtents(DspPtr,xid,string,int1,intvec1,intvec2,    [procedure]
                intvec3,XCharStructPtr)
XQueryTextExtents16(DspPtr,ulong,XChar2bPtr,int1,            [procedure]
                intvec2,intvec3,intvec4,XCharStructPtr)
XTextExtents(XFontStructPtr,string,int1,intvec1,intvec2,     [procedure]
                intvec3,XCharStructPtr)
XTextExtents16(XFontStructPtr,XChar2bPtr,int1,intvec1,       [procedure]
                intvec2,intvec3,XCharStructPtr)
XTextWidth(XFontStructPtr,string,int1)     ->      int2      [procedure]
XTextWidth16(XFontStructPtr,XChar2bPtr,int1) -> int2         [procedure]
        These procedures implement the equivalent C functions.




--- C.x/x/pop/ref/XText
--- Copyright University of Sussex 1991. All rights reserved.
