PageRenderTime 111ms CodeModel.GetById 59ms app.highlight 47ms RepoModel.GetById 2ms app.codeStats 0ms

/Lib/plat-mac/Carbon/Windows.py

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