4
* (c) Copyright 1990-1994 Adobe Systems Incorporated.
7
* Permission to use, copy, modify, distribute, and sublicense this software
8
* and its documentation for any purpose and without fee is hereby granted,
9
* provided that the above copyright notices appear in all copies and that
10
* both those copyright notices and this permission notice appear in
11
* supporting documentation and that the name of Adobe Systems Incorporated
12
* not be used in advertising or publicity pertaining to distribution of the
13
* software without specific, written prior permission. No trademark license
14
* to use the Adobe trademarks is hereby granted. If the Adobe trademark
15
* "Display PostScript"(tm) is used to describe this software, its
16
* functionality or for any other purpose, such use shall be limited to a
17
* statement that this software works in conjunction with the Display
18
* PostScript system. Proper trademark attribution to reflect Adobe's
19
* ownership of the trademark shall be given whenever any such reference to
20
* the Display PostScript system is made.
22
* ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
23
* ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
24
* ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
25
* IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
* NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE
27
* TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
28
* DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
29
* NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
30
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT
31
* PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
33
* Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
34
* Incorporated which may be registered in certain jurisdictions
36
* Author: Adobe Systems Incorporated
38
/* $XFree86: xc/include/DPS/dpsXuserpath.h,v 1.2 2000/06/07 22:02:56 tsi Exp $ */
40
#ifndef DPS_X_DOUSERPATH_H
41
#define DPS_X_DOUSERPATH_H
43
#include <DPS/dpsXcommon.h>
45
#include <DPS/dpsconfig.h>
47
/* Should be 1 for high-order byte first, 0 for low-order byte first. I can
48
never rember which is big- and which is little-endian. */
50
typedef enum _DPSNumberFormat {
62
/* Constants for DPSDoUserPath describing what type of coordinates are
63
being used. Other legal values are:
65
For 32-bit fixed point numbers, use dps_long plus the number of bits
66
in the fractional part.
68
For 16-bit fixed point numbers, use dps_short plus the number of bits
69
in the fractional part.
87
/* We count on the fact that this is a char, so can't put it in the above
90
typedef char DPSUserPathOp;
92
typedef enum _DPSUserPathAction {
97
dps_ustrokepath = 364,
106
dps_send = 113 /* This is really the null operator */
109
#if defined(__cplusplus) || defined(c_plusplus)
113
extern void PSDoUserPath(DPSPointer coords,
115
DPSNumberFormat numType,
119
DPSUserPathAction action);
121
extern void DPSDoUserPath(DPSContext ctx,
124
DPSNumberFormat numType,
128
DPSUserPathAction action);
130
extern Bool PSHitUserPath(double x, double y,
135
DPSNumberFormat numType,
139
DPSUserPathAction action);
141
extern Bool DPSHitUserPath(DPSContext ctx,
147
DPSNumberFormat numType,
151
DPSUserPathAction action);
153
#if defined(__cplusplus) || defined(c_plusplus)
157
#endif /* DPS_X_DOUSERPATH_H */