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