ORCA-C/bin/Libraries/ORCACDefs/window.h

1 line
19 KiB
C
Raw Normal View History

/******************************************** * * Window Manager * * Copyright Apple Computer, Inc. 1986-92 * All Rights Reserved * * Copyright 1992, 1993, Byte Works, Inc. * ********************************************/ #ifndef __TYPES__ #include <TYPES.h> #endif #ifndef __WINDOW__ #define __WINDOW__ /* Error Codes */ #define paramLenErr 0x0E01 /* first word of parameter list is the wrong size */ #define allocateErr 0x0E02 /* unable to allocate window record */ #define taskMaskErr 0x0E03 /* reserved bits are not clear in wmTaskMask */ #define compileTooLarge 0x0E04 /* Compiled text is larger than 64 KB */ #define cantUpdateErr 0x0E05 /* window couldn't be updated */ /* Axis Parameters */ #define wNoConstraint 0x0000 /* No constraint on movement */ #define wHAxisOnly 0x0001 /* Horizontal axis only */ #define wVAxisOnly 0x0002 /* Vertical axis only */ /* Desktop Command Codes */ #define FromDesk 0x00 /* Subtract region from desktop */ #define ToDesk 0x1 /* Add region to desktop */ #define GetDesktop 0x2 /* Get Handle of Desktop region */ #define SetDesktop 0x3 /* Set Handle of Desktop region */ #define GetDeskPat 0x4 /* Address of pattern or drawing routine */ #define SetDeskPat 0x5 /* Change Address of pattern or drawing routine */ #define GetVisDesktop 0x6 /* Get destop region less visible windows */ #define BackGroundRgn 0x7 /* For drawing directly on desktop */ #define CheckForNewDeskMsg 0x8 /* Force rechecking message #2 */ /* SendBehind Values */ #define toBottom 0xFFFFFFFEL /* To send window to bottom */ #define topMost 0xFFFFFFFFL /* To make window top */ #define bottomMost 0x0000L /* To make window bottom */ /* Task Masks */ #define tmMenuKey 0x00000001L #define tmUpdate 0x00000002L #define tmFindW 0x00000004L #define tmMenuSel 0x0008L #define tmOpenNDA 0x0010L #define tmSysClick 0x0020L #define tmDragW 0x0040L #define tmContent 0x0080L #define tmClose 0x0100L #define tmZoom 0x0200L #define tmGrow 0x0400L #define tmScroll 0x0800L #define tmSpecial 0x1000L #define tmCRedraw 0x2000L #define tmInactive 0x4000L #define tmInfo 0x8000L #define tmContentControls 0x00010000L #define tmControlKey 0x00020000L #define tmControlMenu 0x00040000L #define tmMultiClick 0x00080000L #define tmIdleEvents 0x00100000L /* TaskMaster Codes */ #define wNoHit 0x0000 /* retained for back compatibility */ #define inNull 0x0000 /* retained for back compatibility */ #define inKey 0x0003 /* retained for back compatibility */ #define inButtDwn 0x0001 /* retained for back compatibility */ #define inUpdate 0x0006 /* retained for back compatibility */ #define wInDesk 0x0010 /* On Desktop */ #define wInMenuBar 0x0011 /* On system menu bar */ #define wClickCalled 0x0012 /* system click called */ #define wInContent 0x0013 /* In content region */ #define wInDrag 0x0014 /* In drag region */ #define wInGrow 0x0015 /* In grow region, active window only */ #define wInGoAway 0x0016 /* In go-away region, active window only */ #define wInZoom 0x0017 /* In zoom region, active window only */ #define wInInfo 0x0018 /* In information bar */ #define wInSpecial 0x0019 /* Item ID selected was 250 - 255 */ #define wInDeskItem 0x001A /* Item ID selected was 1 - 249 */ #define wInFrame 0x1B /* in Frame, but not on anything else */ #define wInactMenu 0x1C /* 'selection' of inactive menu item */ #define wClosedNDA 0x001D /* desk accessory closed */ #define wCalledSysEdit 0x001E /* inactive menu item selected */ #define wInSysWindow 0x8000 /* hi bit set for system windows */ /* VarCode */