6 dawes 1.1
7 The above copyright notice and this permission notice shall be included in
8 all copies or substantial portions of the Software.
9
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20 dawes 1.1
21
22 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
23
24 All Rights Reserved
25
26 Permission to use, copy, modify, and distribute this software and its
27 documentation for any purpose and without fee is hereby granted,
28 provided that the above copyright notice appear in all copies and that
29 both that copyright notice and this permission notice appear in
30 supporting documentation, and that the name of Digital not be
31 used in advertising or publicity pertaining to distribution of the
32 software without specific, written prior permission.
33
34 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
35 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
36 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
37 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
38 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
39 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
40 SOFTWARE.
41 dawes 1.1
42 ******************************************************************/
|
44 dawes 1.1 #ifndef CURSOR_H
45 #define CURSOR_H
46
47 #include "misc.h"
48 #include "screenint.h"
49 #include "window.h"
50
51 #define NullCursor ((CursorPtr)NULL)
52
53 typedef struct _Cursor *CursorPtr;
54 typedef struct _CursorMetric *CursorMetricPtr;
55
56 extern CursorPtr rootCursor;
57
58 extern int FreeCursor(
59 #if NeedFunctionPrototypes
60 pointer /*pCurs*/,
61 XID /*cid*/
62 #endif
63 );
64
65 dawes 1.1 extern CursorPtr AllocCursor(
66 #if NeedFunctionPrototypes
67 unsigned char* /*psrcbits*/,
68 unsigned char* /*pmaskbits*/,
69 CursorMetricPtr /*cm*/,
70 unsigned /*foreRed*/,
71 unsigned /*foreGreen*/,
72 unsigned /*foreBlue*/,
73 unsigned /*backRed*/,
74 unsigned /*backGreen*/,
75 unsigned /*backBlue*/
76 #endif
77 );
78
79 extern int AllocGlyphCursor(
80 #if NeedFunctionPrototypes
81 Font /*source*/,
82 unsigned int /*sourceChar*/,
83 Font /*mask*/,
84 unsigned int /*maskChar*/,
85 unsigned /*foreRed*/,
86 dawes 1.1 unsigned /*foreGreen*/,
87 unsigned /*foreBlue*/,
88 unsigned /*backRed*/,
89 unsigned /*backGreen*/,
90 unsigned /*backBlue*/,
91 CursorPtr* /*ppCurs*/,
92 ClientPtr /*client*/
93 #endif
94 );
95
96 extern CursorPtr CreateRootCursor(
97 #if NeedFunctionPrototypes
98 char* /*pfilename*/,
99 unsigned int /*glyph*/
100 #endif
101 );
102
103 extern int ServerBitsFromGlyph(
104 #if NeedFunctionPrototypes
105 FontPtr /*pfont*/,
106 unsigned int /*ch*/,
107 dawes 1.1 register CursorMetricPtr /*cm*/,
108 unsigned char ** /*ppbits*/
109 #endif
110 );
111
112 extern Bool CursorMetricsFromGlyph(
113 #if NeedFunctionPrototypes
114 FontPtr /*pfont*/,
115 unsigned /*ch*/,
116 CursorMetricPtr /*cm*/
117 #endif
118 );
119
120 extern void CheckCursorConfinement(
121 #if NeedFunctionPrototypes
122 WindowPtr /*pWin*/
123 #endif
124 );
125
126 extern void NewCurrentScreen(
127 #if NeedFunctionPrototypes
128 dawes 1.1 ScreenPtr /*newScreen*/,
129 int /*x*/,
130 int /*y*/
131 #endif
132 );
133
134 extern Bool PointerConfinedToScreen(
135 #if NeedFunctionPrototypes
136 void
137 #endif
138 );
139
140 extern void GetSpritePosition(
141 #if NeedFunctionPrototypes
142 int * /*px*/,
143 int * /*py*/
144 #endif
145 );
146
147 #endif /* CURSOR_H */
|