2 * External interface to generic rootless mode
4 * Greg Parker gparker@cs.stanford.edu March 3, 2001
7 /* Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
9 Permission is hereby granted, free of charge, to any person
10 obtaining a copy of this software and associated documentation files
11 (the "Software"), to deal in the Software without restriction,
12 including without limitation the rights to use, copy, modify, merge,
13 publish, distribute, sublicense, and/or sell copies of the Software,
14 and to permit persons to whom the Software is furnished to do so,
15 subject to the following conditions:
17 The above copyright notice and this permission notice shall be
18 included in all copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
24 HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 DEALINGS IN THE SOFTWARE.
29 Except as contained in this notice, the name(s) of the above
30 copyright holders shall not be used in advertising or otherwise to
31 promote the sale, use or other dealings in this Software without
32 prior written authorization. */
34 /* $XFree86: xc/programs/Xserver/hw/darwin/quartz/rootless.h,v 1.2 2002/08/28 06:41:26 torrey Exp $ */
44 /* Initialize rootless mode on the given screen. */
45 extern Bool RootlessSetupScreen(int index, ScreenPtr pScreen);
47 extern void RootlessUpdateScreenPixmap (ScreenPtr pScreen);
49 extern xp_window_id RootlessGetPhysicalWindow (WindowPtr pWin, Bool create);
50 extern WindowPtr RootlessGetXWindow (xp_window_id wid);
52 extern int RootlessKnowsWindowNumber (int number);
54 extern void RootlessDisableUpdate (WindowPtr pWin);
55 extern void RootlessReenableUpdate (WindowPtr pWin);
57 extern void RootlessUpdateRooted (Bool state);
58 extern void RootlessHideAllWindows (void);
59 extern void RootlessShowAllWindows (void);
61 #endif /* _ROOTLESS_H */