open-axiom repository from github
/*1Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.34Redistribution and use in source and binary forms, with or without5modification, are permitted provided that the following conditions are6met:78- Redistributions of source code must retain the above copyright9notice, this list of conditions and the following disclaimer.1011- Redistributions in binary form must reproduce the above copyright12notice, this list of conditions and the following disclaimer in13the documentation and/or other materials provided with the14distribution.1516- Neither the name of The Numerical ALgorithms Group Ltd. nor the17names of its contributors may be used to endorse or promote products18derived from this software without specific prior written permission.1920THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS21IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED22TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A23PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER24OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,25EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,26PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR27PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF28LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING29NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS30SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.31*/323334#ifndef _X10_H_35#define _X10_H_3637/* Used in XDraw and XDrawFilled */3839typedef struct _Vertex {40short x, y;41unsigned short flags;42} Vertex;4344/* The meanings of the flag bits. If the bit is 1 the predicate is true */4546#define VertexRelative 0x0001 /* else absolute */47#define VertexDontDraw 0x0002 /* else draw */48#define VertexCurved 0x0004 /* else straight */49#define VertexStartClosed 0x0008 /* else not */50#define VertexEndClosed 0x0010 /* else not */5152/*53The VertexDrawLastPoint option has not been implemented in XDraw and54XDrawFilled so it shouldn't be defined.55*/5657/*58XAssoc - Associations used in the XAssocTable data structure. The59associations are used as circular queue entries in the association table60which is contains an array of circular queues (buckets).61*/62typedef struct _XAssoc {63struct _XAssoc *next; /* Next object in this bucket. */64struct _XAssoc *prev; /* Previous obejct in this bucket. */65Display *display; /* Display which ownes the id. */66XID x_id; /* X Window System id. */67char *data; /* Pointer to untyped memory. */68} XAssoc;6970/*71XAssocTable - X Window System id to data structure pointer association72table. An XAssocTable is a hash table whose buckets are circular73queues of XAssoc's. The XAssocTable is constructed from an array of74XAssoc's which are the circular queue headers (bucket headers).75An XAssocTable consists an XAssoc pointer that points to the first76bucket in the bucket array and an integer that indicates the number77of buckets in the array.78*/79typedef struct _XAssocTable {80XAssoc **buckets; /* Pointer to first bucket in bucket array.*/81int size; /* Table size (number of buckets). */82} XAssocTable;838485#endif /* _X10_H_ */86878889