REF XDrawingPrimitives                            A.Schoter, August 1991

        COPYRIGHT University of Sussex 1991. All Rights Reserved.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<                             >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<      X DRAWING PRIMITIVES   >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<                             >>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The procedures  and data  structures described  in this  REF file  shadow  the
equivalent C functions and structures for drawing graphics.



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

The procedures below are made available by doing:

        uses xlib, XDrawingPrimitives;

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.


XArc                                                           [typedef]
        This structure is used to define an arc in Xlib

            typedef struct {
                short x, y;
                unsigned short width, height;
                short angle1, angle2;
            } XArc;


XSegment                                                       [typedef]
        This structure is used to define a line segment in Xlib

            typedef struct {
                short x1, y1, x2, y2;
            } XSegment;


Vertex                                                         [typedef]
        This structure is used by XDraw and XDrawFilled

            typedef struct {
                short x, y;
                unsigned short flags;
            } Vertex;


XCopyArea(DspPtr,xid1,xid2,GCPtr,int1,int2,uint1,uint2,      [procedure]
                    int3,int4)
        XCopyArea copies a region of  the window specified by xid1  to a
        region of the window specified by xid2 int1 and int2 are the X,Y
        coordinates or the top left corner  of the region in the  source
        window and  uint1 and  uint2 are  the width  and height  of  the
        region. int3 and int4  are the X,Y coordinates  of the top  left
        corner in the destination window.


XDraw(DspPtr,xid,GCPtr,VertexPtr,int1) -> int2               [procedure]
XDrawFilled(DspPtr,xid,GCPtr,VertexPtr,int1) -> int2         [procedure]
XDrawArc(DspPtr,xid,GCPtr,int1,int2,uint1,uint2,int3,int4)   [procedure]
XDrawArcs(DspPtr,xid,GCPtr,XArcPtr,int)                      [procedure]
XDrawLine(DspPtr,xid,GCPtr,int1,int2,int3,int4)              [procedure]
XDrawLines(DspPtr,xid,GCPtr,XPointPtr,int1,int2)             [procedure]
XDrawPoint(DspPtr,xid,GCPtr,int1,int2)                       [procedure]
XDrawPoints(DspPtr,xid,GCPtr,XPointPtr,int1,int2)            [procedure]
XDrawRectangle(DspPtr,xid,GCPtr,int1,int2,uint1,uint2)       [procedure]
XDrawRectangles(DspPtr,xid,GCPtr,XRectPtr,int)               [procedure]
XDrawSegments(DspPtr,xid,GCPtr,XSegPtr,int)                  [procedure]
XCopyPlane(DspPtr,xid1,xid2,GCPtr,int1,int2,uint1,uint2,     [procedure]
                    int3,int4,ulong3)
XFillArc(DspPtr,xid,GCPtr,int1,int2,uint1,uint2,int3,int4)   [procedure]
XFillArcs(DspPtr,xid,GCPtr,XArcPtr,int)                      [procedure]
XFillPolygon(DspPtr,xid,GCPtr,XPointPtr,int1,int2,int3)      [procedure]
XFillRectangle(DspPtr,xid,GCPtr,int1,int2,uint1,uint2)       [procedure]
XFillRectangles(DspPtr,xid,GCPtr,XRectPtr,int)               [procedure]
XClearArea(DspPtr,xid,int1,int2,uint1,uint2,int3)            [procedure]
XClearWindow(DspPtr,xid)                                     [procedure]
        These procedures shadow the equivalent C functions.




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