- Main Page
- Data Structures
- Files

- File List
- Globals

dmxcursor.h
Go to the documentation of this file.

    00001 /*
    00002  * Copyright 2001-2004 Red Hat Inc., Durham, North Carolina.
    00003  *
    00004  * All Rights Reserved.
    00005  *
    00006  * Permission is hereby granted, free of charge, to any person obtaining
    00007  * a copy of this software and associated documentation files (the
    00008  * "Software"), to deal in the Software without restriction, including
    00009  * without limitation on the rights to use, copy, modify, merge,
    00010  * publish, distribute, sublicense, and/or sell copies of the Software,
    00011  * and to permit persons to whom the Software is furnished to do so,
    00012  * subject to the following conditions:
    00013  *
    00014  * The above copyright notice and this permission notice (including the
    00015  * next paragraph) shall be included in all copies or substantial
    00016  * portions of the Software.
    00017  *
    00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    00019  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00020  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    00021  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
    00022  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    00023  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    00024  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    00025  * SOFTWARE.
    00026  */
    00027
    00028 /*
    00029  * Authors:
    00030  *   David H. Dawes <dawes@xfree86.org>
    00031  *   Kevin E. Martin <kem@redhat.com>
    00032  *   Rickard E. (Rik) Faith <faith@redhat.com>
    00033  *
    00034  */
    00035
    00039 #ifndef DMXCURSOR_H
    00040 #define DMXCURSOR_H
    00041
    00042 #include "mipointer.h"
    00043
    00045 typedef struct _dmxCursorPriv {
    00046     Cursor  cursor;
    00047 } dmxCursorPrivRec, *dmxCursorPrivPtr;
    00048
    00050 extern miPointerScreenFuncRec dmxPointerCursorFuncs;
    00052 extern miPointerSpriteFuncRec dmxPointerSpriteFuncs;
    00053
    00054 extern void dmxReInitOrigins(void);
    00055 extern void dmxInitOrigins(void);
    00056 extern void dmxInitOverlap(void);
    00057 extern void dmxCursorNoMulti(void);
    00058 extern void dmxMoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y);
    00059 extern void dmxCheckCursor(void);
    00060 extern int  dmxOnScreen(int x, int y, DMXScreenInfo *dmxScreen);
    00061 extern void dmxHideCursor(DMXScreenInfo *dmxScreen);
    00062
    00063 extern void dmxBECreateCursor(ScreenPtr pScreen, CursorPtr pCursor);
    00064 extern Bool dmxBEFreeCursor(ScreenPtr pScreen, CursorPtr pCursor);
    00065
    00066 #define DMX_GET_CURSOR_PRIV(_pCursor, _pScreen) ((dmxCursorPrivPtr) \
    00067     dixLookupPrivate(&(_pCursor)->devPrivates, CursorScreenKey(_pScreen)))
    00068
    00069 #define DMX_SET_CURSOR_PRIV(_pCursor, _pScreen, v) \
    00070     dixSetPrivate(&(_pCursor)->devPrivates, CursorScreenKey(_pScreen), v)
    00071
    00072 #endif /* DMXCURSOR_H */