|
Carlos Lopez |
a09598 |
/* $XFree86: xc/lib/GL/dri/xf86dri.h,v 1.7 2000/12/07 20:26:02 dawes Exp $ */
|
|
Carlos Lopez |
a09598 |
/**************************************************************************
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
|
|
Carlos Lopez |
a09598 |
Copyright 2000 VA Linux Systems, Inc.
|
|
Carlos Lopez |
a09598 |
Copyright (c) 2002 Apple Computer, Inc.
|
|
Carlos Lopez |
a09598 |
All Rights Reserved.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Permission is hereby granted, free of charge, to any person obtaining a
|
|
Carlos Lopez |
a09598 |
copy of this software and associated documentation files (the
|
|
Carlos Lopez |
a09598 |
"Software"), to deal in the Software without restriction, including
|
|
Carlos Lopez |
a09598 |
without limitation the rights to use, copy, modify, merge, publish,
|
|
Carlos Lopez |
a09598 |
distribute, sub license, and/or sell copies of the Software, and to
|
|
Carlos Lopez |
a09598 |
permit persons to whom the Software is furnished to do so, subject to
|
|
Carlos Lopez |
a09598 |
the following conditions:
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
The above copyright notice and this permission notice (including the
|
|
Carlos Lopez |
a09598 |
next paragraph) shall be included in all copies or substantial portions
|
|
Carlos Lopez |
a09598 |
of the Software.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
Carlos Lopez |
a09598 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Carlos Lopez |
a09598 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
Carlos Lopez |
a09598 |
IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
|
Carlos Lopez |
a09598 |
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Carlos Lopez |
a09598 |
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Carlos Lopez |
a09598 |
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
**************************************************************************/
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#ifndef _APPLEWM_H_
|
|
Carlos Lopez |
a09598 |
#define _APPLEWM_H_
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#include <x11 xfuncproto.h=""></x11>
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMQueryVersion 0
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMFrameGetRect 1
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMFrameHitTest 2
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMFrameDraw 3
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMDisableUpdate 4
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMReenableUpdate 5
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSelectInput 6
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSetWindowMenuCheck 7
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSetFrontProcess 8
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSetWindowLevel 9
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSetCanQuit 10
|
|
Carlos Lopez |
a09598 |
#define X_AppleWMSetWindowMenu 11
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* Events */
|
|
Carlos Lopez |
a09598 |
#define AppleWMControllerNotify 0
|
|
Carlos Lopez |
a09598 |
#define AppleWMActivationNotify 1
|
|
Carlos Lopez |
a09598 |
#define AppleWMPasteboardNotify 2
|
|
Carlos Lopez |
a09598 |
#define AppleWMNumberEvents 3
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#define AppleWMControllerNotifyMask (1L << 0)
|
|
Carlos Lopez |
a09598 |
#define AppleWMActivationNotifyMask (1L << 1)
|
|
Carlos Lopez |
a09598 |
#define AppleWMPasteboardNotifyMask (1L << 2)
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* "Kinds" of ControllerNotify events */
|
|
Carlos Lopez |
a09598 |
#define AppleWMMinimizeWindow 0
|
|
Carlos Lopez |
a09598 |
#define AppleWMZoomWindow 1
|
|
Carlos Lopez |
a09598 |
#define AppleWMCloseWindow 2
|
|
Carlos Lopez |
a09598 |
#define AppleWMBringAllToFront 3
|
|
Carlos Lopez |
a09598 |
#define AppleWMHideWindow 4
|
|
Carlos Lopez |
a09598 |
#define AppleWMHideAll 5
|
|
Carlos Lopez |
a09598 |
#define AppleWMShowAll 6
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowMenuItem 9
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowMenuNotify 10
|
|
Carlos Lopez |
a09598 |
#define AppleWMNextWindow 11
|
|
Carlos Lopez |
a09598 |
#define AppleWMPreviousWindow 12
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* "Kinds" of ActivationNotify events */
|
|
Carlos Lopez |
a09598 |
#define AppleWMIsActive 0
|
|
Carlos Lopez |
a09598 |
#define AppleWMIsInactive 1
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* "Kinds" of PasteboardNotify events */
|
|
Carlos Lopez |
a09598 |
#define AppleWMCopyToPasteboard 0
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* Errors */
|
|
Carlos Lopez |
a09598 |
#define AppleWMClientNotLocal 0
|
|
Carlos Lopez |
a09598 |
#define AppleWMOperationNotSupported 1
|
|
Carlos Lopez |
a09598 |
#define AppleWMNumberErrors (AppleWMOperationNotSupported + 1)
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* Window level ids */
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowLevelNormal 0
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowLevelFloating 1
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowLevelTornOff 2
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowLevelDock 3
|
|
Carlos Lopez |
a09598 |
#define AppleWMWindowLevelDesktop 4
|
|
Carlos Lopez |
a09598 |
#define AppleWMNumWindowLevels 5
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#ifndef _APPLEWM_SERVER_
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
typedef struct {
|
|
Carlos Lopez |
a09598 |
int type; /* of event */
|
|
Carlos Lopez |
a09598 |
unsigned long serial; /* # of last request processed by server */
|
|
Carlos Lopez |
a09598 |
Bool send_event; /* true if this came from a SendEvent request */
|
|
Carlos Lopez |
a09598 |
Display *display; /* Display the event was read from */
|
|
Carlos Lopez |
a09598 |
Window window; /* window of event */
|
|
Carlos Lopez |
a09598 |
Time time; /* server timestamp when event happened */
|
|
Carlos Lopez |
a09598 |
int kind; /* subtype of event */
|
|
Carlos Lopez |
a09598 |
int arg;
|
|
Carlos Lopez |
a09598 |
} XAppleWMNotifyEvent;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
_XFUNCPROTOBEGIN
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMQueryExtension (Display *dpy, int *event_base, int *error_base);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMQueryVersion (Display *dpy, int *majorVersion,
|
|
Carlos Lopez |
a09598 |
int *minorVersion, int *patchVersion);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMDisableUpdate (Display *dpy, int screen);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMReenableUpdate (Display *dpy, int screen);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSelectInput (Display *dpy, unsigned long mask);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetWindowMenu (Display *dpy, int nitems, const char **items);
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetWindowMenuWithShortcuts (Display *dpy, int nitems,
|
|
Carlos Lopez |
a09598 |
const char **items,
|
|
Carlos Lopez |
a09598 |
const char *shortcuts);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetWindowMenuCheck (Display *dpy, int index);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetFrontProcess (Display *dpy);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetWindowLevel (Display *dpy, Window id, int level);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMSetCanQuit (Display *dpy, Bool state);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMFrameGetRect (Display *dpy,
|
|
Carlos Lopez |
a09598 |
unsigned int frame_class, unsigned int frame_rect,
|
|
Carlos Lopez |
a09598 |
short inner_x, short inner_y,
|
|
Carlos Lopez |
a09598 |
short inner_w, short inner_h,
|
|
Carlos Lopez |
a09598 |
short outer_x, short outer_y,
|
|
Carlos Lopez |
a09598 |
short outer_w, short outer_h,
|
|
Carlos Lopez |
a09598 |
short *ret_x, short *ret_y,
|
|
Carlos Lopez |
a09598 |
short *ret_w, short *ret_h);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
unsigned int XAppleWMFrameHitTest (Display *dpy,
|
|
Carlos Lopez |
a09598 |
unsigned int frame_class,
|
|
Carlos Lopez |
a09598 |
short point_x, short point_y,
|
|
Carlos Lopez |
a09598 |
short inner_x, short inner_y,
|
|
Carlos Lopez |
a09598 |
short inner_w, short inner_h,
|
|
Carlos Lopez |
a09598 |
short outer_x, short outer_y,
|
|
Carlos Lopez |
a09598 |
short outer_w, short outer_h);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Bool XAppleWMFrameDraw (Display *dpy, int screen, Window window,
|
|
Carlos Lopez |
a09598 |
unsigned int frame_class, unsigned int frame_attr,
|
|
Carlos Lopez |
a09598 |
short inner_x, short inner_y,
|
|
Carlos Lopez |
a09598 |
short inner_w, short inner_h,
|
|
Carlos Lopez |
a09598 |
short outer_x, short outer_y,
|
|
Carlos Lopez |
a09598 |
short outer_w, short outer_h,
|
|
Carlos Lopez |
a09598 |
unsigned int title_length,
|
|
Carlos Lopez |
a09598 |
const unsigned char * title_bytes);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
_XFUNCPROTOEND
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#endif /* _APPLEWM_SERVER_ */
|
|
Carlos Lopez |
a09598 |
#endif /* _APPLEWM_H_ */
|