1 | /* $XFree86$ */
|
---|
2 | /*
|
---|
3 | * Copyright 2001-2004 Red Hat Inc., Durham, North Carolina.
|
---|
4 | *
|
---|
5 | * All Rights Reserved.
|
---|
6 | *
|
---|
7 | * Permission is hereby granted, free of charge, to any person obtaining
|
---|
8 | * a copy of this software and associated documentation files (the
|
---|
9 | * "Software"), to deal in the Software without restriction, including
|
---|
10 | * without limitation on the rights to use, copy, modify, merge,
|
---|
11 | * publish, distribute, sublicense, and/or sell copies of the Software,
|
---|
12 | * and to permit persons to whom the Software is furnished to do so,
|
---|
13 | * subject to the following conditions:
|
---|
14 | *
|
---|
15 | * The above copyright notice and this permission notice (including the
|
---|
16 | * next paragraph) shall be included in all copies or substantial
|
---|
17 | * portions of the Software.
|
---|
18 | *
|
---|
19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
20 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
22 | * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
|
---|
23 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
---|
24 | * 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
|
---|
26 | * SOFTWARE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * Authors:
|
---|
31 | * David H. Dawes <[email protected]>
|
---|
32 | * Kevin E. Martin <[email protected]>
|
---|
33 | * Rickard E. (Rik) Faith <[email protected]>
|
---|
34 | *
|
---|
35 | */
|
---|
36 |
|
---|
37 | /** \file
|
---|
38 | * Interface for cursor support. \see dmxcursor.c. */
|
---|
39 |
|
---|
40 | #ifndef DMXCURSOR_H
|
---|
41 | #define DMXCURSOR_H
|
---|
42 |
|
---|
43 | #include "mipointer.h"
|
---|
44 |
|
---|
45 | /** Cursor private area. */
|
---|
46 | typedef struct _dmxCursorPriv {
|
---|
47 | Cursor cursor;
|
---|
48 | } dmxCursorPrivRec, *dmxCursorPrivPtr;
|
---|
49 |
|
---|
50 | /** Cursor functions for mi layer. \see dmxcursor.c \see dmxscrinit.c */
|
---|
51 | extern miPointerScreenFuncRec dmxPointerCursorFuncs;
|
---|
52 | /** Sprite functions for mi layer. \see dmxcursor.c \see dmxscrinit.c */
|
---|
53 | extern miPointerSpriteFuncRec dmxPointerSpriteFuncs;
|
---|
54 |
|
---|
55 | extern void dmxReInitOrigins(void);
|
---|
56 | extern void dmxInitOrigins(void);
|
---|
57 | extern void dmxInitOverlap(void);
|
---|
58 | extern void dmxCursorNoMulti(void);
|
---|
59 | extern void dmxMoveCursor(ScreenPtr pScreen, int x, int y);
|
---|
60 | extern void dmxCheckCursor(void);
|
---|
61 | extern int dmxOnScreen(int x, int y, DMXScreenInfo *dmxScreen);
|
---|
62 | extern void dmxHideCursor(DMXScreenInfo *dmxScreen);
|
---|
63 |
|
---|
64 | extern void dmxBECreateCursor(ScreenPtr pScreen, CursorPtr pCursor);
|
---|
65 | extern Bool dmxBEFreeCursor(ScreenPtr pScreen, CursorPtr pCursor);
|
---|
66 |
|
---|
67 | #define DMX_GET_CURSOR_PRIV(_pCursor, _pScreen) \
|
---|
68 | (dmxCursorPrivPtr)(_pCursor)->devPriv[(_pScreen)->myNum]
|
---|
69 |
|
---|
70 | #endif /* DMXCURSOR_H */
|
---|