Commit | Line | Data |
---|---|---|
a09e091a JB |
1 | /* |
2 | * mipointrst.h | |
3 | * | |
4 | */ | |
5 | ||
6 | /* | |
7 | ||
8 | Copyright 1989, 1998 The Open Group | |
9 | ||
10 | Permission to use, copy, modify, distribute, and sell this software and its | |
11 | documentation for any purpose is hereby granted without fee, provided that | |
12 | the above copyright notice appear in all copies and that both that | |
13 | copyright notice and this permission notice appear in supporting | |
14 | documentation. | |
15 | ||
16 | The above copyright notice and this permission notice shall be included in | |
17 | all copies or substantial portions of the Software. | |
18 | ||
19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
22 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | |
23 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
25 | ||
26 | Except as contained in this notice, the name of The Open Group shall not be | |
27 | used in advertising or otherwise to promote the sale, use or other dealings | |
28 | in this Software without prior written authorization from The Open Group. | |
29 | */ | |
30 | ||
31 | #ifndef MIPOINTRST_H | |
32 | #define MIPOINTRST_H | |
33 | ||
34 | #include "mipointer.h" | |
35 | #include "scrnintstr.h" | |
36 | ||
37 | typedef struct { | |
38 | ScreenPtr pScreen; /* current screen */ | |
39 | ScreenPtr pSpriteScreen; /* screen containing current sprite */ | |
40 | CursorPtr pCursor; /* current cursor */ | |
41 | CursorPtr pSpriteCursor; /* cursor on screen */ | |
42 | BoxRec limits; /* current constraints */ | |
43 | Bool confined; /* pointer can't change screens */ | |
44 | int x, y; /* hot spot location */ | |
45 | int devx, devy; /* sprite position */ | |
46 | Bool generateEvent; /* generate an event during warping? */ | |
47 | } miPointerRec, *miPointerPtr; | |
48 | ||
49 | typedef struct { | |
50 | miPointerSpriteFuncPtr spriteFuncs; /* sprite-specific methods */ | |
51 | miPointerScreenFuncPtr screenFuncs; /* screen-specific methods */ | |
52 | CloseScreenProcPtr CloseScreen; | |
53 | Bool waitForUpdate; /* don't move cursor in SIGIO */ | |
54 | Bool showTransparent; /* show empty cursors */ | |
55 | } miPointerScreenRec, *miPointerScreenPtr; | |
56 | #endif /* MIPOINTRST_H */ |