VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.18.0/mipointer.h

Last change on this file was 58634, checked in by vboxsync, 9 years ago

Additions/x11: added header files for building X.Org video driver against X.Org Server 1.18.

  • Property svn:eol-style set to native
File size: 4.6 KB
Line 
1/*
2
3Copyright 1989, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24*/
25
26#ifndef MIPOINTER_H
27#define MIPOINTER_H
28
29#include "cursor.h"
30#include "input.h"
31#include "privates.h"
32
33typedef struct _miPointerSpriteFuncRec {
34 Bool (*RealizeCursor) (DeviceIntPtr /* pDev */ ,
35 ScreenPtr /* pScr */ ,
36 CursorPtr /* pCurs */
37 );
38 Bool (*UnrealizeCursor) (DeviceIntPtr /* pDev */ ,
39 ScreenPtr /* pScr */ ,
40 CursorPtr /* pCurs */
41 );
42 void (*SetCursor) (DeviceIntPtr /* pDev */ ,
43 ScreenPtr /* pScr */ ,
44 CursorPtr /* pCurs */ ,
45 int /* x */ ,
46 int /* y */
47 );
48 void (*MoveCursor) (DeviceIntPtr /* pDev */ ,
49 ScreenPtr /* pScr */ ,
50 int /* x */ ,
51 int /* y */
52 );
53 Bool (*DeviceCursorInitialize) (DeviceIntPtr /* pDev */ ,
54 ScreenPtr /* pScr */
55 );
56 void (*DeviceCursorCleanup) (DeviceIntPtr /* pDev */ ,
57 ScreenPtr /* pScr */
58 );
59} miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;
60
61typedef struct _miPointerScreenFuncRec {
62 Bool (*CursorOffScreen) (ScreenPtr * /* ppScr */ ,
63 int * /* px */ ,
64 int * /* py */
65 );
66 void (*CrossScreen) (ScreenPtr /* pScr */ ,
67 int /* entering */
68 );
69 void (*WarpCursor) (DeviceIntPtr /*pDev */ ,
70 ScreenPtr /* pScr */ ,
71 int /* x */ ,
72 int /* y */
73 );
74} miPointerScreenFuncRec, *miPointerScreenFuncPtr;
75
76extern _X_EXPORT Bool miDCInitialize(ScreenPtr /*pScreen */ ,
77 miPointerScreenFuncPtr /*screenFuncs */
78 );
79
80extern _X_EXPORT Bool miPointerInitialize(ScreenPtr /*pScreen */ ,
81 miPointerSpriteFuncPtr
82 /*spriteFuncs */ ,
83 miPointerScreenFuncPtr
84 /*screenFuncs */ ,
85 Bool /*waitForUpdate */
86 );
87
88extern _X_EXPORT void miPointerWarpCursor(DeviceIntPtr /*pDev */ ,
89 ScreenPtr /*pScreen */ ,
90 int /*x */ ,
91 int /*y */
92 );
93
94extern _X_EXPORT ScreenPtr
95miPointerGetScreen(DeviceIntPtr pDev);
96extern _X_EXPORT void
97miPointerSetScreen(DeviceIntPtr pDev, int screen_num, int x, int y);
98
99/* Returns the current cursor position. */
100extern _X_EXPORT void
101miPointerGetPosition(DeviceIntPtr pDev, int *x, int *y);
102
103/* Moves the cursor to the specified position. May clip the co-ordinates:
104 * x and y are modified in-place. */
105extern _X_EXPORT ScreenPtr
106miPointerSetPosition(DeviceIntPtr pDev, int mode, double *x, double *y,
107 int *nevents, InternalEvent *events);
108
109extern _X_EXPORT void
110miPointerUpdateSprite(DeviceIntPtr pDev);
111
112/* Sets whether the sprite should be updated immediately on pointer moves */
113extern _X_EXPORT Bool
114miPointerSetWaitForUpdate(ScreenPtr pScreen, Bool wait);
115
116extern _X_EXPORT DevPrivateKeyRec miPointerPrivKeyRec;
117
118#define miPointerPrivKey (&miPointerPrivKeyRec)
119
120extern _X_EXPORT DevPrivateKeyRec miPointerScreenKeyRec;
121
122#define miPointerScreenKey (&miPointerScreenKeyRec)
123
124#endif /* MIPOINTER_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette