]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/hw/vnc/sprite.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / programs / Xserver / hw / vnc / sprite.h
1 /*
2  * sprite.h
3  *
4  * software-sprite/sprite drawing - based on misprite
5  */
6
7 /*
8  *  Copyright (C) 1999 AT&T Laboratories Cambridge.  All Rights Reserved.
9  *
10  *  This is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2 of the License, or
13  *  (at your option) any later version.
14  *
15  *  This software is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with this software; if not, write to the Free Software
22  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
23  *  USA.
24  */
25
26 /*
27
28 Copyright (c) 1989  X Consortium
29
30 Permission is hereby granted, free of charge, to any person obtaining a copy
31 of this software and associated documentation files (the "Software"), to deal
32 in the Software without restriction, including without limitation the rights
33 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34 copies of the Software, and to permit persons to whom the Software is
35 furnished to do so, subject to the following conditions:
36
37 The above copyright notice and this permission notice shall be included in
38 all copies or substantial portions of the Software.
39
40 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
43 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
44 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
47 Except as contained in this notice, the name of the X Consortium shall not be
48 used in advertising or otherwise to promote the sale, use or other dealings
49 in this Software without prior written authorization from the X Consortium.
50 */
51
52 typedef struct {
53     Bool        (*RealizeCursor)(
54 #if NeedNestedPrototypes
55                 ScreenPtr /*pScreen*/,
56                 CursorPtr /*pCursor*/
57 #endif
58 );
59     Bool        (*UnrealizeCursor)(
60 #if NeedNestedPrototypes
61                 ScreenPtr /*pScreen*/,
62                 CursorPtr /*pCursor*/
63 #endif
64 );
65     Bool        (*PutUpCursor)(
66 #if NeedNestedPrototypes
67                 ScreenPtr /*pScreen*/,
68                 CursorPtr /*pCursor*/,
69                 int /*x*/,
70                 int /*y*/,
71                 unsigned long /*source*/,
72                 unsigned long /*mask*/
73 #endif
74 );
75     Bool        (*SaveUnderCursor)(
76 #if NeedNestedPrototypes
77                 ScreenPtr /*pScreen*/,
78                 int /*x*/,
79                 int /*y*/,
80                 int /*w*/,
81                 int /*h*/
82 #endif
83 );
84     Bool        (*RestoreUnderCursor)(
85 #if NeedNestedPrototypes
86                 ScreenPtr /*pScreen*/,
87                 int /*x*/,
88                 int /*y*/,
89                 int /*w*/,
90                 int /*h*/
91 #endif
92 );
93
94 } rfbSpriteCursorFuncRec, *rfbSpriteCursorFuncPtr;
95
96 extern Bool rfbSpriteInitialize(
97 #if NeedFunctionPrototypes
98     ScreenPtr /*pScreen*/,
99     rfbSpriteCursorFuncPtr /*cursorFuncs*/,
100     miPointerScreenFuncPtr /*screenFuncs*/
101 #endif
102 );
103
104 extern void rfbSpriteRestoreCursor(
105 #if NeedFunctionPrototypes
106     ScreenPtr   /*pScreen*/
107 #endif
108 );