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