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 | ScreenPtr /*pScreen*/,
|
---|
46 | CursorPtr /*pCursor*/,
|
---|
47 | int /*x*/,
|
---|
48 | int /*y*/,
|
---|
49 | unsigned long /*source*/,
|
---|
50 | unsigned long /*mask*/
|
---|
51 | );
|
---|
52 | Bool (*SaveUnderCursor)(
|
---|
53 | ScreenPtr /*pScreen*/,
|
---|
54 | int /*x*/,
|
---|
55 | int /*y*/,
|
---|
56 | int /*w*/,
|
---|
57 | int /*h*/
|
---|
58 | );
|
---|
59 | Bool (*RestoreUnderCursor)(
|
---|
60 | ScreenPtr /*pScreen*/,
|
---|
61 | int /*x*/,
|
---|
62 | int /*y*/,
|
---|
63 | int /*w*/,
|
---|
64 | int /*h*/
|
---|
65 | );
|
---|
66 | Bool (*MoveCursor)(
|
---|
67 | ScreenPtr /*pScreen*/,
|
---|
68 | CursorPtr /*pCursor*/,
|
---|
69 | int /*x*/,
|
---|
70 | int /*y*/,
|
---|
71 | int /*w*/,
|
---|
72 | int /*h*/,
|
---|
73 | int /*dx*/,
|
---|
74 | int /*dy*/,
|
---|
75 | unsigned long /*source*/,
|
---|
76 | unsigned long /*mask*/
|
---|
77 | );
|
---|
78 | Bool (*ChangeSave)(
|
---|
79 | ScreenPtr /*pScreen*/,
|
---|
80 | int /*x*/,
|
---|
81 | int /*y*/,
|
---|
82 | int /*w*/,
|
---|
83 | int /*h*/,
|
---|
84 | int /*dx*/,
|
---|
85 | int /*dy*/
|
---|
86 | );
|
---|
87 |
|
---|
88 | } miSpriteCursorFuncRec, *miSpriteCursorFuncPtr;
|
---|
89 |
|
---|
90 | extern Bool miSpriteInitialize(
|
---|
91 | ScreenPtr /*pScreen*/,
|
---|
92 | miSpriteCursorFuncPtr /*cursorFuncs*/,
|
---|
93 | miPointerScreenFuncPtr /*screenFuncs*/
|
---|
94 | );
|
---|