]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/mi/misprite.h
6fe1bbcb6ac6d6e3e52ddc9e420f82d70ebac184
[rdpsrv] / Xserver / programs / Xserver / mi / misprite.h
1 /*
2  * misprite.h
3  *
4  * software-sprite/sprite drawing interface spec
5  *
6  * mi versions of these routines exist.
7  */
8
9 /* $XConsortium: misprite.h,v 5.5 94/04/17 20:27:55 dpw Exp $ */
10
11 /*
12
13 Copyright (c) 1989  X Consortium
14
15 Permission is hereby granted, free of charge, to any person obtaining a copy
16 of this software and associated documentation files (the "Software"), to deal
17 in the Software without restriction, including without limitation the rights
18 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 copies of the Software, and to permit persons to whom the Software is
20 furnished to do so, subject to the following conditions:
21
22 The above copyright notice and this permission notice shall be included in
23 all copies or substantial portions of the Software.
24
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
28 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
29 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
32 Except as contained in this notice, the name of the X Consortium shall not be
33 used in advertising or otherwise to promote the sale, use or other dealings
34 in this Software without prior written authorization from the X Consortium.
35 */
36
37 typedef struct {
38     Bool        (*RealizeCursor)(
39 #if NeedNestedPrototypes
40                 ScreenPtr /*pScreen*/,
41                 CursorPtr /*pCursor*/
42 #endif
43 );
44     Bool        (*UnrealizeCursor)(
45 #if NeedNestedPrototypes
46                 ScreenPtr /*pScreen*/,
47                 CursorPtr /*pCursor*/
48 #endif
49 );
50     Bool        (*PutUpCursor)(
51 #if NeedNestedPrototypes
52                 ScreenPtr /*pScreen*/,
53                 CursorPtr /*pCursor*/,
54                 int /*x*/,
55                 int /*y*/,
56                 unsigned long /*source*/,
57                 unsigned long /*mask*/
58 #endif
59 );
60     Bool        (*SaveUnderCursor)(
61 #if NeedNestedPrototypes
62                 ScreenPtr /*pScreen*/,
63                 int /*x*/,
64                 int /*y*/,
65                 int /*w*/,
66                 int /*h*/
67 #endif
68 );
69     Bool        (*RestoreUnderCursor)(
70 #if NeedNestedPrototypes
71                 ScreenPtr /*pScreen*/,
72                 int /*x*/,
73                 int /*y*/,
74                 int /*w*/,
75                 int /*h*/
76 #endif
77 );
78     Bool        (*MoveCursor)(
79 #if NeedNestedPrototypes
80                 ScreenPtr /*pScreen*/,
81                 CursorPtr /*pCursor*/,
82                 int /*x*/,
83                 int /*y*/,
84                 int /*w*/,
85                 int /*h*/,
86                 int /*dx*/,
87                 int /*dy*/,
88                 unsigned long /*source*/,
89                 unsigned long /*mask*/
90 #endif
91 );
92     Bool        (*ChangeSave)(
93 #if NeedNestedPrototypes
94                 ScreenPtr /*pScreen*/,
95                 int /*x*/,
96                 int /*y*/,
97                 int /*w*/,
98                 int /*h*/,
99                 int /*dx*/,
100                 int /*dy*/
101 #endif
102 );
103
104 } miSpriteCursorFuncRec, *miSpriteCursorFuncPtr;
105
106 extern Bool miSpriteInitialize(
107 #if NeedFunctionPrototypes
108     ScreenPtr /*pScreen*/,
109     miSpriteCursorFuncPtr /*cursorFuncs*/,
110     miPointerScreenFuncPtr /*screenFuncs*/
111 #endif
112 );