VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/cursor.h@ 79043

Last change on this file since 79043 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1/* $XdotOrg: xserver/xorg/include/cursor.h,v 1.6 2005/08/24 11:18:30 daniels Exp $ */
2/* $XFree86: xc/programs/Xserver/include/cursor.h,v 1.6 2002/09/17 01:15:14 dawes Exp $ */
3/***********************************************************
4
5Copyright 1987, 1998 The Open Group
6
7Permission to use, copy, modify, distribute, and sell this software and its
8documentation for any purpose is hereby granted without fee, provided that
9the above copyright notice appear in all copies and that both that
10copyright notice and this permission notice appear in supporting
11documentation.
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from The Open Group.
26
27
28Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
29
30 All Rights Reserved
31
32Permission to use, copy, modify, and distribute this software and its
33documentation for any purpose and without fee is hereby granted,
34provided that the above copyright notice appear in all copies and that
35both that copyright notice and this permission notice appear in
36supporting documentation, and that the name of Digital not be
37used in advertising or publicity pertaining to distribution of the
38software without specific, written prior permission.
39
40DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
41ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
42DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
43ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
44WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
46SOFTWARE.
47
48******************************************************************/
49/* $Xorg: cursor.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */
50
51#ifndef CURSOR_H
52#define CURSOR_H
53
54#include "misc.h"
55#include "screenint.h"
56#include "window.h"
57
58#define NullCursor ((CursorPtr)NULL)
59
60/* Provide support for alpha composited cursors */
61#ifdef RENDER
62#define ARGB_CURSOR
63#endif
64
65typedef struct _Cursor *CursorPtr;
66typedef struct _CursorMetric *CursorMetricPtr;
67
68extern CursorPtr rootCursor;
69
70extern int FreeCursor(
71 pointer /*pCurs*/,
72 XID /*cid*/);
73
74/* Quartz support on Mac OS X pulls in the QuickDraw
75 framework whose AllocCursor function conflicts here. */
76#ifdef __DARWIN__
77#define AllocCursor Darwin_X_AllocCursor
78#endif
79extern CursorPtr AllocCursor(
80 unsigned char* /*psrcbits*/,
81 unsigned char* /*pmaskbits*/,
82 CursorMetricPtr /*cm*/,
83 unsigned /*foreRed*/,
84 unsigned /*foreGreen*/,
85 unsigned /*foreBlue*/,
86 unsigned /*backRed*/,
87 unsigned /*backGreen*/,
88 unsigned /*backBlue*/);
89
90extern CursorPtr AllocCursorARGB(
91 unsigned char* /*psrcbits*/,
92 unsigned char* /*pmaskbits*/,
93 CARD32* /*argb*/,
94 CursorMetricPtr /*cm*/,
95 unsigned /*foreRed*/,
96 unsigned /*foreGreen*/,
97 unsigned /*foreBlue*/,
98 unsigned /*backRed*/,
99 unsigned /*backGreen*/,
100 unsigned /*backBlue*/);
101
102extern int AllocGlyphCursor(
103 Font /*source*/,
104 unsigned int /*sourceChar*/,
105 Font /*mask*/,
106 unsigned int /*maskChar*/,
107 unsigned /*foreRed*/,
108 unsigned /*foreGreen*/,
109 unsigned /*foreBlue*/,
110 unsigned /*backRed*/,
111 unsigned /*backGreen*/,
112 unsigned /*backBlue*/,
113 CursorPtr* /*ppCurs*/,
114 ClientPtr /*client*/);
115
116extern CursorPtr CreateRootCursor(
117 char* /*pfilename*/,
118 unsigned int /*glyph*/);
119
120extern int ServerBitsFromGlyph(
121 FontPtr /*pfont*/,
122 unsigned int /*ch*/,
123 register CursorMetricPtr /*cm*/,
124 unsigned char ** /*ppbits*/);
125
126extern Bool CursorMetricsFromGlyph(
127 FontPtr /*pfont*/,
128 unsigned /*ch*/,
129 CursorMetricPtr /*cm*/);
130
131extern void CheckCursorConfinement(
132 WindowPtr /*pWin*/);
133
134extern void NewCurrentScreen(
135 ScreenPtr /*newScreen*/,
136 int /*x*/,
137 int /*y*/);
138
139extern Bool PointerConfinedToScreen(void);
140
141extern void GetSpritePosition(
142 int * /*px*/,
143 int * /*py*/);
144
145#ifdef PANORAMIX
146extern int XineramaGetCursorScreen(void);
147#endif /* PANORAMIX */
148
149#endif /* CURSOR_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