VirtualBox

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

Last change on this file since 72293 was 43251, checked in by vboxsync, 12 years ago

Additions/x11: added headers for X.Org Server 1.13.

  • Property svn:eol-style set to native
File size: 5.0 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 void (*EnqueueEvent) (DeviceIntPtr /* pDev */ ,
75 InternalEvent * /* event */
76 );
77 void (*NewEventScreen) (DeviceIntPtr /* pDev */ ,
78 ScreenPtr /* pScr */ ,
79 Bool /* set_dequeue_screen */
80 );
81} miPointerScreenFuncRec, *miPointerScreenFuncPtr;
82
83extern _X_EXPORT Bool miDCInitialize(ScreenPtr /*pScreen */ ,
84 miPointerScreenFuncPtr /*screenFuncs */
85 );
86
87extern _X_EXPORT Bool miPointerInitialize(ScreenPtr /*pScreen */ ,
88 miPointerSpriteFuncPtr
89 /*spriteFuncs */ ,
90 miPointerScreenFuncPtr
91 /*screenFuncs */ ,
92 Bool /*waitForUpdate */
93 );
94
95extern _X_EXPORT void miPointerWarpCursor(DeviceIntPtr /*pDev */ ,
96 ScreenPtr /*pScreen */ ,
97 int /*x */ ,
98 int /*y */
99 );
100
101/* Deprecated in favour of miPointerGetScreen. */
102extern _X_EXPORT ScreenPtr
103miPointerCurrentScreen(void
104) _X_DEPRECATED;
105
106extern _X_EXPORT ScreenPtr
107miPointerGetScreen(DeviceIntPtr pDev);
108extern _X_EXPORT void
109miPointerSetScreen(DeviceIntPtr pDev, int screen_num, int x, int y);
110
111/* Returns the current cursor position. */
112extern _X_EXPORT void
113miPointerGetPosition(DeviceIntPtr pDev, int *x, int *y);
114
115/* Moves the cursor to the specified position. May clip the co-ordinates:
116 * x and y are modified in-place. */
117extern _X_EXPORT ScreenPtr
118miPointerSetPosition(DeviceIntPtr pDev, int mode, double *x, double *y);
119
120extern _X_EXPORT void
121miPointerUpdateSprite(DeviceIntPtr pDev);
122
123/* Sets whether the sprite should be updated immediately on pointer moves */
124extern _X_EXPORT Bool
125miPointerSetWaitForUpdate(ScreenPtr pScreen, Bool wait);
126
127extern _X_EXPORT DevPrivateKeyRec miPointerPrivKeyRec;
128
129#define miPointerPrivKey (&miPointerPrivKeyRec)
130
131extern _X_EXPORT DevPrivateKeyRec miPointerScreenKeyRec;
132
133#define miPointerScreenKey (&miPointerScreenKeyRec)
134
135#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