1 # Generated from 'MacWindows.h' 2 3 def FOUR_CHAR_CODE(x): return x 4 false = 0 5 true = 1 6 kWindowNoConstrainAttribute = 0x80000000 7 kAlertWindowClass = 1 8 kMovableAlertWindowClass = 2 9 kModalWindowClass = 3 10 kMovableModalWindowClass = 4 11 kFloatingWindowClass = 5 12 kDocumentWindowClass = 6 13 kUtilityWindowClass = 8 14 kHelpWindowClass = 10 15 kSheetWindowClass = 11 16 kToolbarWindowClass = 12 17 kPlainWindowClass = 13 18 kOverlayWindowClass = 14 19 kSheetAlertWindowClass = 15 20 kAltPlainWindowClass = 16 21 kDrawerWindowClass = 20 22 # kAllWindowClasses = (unsigned long)0xFFFFFFFF 23 kWindowNoAttributes = 0L 24 kWindowCloseBoxAttribute = (1L << 0) 25 kWindowHorizontalZoomAttribute = (1L << 1) 26 kWindowVerticalZoomAttribute = (1L << 2) 27 kWindowFullZoomAttribute = (kWindowVerticalZoomAttribute | kWindowHorizontalZoomAttribute) 28 kWindowCollapseBoxAttribute = (1L << 3) 29 kWindowResizableAttribute = (1L << 4) 30 kWindowSideTitlebarAttribute = (1L << 5) 31 kWindowToolbarButtonAttribute = (1L << 6) 32 kWindowNoUpdatesAttribute = (1L << 16) 33 kWindowNoActivatesAttribute = (1L << 17) 34 kWindowOpaqueForEventsAttribute = (1L << 18) 35 kWindowNoShadowAttribute = (1L << 21) 36 kWindowHideOnSuspendAttribute = (1L << 24) 37 kWindowStandardHandlerAttribute = (1L << 25) 38 kWindowHideOnFullScreenAttribute = (1L << 26) 39 kWindowInWindowMenuAttribute = (1L << 27) 40 kWindowLiveResizeAttribute = (1L << 28) 41 # kWindowNoConstrainAttribute = (unsigned long)((1L << 31)) 42 kWindowStandardDocumentAttributes = (kWindowCloseBoxAttribute | kWindowFullZoomAttribute | kWindowCollapseBoxAttribute | kWindowResizableAttribute) 43 kWindowStandardFloatingAttributes = (kWindowCloseBoxAttribute | kWindowCollapseBoxAttribute) 44 kWindowDefProcType = FOUR_CHAR_CODE('WDEF') 45 kStandardWindowDefinition = 0 46 kRoundWindowDefinition = 1 47 kFloatingWindowDefinition = 124 48 kDocumentWindowVariantCode = 0 49 kModalDialogVariantCode = 1 50 kPlainDialogVariantCode = 2 51 kShadowDialogVariantCode = 3 52 kMovableModalDialogVariantCode = 5 53 kAlertVariantCode = 7 54 kMovableAlertVariantCode = 9 55 kSideFloaterVariantCode = 8 56 documentProc = 0 57 dBoxProc = 1 58 plainDBox = 2 59 altDBoxProc = 3 60 noGrowDocProc = 4 61 movableDBoxProc = 5 62 zoomDocProc = 8 63 zoomNoGrow = 12 64 floatProc = 1985 65 floatGrowProc = 1987 66 floatZoomProc = 1989 67 floatZoomGrowProc = 1991 68 floatSideProc = 1993 69 floatSideGrowProc = 1995 70 floatSideZoomProc = 1997 71 floatSideZoomGrowProc = 1999 72 rDocProc = 16 73 kWindowDocumentDefProcResID = 64 74 kWindowDialogDefProcResID = 65 75 kWindowUtilityDefProcResID = 66 76 kWindowUtilitySideTitleDefProcResID = 67 77 kWindowSheetDefProcResID = 68 78 kWindowSimpleDefProcResID = 69 79 kWindowSheetAlertDefProcResID = 70 80 kWindowDocumentProc = 1024 81 kWindowGrowDocumentProc = 1025 82 kWindowVertZoomDocumentProc = 1026 83 kWindowVertZoomGrowDocumentProc = 1027 84 kWindowHorizZoomDocumentProc = 1028 85 kWindowHorizZoomGrowDocumentProc = 1029 86 kWindowFullZoomDocumentProc = 1030 87 kWindowFullZoomGrowDocumentProc = 1031 88 kWindowPlainDialogProc = 1040 89 kWindowShadowDialogProc = 1041 90 kWindowModalDialogProc = 1042 91 kWindowMovableModalDialogProc = 1043 92 kWindowAlertProc = 1044 93 kWindowMovableAlertProc = 1045 94 kWindowMovableModalGrowProc = 1046 95 kWindowFloatProc = 1057 96 kWindowFloatGrowProc = 1059 97 kWindowFloatVertZoomProc = 1061 98 kWindowFloatVertZoomGrowProc = 1063 99 kWindowFloatHorizZoomProc = 1065 100 kWindowFloatHorizZoomGrowProc = 1067 101 kWindowFloatFullZoomProc = 1069 102 kWindowFloatFullZoomGrowProc = 1071 103 kWindowFloatSideProc = 1073 104 kWindowFloatSideGrowProc = 1075 105 kWindowFloatSideVertZoomProc = 1077 106 kWindowFloatSideVertZoomGrowProc = 1079 107 kWindowFloatSideHorizZoomProc = 1081 108 kWindowFloatSideHorizZoomGrowProc = 1083 109 kWindowFloatSideFullZoomProc = 1085 110 kWindowFloatSideFullZoomGrowProc = 1087 111 kWindowSheetProc = 1088 112 kWindowSheetAlertProc = 1120 113 kWindowSimpleProc = 1104 114 kWindowSimpleFrameProc = 1105 115 kWindowNoPosition = 0x0000 116 kWindowDefaultPosition = 0x0000 117 kWindowCenterMainScreen = 0x280A 118 kWindowAlertPositionMainScreen = 0x300A 119 kWindowStaggerMainScreen = 0x380A 120 kWindowCenterParentWindow = 0xA80A 121 kWindowAlertPositionParentWindow = 0xB00A 122 kWindowStaggerParentWindow = 0xB80A 123 kWindowCenterParentWindowScreen = 0x680A 124 kWindowAlertPositionParentWindowScreen = 0x700A 125 kWindowStaggerParentWindowScreen = 0x780A 126 kWindowCenterOnMainScreen = 1 127 kWindowCenterOnParentWindow = 2 128 kWindowCenterOnParentWindowScreen = 3 129 kWindowCascadeOnMainScreen = 4 130 kWindowCascadeOnParentWindow = 5 131 kWindowCascadeOnParentWindowScreen = 6 132 kWindowCascadeStartAtParentWindowScreen = 10 133 kWindowAlertPositionOnMainScreen = 7 134 kWindowAlertPositionOnParentWindow = 8 135 kWindowAlertPositionOnParentWindowScreen = 9 136 kWindowTitleBarRgn = 0 137 kWindowTitleTextRgn = 1 138 kWindowCloseBoxRgn = 2 139 kWindowZoomBoxRgn = 3 140 kWindowDragRgn = 5 141 kWindowGrowRgn = 6 142 kWindowCollapseBoxRgn = 7 143 kWindowTitleProxyIconRgn = 8 144 kWindowStructureRgn = 32 145 kWindowContentRgn = 33 146 kWindowUpdateRgn = 34 147 kWindowOpaqueRgn = 35 148 kWindowGlobalPortRgn = 40 149 dialogKind = 2 150 userKind = 8 151 kDialogWindowKind = 2 152 kApplicationWindowKind = 8 153 inDesk = 0 154 inNoWindow = 0 155 inMenuBar = 1 156 inSysWindow = 2 157 inContent = 3 158 inDrag = 4 159 inGrow = 5 160 inGoAway = 6 161 inZoomIn = 7 162 inZoomOut = 8 163 inCollapseBox = 11 164 inProxyIcon = 12 165 inToolbarButton = 13 166 inStructure = 15 167 wNoHit = 0 168 wInContent = 1 169 wInDrag = 2 170 wInGrow = 3 171 wInGoAway = 4 172 wInZoomIn = 5 173 wInZoomOut = 6 174 wInCollapseBox = 9 175 wInProxyIcon = 10 176 wInToolbarButton = 11 177 wInStructure = 13 178 kWindowMsgDraw = 0 179 kWindowMsgHitTest = 1 180 kWindowMsgCalculateShape = 2 181 kWindowMsgInitialize = 3 182 kWindowMsgCleanUp = 4 183 kWindowMsgDrawGrowOutline = 5 184 kWindowMsgDrawGrowBox = 6 185 kWindowMsgGetFeatures = 7 186 kWindowMsgGetRegion = 8 187 kWindowMsgDragHilite = 9 188 kWindowMsgModified = 10 189 kWindowMsgDrawInCurrentPort = 11 190 kWindowMsgSetupProxyDragImage = 12 191 kWindowMsgStateChanged = 13 192 kWindowMsgMeasureTitle = 14 193 kWindowMsgGetGrowImageRegion = 19 194 wDraw = 0 195 wHit = 1 196 wCalcRgns = 2 197 wNew = 3 198 wDispose = 4 199 wGrow = 5 200 wDrawGIcon = 6 201 kWindowStateTitleChanged = (1 << 0) 202 kWindowCanGrow = (1 << 0) 203 kWindowCanZoom = (1 << 1) 204 kWindowCanCollapse = (1 << 2) 205 kWindowIsModal = (1 << 3) 206 kWindowCanGetWindowRegion = (1 << 4) 207 kWindowIsAlert = (1 << 5) 208 kWindowHasTitleBar = (1 << 6) 209 kWindowSupportsDragHilite = (1 << 7) 210 kWindowSupportsModifiedBit = (1 << 8) 211 kWindowCanDrawInCurrentPort = (1 << 9) 212 kWindowCanSetupProxyDragImage = (1 << 10) 213 kWindowCanMeasureTitle = (1 << 11) 214 kWindowWantsDisposeAtProcessDeath = (1 << 12) 215 kWindowSupportsGetGrowImageRegion = (1 << 13) 216 kWindowDefSupportsColorGrafPort = 0x40000002 217 kWindowIsOpaque = (1 << 14) 218 kWindowSupportsSetGrowImageRegion = (1 << 13) 219 deskPatID = 16 220 wContentColor = 0 221 wFrameColor = 1 222 wTextColor = 2 223 wHiliteColor = 3 224 wTitleBarColor = 4 225 # kMouseUpOutOfSlop = (long)0x80008000 226 kWindowDefinitionVersionOne = 1 227 kWindowDefinitionVersionTwo = 2 228 kWindowIsCollapsedState = (1 << 0L) 229 kStoredWindowSystemTag = FOUR_CHAR_CODE('appl') 230 kStoredBasicWindowDescriptionID = FOUR_CHAR_CODE('sbas') 231 kStoredWindowPascalTitleID = FOUR_CHAR_CODE('s255') 232 kWindowDefProcPtr = 0 233 kWindowDefObjectClass = 1 234 kWindowDefProcID = 2 235 kWindowModalityNone = 0 236 kWindowModalitySystemModal = 1 237 kWindowModalityAppModal = 2 238 kWindowModalityWindowModal = 3 239 kWindowGroupAttrSelectAsLayer = 1 << 0 240 kWindowGroupAttrMoveTogether = 1 << 1 241 kWindowGroupAttrLayerTogether = 1 << 2 242 kWindowGroupAttrSharedActivation = 1 << 3 243 kWindowGroupAttrHideOnCollapse = 1 << 4 244 kWindowActivationScopeNone = 0 245 kWindowActivationScopeIndependent = 1 246 kWindowActivationScopeAll = 2 247 kNextWindowGroup = true 248 kPreviousWindowGroup = false 249 kWindowGroupContentsReturnWindows = 1 << 0 250 kWindowGroupContentsRecurse = 1 << 1 251 kWindowGroupContentsVisible = 1 << 2 252 kWindowPaintProcOptionsNone = 0 253 kScrollWindowNoOptions = 0 254 kScrollWindowInvalidate = (1L << 0) 255 kScrollWindowEraseToPortBackground = (1L << 1) 256 kWindowMenuIncludeRotate = 1 << 0 257 kWindowZoomTransitionEffect = 1 258 kWindowSheetTransitionEffect = 2 259 kWindowSlideTransitionEffect = 3 260 kWindowShowTransitionAction = 1 261 kWindowHideTransitionAction = 2 262 kWindowMoveTransitionAction = 3 263 kWindowResizeTransitionAction = 4 264 kWindowConstrainMayResize = (1L << 0) 265 kWindowConstrainMoveRegardlessOfFit = (1L << 1) 266 kWindowConstrainAllowPartial = (1L << 2) 267 kWindowConstrainCalcOnly = (1L << 3) 268 kWindowConstrainUseTransitionWindow = (1L << 4) 269 kWindowConstrainStandardOptions = kWindowConstrainMoveRegardlessOfFit 270 kWindowLatentVisibleFloater = 1 << 0 271 kWindowLatentVisibleSuspend = 1 << 1 272 kWindowLatentVisibleFullScreen = 1 << 2 273 kWindowLatentVisibleAppHidden = 1 << 3 274 kWindowLatentVisibleCollapsedOwner = 1 << 4 275 kWindowLatentVisibleCollapsedGroup = 1 << 5 276 kWindowPropertyPersistent = 0x00000001 277 kWindowGroupAttrSelectable = kWindowGroupAttrSelectAsLayer 278 kWindowGroupAttrPositionFixed = kWindowGroupAttrMoveTogether 279 kWindowGroupAttrZOrderFixed = kWindowGroupAttrLayerTogether 280