1 | /*
|
---|
2 | * misprite.h
|
---|
3 | *
|
---|
4 | * software-sprite/sprite drawing interface spec
|
---|
5 | *
|
---|
6 | * mi versions of these routines exist.
|
---|
7 | */
|
---|
8 |
|
---|
9 |
|
---|
10 | /*
|
---|
11 |
|
---|
12 | Copyright 1989, 1998 The Open Group
|
---|
13 |
|
---|
14 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
15 | documentation for any purpose is hereby granted without fee, provided that
|
---|
16 | the above copyright notice appear in all copies and that both that
|
---|
17 | copyright notice and this permission notice appear in supporting
|
---|
18 | documentation.
|
---|
19 |
|
---|
20 | The above copyright notice and this permission notice shall be included in
|
---|
21 | all copies or substantial portions of the Software.
|
---|
22 |
|
---|
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
26 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
27 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
28 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
29 |
|
---|
30 | Except as contained in this notice, the name of The Open Group shall not be
|
---|
31 | used in advertising or otherwise to promote the sale, use or other dealings
|
---|
32 | in this Software without prior written authorization from The Open Group.
|
---|
33 | */
|
---|
34 |
|
---|
35 | typedef struct {
|
---|
36 | Bool (*RealizeCursor)(
|
---|
37 | ScreenPtr /*pScreen*/,
|
---|
38 | CursorPtr /*pCursor*/
|
---|
39 | );
|
---|
40 | Bool (*UnrealizeCursor)(
|
---|
41 | ScreenPtr /*pScreen*/,
|
---|
42 | CursorPtr /*pCursor*/
|
---|
43 | );
|
---|
44 | Bool (*PutUpCursor)(
|
---|
45 | DeviceIntPtr /*pDev*/,
|
---|
46 | ScreenPtr /*pScreen*/,
|
---|
47 | CursorPtr /*pCursor*/,
|
---|
48 | int /*x*/,
|
---|
49 | int /*y*/,
|
---|
50 | unsigned long /*source*/,
|
---|
51 | unsigned long /*mask*/
|
---|
52 | );
|
---|
53 | Bool (*SaveUnderCursor)(
|
---|
54 | DeviceIntPtr /*pDev*/,
|
---|
55 | ScreenPtr /*pScreen*/,
|
---|
56 | int /*x*/,
|
---|
57 | int /*y*/,
|
---|
58 | int /*w*/,
|
---|
59 | int /*h*/
|
---|
60 | );
|
---|
61 | Bool (*RestoreUnderCursor)(
|
---|
62 | DeviceIntPtr /*pDev*/,
|
---|
63 | ScreenPtr /*pScreen*/,
|
---|
64 | int /*x*/,
|
---|
65 | int /*y*/,
|
---|
66 | int /*w*/,
|
---|
67 | int /*h*/
|
---|
68 | );
|
---|
69 | Bool (*MoveCursor)(
|
---|
70 | DeviceIntPtr /*pDev*/,
|
---|
71 | ScreenPtr /*pScreen*/,
|
---|
72 | CursorPtr /*pCursor*/,
|
---|
73 | int /*x*/,
|
---|
74 | int /*y*/,
|
---|
75 | int /*w*/,
|
---|
76 | int /*h*/,
|
---|
77 | int /*dx*/,
|
---|
78 | int /*dy*/,
|
---|
79 | unsigned long /*source*/,
|
---|
80 | unsigned long /*mask*/
|
---|
81 | );
|
---|
82 | Bool (*ChangeSave)(
|
---|
83 | DeviceIntPtr /*pDev*/,
|
---|
84 | ScreenPtr /*pScreen*/,
|
---|
85 | int /*x*/,
|
---|
86 | int /*y*/,
|
---|
87 | int /*w*/,
|
---|
88 | int /*h*/,
|
---|
89 | int /*dx*/,
|
---|
90 | int /*dy*/
|
---|
91 | );
|
---|
92 | Bool (*DeviceCursorInitialize)(
|
---|
93 | DeviceIntPtr /*pDev*/,
|
---|
94 | ScreenPtr /*pScreen*/
|
---|
95 | );
|
---|
96 | void (*DeviceCursorCleanup)(
|
---|
97 | DeviceIntPtr /*pDev*/,
|
---|
98 | ScreenPtr /*pScreen*/
|
---|
99 | );
|
---|
100 |
|
---|
101 | } miSpriteCursorFuncRec, *miSpriteCursorFuncPtr;
|
---|
102 |
|
---|
103 | extern Bool miSpriteInitialize(
|
---|
104 | ScreenPtr /*pScreen*/,
|
---|
105 | miSpriteCursorFuncPtr /*cursorFuncs*/,
|
---|
106 | miPointerScreenFuncPtr /*screenFuncs*/
|
---|
107 | );
|
---|