VirtualBox

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

Last change on this file since 68495 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: 2.9 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/* $XFree86: xc/programs/Xserver/hw/darwin/quartz/applewmExt.h,v 1.2 2003/11/11 23:48:41 torrey Exp $ */
31
32#ifndef _APPLEWMEXT_H_
33#define _APPLEWMEXT_H_
34
35#include "window.h"
36
37typedef int (*DisableUpdateProc)(void);
38typedef int (*EnableUpdateProc)(void);
39typedef int (*SetWindowLevelProc)(WindowPtr pWin, int level);
40typedef int (*FrameGetRectProc)(int type, int class, const BoxRec *outer,
41 const BoxRec *inner, BoxRec *ret);
42typedef int (*FrameHitTestProc)(int class, int x, int y,
43 const BoxRec *outer,
44 const BoxRec *inner, int *ret);
45typedef int (*FrameDrawProc)(WindowPtr pWin, int class, unsigned int attr,
46 const BoxRec *outer, const BoxRec *inner,
47 unsigned int title_len,
48 const unsigned char *title_bytes);
49
50/*
51 * AppleWM implementation function list
52 */
53typedef struct _AppleWMProcs {
54 DisableUpdateProc DisableUpdate;
55 EnableUpdateProc EnableUpdate;
56 SetWindowLevelProc SetWindowLevel;
57 FrameGetRectProc FrameGetRect;
58 FrameHitTestProc FrameHitTest;
59 FrameDrawProc FrameDraw;
60} AppleWMProcsRec, *AppleWMProcsPtr;
61
62void AppleWMExtensionInit(
63 AppleWMProcsPtr procsPtr
64);
65
66void AppleWMSetScreenOrigin(
67 WindowPtr pWin
68);
69
70Bool AppleWMDoReorderWindow(
71 WindowPtr pWin
72);
73
74void AppleWMSendEvent(
75 int /* type */,
76 unsigned int /* mask */,
77 int /* which */,
78 int /* arg */
79);
80
81unsigned int AppleWMSelectedEvents(
82 void
83);
84
85#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