VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/applewmExt.h@ 81043

Last change on this file since 81043 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1/*
2 * External interface for the server's AppleWM support
3 */
4/**************************************************************************
5
6Copyright (c) 2002 Apple Computer, Inc. All Rights Reserved.
7Copyright (c) 2003-2004 Torrey T. Lyons. All Rights Reserved.
8
9Permission is hereby granted, free of charge, to any person obtaining a
10copy of this software and associated documentation files (the
11"Software"), to deal in the Software without restriction, including
12without limitation the rights to use, copy, modify, merge, publish,
13distribute, sub license, and/or sell copies of the Software, and to
14permit persons to whom the Software is furnished to do so, subject to
15the following conditions:
16
17The above copyright notice and this permission notice (including the
18next paragraph) shall be included in all copies or substantial portions
19of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
24IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
25ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
29**************************************************************************/
30
31#ifndef _APPLEWMEXT_H_
32#define _APPLEWMEXT_H_
33
34#include "window.h"
35
36typedef int (*DisableUpdateProc)(void);
37typedef int (*EnableUpdateProc)(void);
38typedef int (*SetWindowLevelProc)(WindowPtr pWin, int level);
39typedef int (*FrameGetRectProc)(int type, int class, const BoxRec *outer,
40 const BoxRec *inner, BoxRec *ret);
41typedef int (*FrameHitTestProc)(int class, int x, int y,
42 const BoxRec *outer,
43 const BoxRec *inner, int *ret);
44typedef int (*FrameDrawProc)(WindowPtr pWin, int class, unsigned int attr,
45 const BoxRec *outer, const BoxRec *inner,
46 unsigned int title_len,
47 const unsigned char *title_bytes);
48
49/*
50 * AppleWM implementation function list
51 */
52typedef struct _AppleWMProcs {
53 DisableUpdateProc DisableUpdate;
54 EnableUpdateProc EnableUpdate;
55 SetWindowLevelProc SetWindowLevel;
56 FrameGetRectProc FrameGetRect;
57 FrameHitTestProc FrameHitTest;
58 FrameDrawProc FrameDraw;
59} AppleWMProcsRec, *AppleWMProcsPtr;
60
61void AppleWMExtensionInit(
62 AppleWMProcsPtr procsPtr
63);
64
65void AppleWMSetScreenOrigin(
66 WindowPtr pWin
67);
68
69Bool AppleWMDoReorderWindow(
70 WindowPtr pWin
71);
72
73void AppleWMSendEvent(
74 int /* type */,
75 unsigned int /* mask */,
76 int /* which */,
77 int /* arg */
78);
79
80unsigned int AppleWMSelectedEvents(
81 void
82);
83
84#endif /* _APPLEWMEXT_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