VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/quartzCommon.h@ 62425

最後變更 在這個檔案從62425是 51223,由 vboxsync 提交於 11 年 前

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

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.1 KB
 
1/* $XdotOrg: xc/programs/Xserver/hw/darwin/quartz/quartzCommon.h,v 1.3 2004/07/30 19:12:17 torrey Exp $ */
2/*
3 * quartzCommon.h
4 *
5 * Common definitions used internally by all Quartz modes
6 *
7 * This file should be included before any X11 or IOKit headers
8 * so that it can avoid symbol conflicts.
9 *
10 * Copyright (c) 2001-2004 Torrey T. Lyons and Greg Parker.
11 * All Rights Reserved.
12 *
13 * Permission is hereby granted, free of charge, to any person obtaining a
14 * copy of this software and associated documentation files (the "Software"),
15 * to deal in the Software without restriction, including without limitation
16 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 * and/or sell copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be included in
21 * all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
27 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 * DEALINGS IN THE SOFTWARE.
30 *
31 * Except as contained in this notice, the name(s) of the above copyright
32 * holders shall not be used in advertising or otherwise to promote the sale,
33 * use or other dealings in this Software without prior written authorization.
34 */
35/* $XFree86: xc/programs/Xserver/hw/darwin/quartz/quartzCommon.h,v 1.15 2004/06/08 22:58:10 torrey Exp $ */
36
37#ifndef _QUARTZCOMMON_H
38#define _QUARTZCOMMON_H
39
40// QuickDraw in ApplicationServices has the following conflicts with
41// the basic X server headers. Use QD_<name> to use the QuickDraw
42// definition of any of these symbols, or the normal name for the
43// X11 definition.
44#define Cursor QD_Cursor
45#define WindowPtr QD_WindowPtr
46#define Picture QD_Picture
47#include <ApplicationServices/ApplicationServices.h>
48#undef Cursor
49#undef WindowPtr
50#undef Picture
51
52// Quartz specific per screen storage structure
53typedef struct {
54 // List of CoreGraphics displays that this X11 screen covers.
55 // This is more than one CG display for video mirroring and
56 // rootless PseudoramiX mode.
57 // No CG display will be covered by more than one X11 screen.
58 int displayCount;
59 CGDirectDisplayID *displayIDs;
60} QuartzScreenRec, *QuartzScreenPtr;
61
62#define QUARTZ_PRIV(pScreen) \
63 ((QuartzScreenPtr)pScreen->devPrivates[quartzScreenIndex].ptr)
64
65// Data stored at startup for Cocoa front end
66extern int quartzEventWriteFD;
67extern int quartzStartClients;
68
69// User preferences used by Quartz modes
70extern int quartzRootless;
71extern int quartzUseSysBeep;
72extern int quartzUseAGL;
73extern int quartzEnableKeyEquivalents;
74
75// Other shared data
76extern int quartzServerVisible;
77extern int quartzServerQuitting;
78extern int quartzScreenIndex;
79extern int aquaMenuBarHeight;
80
81// Name of GLX bundle for native OpenGL
82extern const char *quartzOpenGLBundle;
83
84void QuartzReadPreferences(void);
85void QuartzMessageMainThread(unsigned msg, void *data, unsigned length);
86void QuartzMessageServerThread(int type, int argc, ...);
87void QuartzSetWindowMenu(int nitems, const char **items,
88 const char *shortcuts);
89void QuartzFSCapture(void);
90void QuartzFSRelease(void);
91int QuartzFSUseQDCursor(int depth);
92void QuartzBlockHandler(void *blockData, void *pTimeout, void *pReadmask);
93void QuartzWakeupHandler(void *blockData, int result, void *pReadmask);
94
95// Messages that can be sent to the main thread.
96enum {
97 kQuartzServerHidden,
98 kQuartzServerStarted,
99 kQuartzServerDied,
100 kQuartzCursorUpdate,
101 kQuartzPostEvent,
102 kQuartzSetWindowMenu,
103 kQuartzSetWindowMenuCheck,
104 kQuartzSetFrontProcess,
105 kQuartzSetCanQuit
106};
107
108#endif /* _QUARTZCOMMON_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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