VirtualBox

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

Last change on this file since 17448 was 17448, checked in by vboxsync, 16 years ago

Additions/x11: added a full header set for X.Org server 1.5 and 1.6

  • Property svn:eol-style set to native
File size: 4.7 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)(
35 DeviceIntPtr /* pDev */,
36 ScreenPtr /* pScr */,
37 CursorPtr /* pCurs */
38 );
39 Bool (*UnrealizeCursor)(
40 DeviceIntPtr /* pDev */,
41 ScreenPtr /* pScr */,
42 CursorPtr /* pCurs */
43 );
44 void (*SetCursor)(
45 DeviceIntPtr /* pDev */,
46 ScreenPtr /* pScr */,
47 CursorPtr /* pCurs */,
48 int /* x */,
49 int /* y */
50 );
51 void (*MoveCursor)(
52 DeviceIntPtr /* pDev */,
53 ScreenPtr /* pScr */,
54 int /* x */,
55 int /* y */
56 );
57 Bool (*DeviceCursorInitialize)(
58 DeviceIntPtr /* pDev */,
59 ScreenPtr /* pScr */
60 );
61 void (*DeviceCursorCleanup)(
62 DeviceIntPtr /* pDev */,
63 ScreenPtr /* pScr */
64 );
65} miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;
66
67typedef struct _miPointerScreenFuncRec {
68 Bool (*CursorOffScreen)(
69 ScreenPtr* /* ppScr */,
70 int* /* px */,
71 int* /* py */
72 );
73 void (*CrossScreen)(
74 ScreenPtr /* pScr */,
75 int /* entering */
76 );
77 void (*WarpCursor)(
78 DeviceIntPtr /*pDev*/,
79 ScreenPtr /* pScr */,
80 int /* x */,
81 int /* y */
82 );
83 void (*EnqueueEvent)(
84 DeviceIntPtr /* pDev */,
85 xEventPtr /* event */
86 );
87 void (*NewEventScreen)(
88 DeviceIntPtr /* pDev */,
89 ScreenPtr /* pScr */,
90 Bool /* fromDIX */
91 );
92} miPointerScreenFuncRec, *miPointerScreenFuncPtr;
93
94extern Bool miDCInitialize(
95 ScreenPtr /*pScreen*/,
96 miPointerScreenFuncPtr /*screenFuncs*/
97);
98
99extern Bool miPointerInitialize(
100 ScreenPtr /*pScreen*/,
101 miPointerSpriteFuncPtr /*spriteFuncs*/,
102 miPointerScreenFuncPtr /*screenFuncs*/,
103 Bool /*waitForUpdate*/
104);
105
106extern void miPointerWarpCursor(
107 DeviceIntPtr /*pDev*/,
108 ScreenPtr /*pScreen*/,
109 int /*x*/,
110 int /*y*/
111) _X_DEPRECATED;
112
113extern int miPointerGetMotionEvents(
114 DeviceIntPtr /*pPtr*/,
115 xTimecoord * /*coords*/,
116 unsigned long /*start*/,
117 unsigned long /*stop*/,
118 ScreenPtr /*pScreen*/
119);
120
121/* Deprecated in favour of miPointerSetPosition. */
122extern void miPointerAbsoluteCursor(
123 int /*x*/,
124 int /*y*/,
125 unsigned long /*time*/
126) _X_DEPRECATED;
127
128/* Deprecated in favour of miPointerGetScreen. */
129extern ScreenPtr miPointerCurrentScreen(
130 void
131) _X_DEPRECATED;
132
133extern ScreenPtr miPointerGetScreen(
134 DeviceIntPtr pDev);
135extern void miPointerSetScreen(
136 DeviceIntPtr pDev,
137 int screen_num,
138 int x,
139 int y);
140
141/* Returns the current cursor position. */
142extern void miPointerGetPosition(
143 DeviceIntPtr pDev,
144 int *x,
145 int *y);
146
147/* Moves the cursor to the specified position. May clip the co-ordinates:
148 * x and y are modified in-place. */
149extern void miPointerSetPosition(
150 DeviceIntPtr pDev,
151 int *x,
152 int *y);
153
154extern void miPointerUpdateSprite(
155 DeviceIntPtr pDev);
156
157extern DevPrivateKey miPointerScreenKey;
158
159#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