applewmconst.h revision 17ca54c3
1/************************************************************************** 2 3Copyright (c) 2002 Apple Computer, Inc. 4All Rights Reserved. 5 6Permission is hereby granted, free of charge, to any person obtaining a 7copy of this software and associated documentation files (the 8"Software"), to deal in the Software without restriction, including 9without limitation the rights to use, copy, modify, merge, publish, 10distribute, sub license, and/or sell copies of the Software, and to 11permit persons to whom the Software is furnished to do so, subject to 12the following conditions: 13 14The above copyright notice and this permission notice (including the 15next paragraph) shall be included in all copies or substantial portions 16of the Software. 17 18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 21IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR 22ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 26**************************************************************************/ 27 28#ifndef _APPLEWMCONST_H_ 29#define _APPLEWMCONST_H_ 30 31/* Events */ 32#define AppleWMControllerNotify 0 33#define AppleWMActivationNotify 1 34#define AppleWMPasteboardNotify 2 35#define AppleWMNumberEvents 3 36 37#define AppleWMControllerNotifyMask (1L << 0) 38#define AppleWMActivationNotifyMask (1L << 1) 39#define AppleWMPasteboardNotifyMask (1L << 2) 40 41/* "Kinds" of ControllerNotify events */ 42#define AppleWMMinimizeWindow 0 43#define AppleWMZoomWindow 1 44#define AppleWMCloseWindow 2 45#define AppleWMBringAllToFront 3 46#define AppleWMHideWindow 4 47#define AppleWMHideAll 5 48#define AppleWMShowAll 6 49#define AppleWMWindowMenuItem 9 50#define AppleWMWindowMenuNotify 10 51#define AppleWMNextWindow 11 52#define AppleWMPreviousWindow 12 53 54/* "Kinds" of ActivationNotify events */ 55#define AppleWMIsActive 0 56#define AppleWMIsInactive 1 57#define AppleWMReloadPreferences 2 58 59/* "Kinds" of PasteboardNotify events */ 60#define AppleWMCopyToPasteboard 0 61 62/* Errors */ 63#define AppleWMClientNotLocal 0 64#define AppleWMOperationNotSupported 1 65#define AppleWMNumberErrors (AppleWMOperationNotSupported + 1) 66 67/* Window level ids */ 68#define AppleWMWindowLevelNormal 0 69#define AppleWMWindowLevelFloating 1 70#define AppleWMWindowLevelTornOff 2 71#define AppleWMWindowLevelDock 3 72#define AppleWMWindowLevelDesktop 4 73#define AppleWMNumWindowLevels 5 74 75/* Possible value for frame_rect argument to XAppleWMFrameGetRect() */ 76/* Use xp_frame_rect_enum from <Xplugin.h> */ 77 78/* Window frame classes */ 79/* Use xp_frame_class_enum from <Xplugin.h> */ 80 81/* Window frame attributes */ 82/* Use xp_frame_attr_enum from <Xplugin.h> */ 83 84#endif /* _APPLEWMCONST_H_ */ 85