mirror of
https://github.com/python/cpython.git
synced 2024-12-22 00:04:12 +08:00
73 lines
1.5 KiB
Python
73 lines
1.5 KiB
Python
# These are inline-routines/defines, so we do them "by hand"
|
|
#
|
|
|
|
f = Method(Boolean, 'IsWindowVisible',
|
|
(WindowRef, 'theWindow', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(Boolean, 'GetWindowZoomFlag',
|
|
(WindowRef, 'theWindow', InMode),
|
|
condition='#if !TARGET_API_MAC_CARBON'
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(void, 'GetWindowStructureRgn',
|
|
(WindowRef, 'theWindow', InMode),
|
|
(RgnHandle, 'r', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(void, 'GetWindowContentRgn',
|
|
(WindowRef, 'theWindow', InMode),
|
|
(RgnHandle, 'r', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(void, 'GetWindowUpdateRgn',
|
|
(WindowRef, 'theWindow', InMode),
|
|
(RgnHandle, 'r', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(short, 'GetWindowTitleWidth',
|
|
(WindowRef, 'theWindow', InMode),
|
|
condition='#if !TARGET_API_MAC_CARBON'
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(ExistingWindowPtr, 'GetNextWindow',
|
|
(WindowRef, 'theWindow', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
# These have Mac prefixed to their name in the 3.1 universal headers,
|
|
# so we add the old/real names by hand.
|
|
f = Method(void, 'CloseWindow',
|
|
(WindowPtr, 'theWindow', InMode),
|
|
condition='#if !TARGET_API_MAC_CARBON'
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Function(short, 'FindWindow',
|
|
(Point, 'thePoint', InMode),
|
|
(ExistingWindowPtr, 'theWindow', OutMode),
|
|
)
|
|
functions.append(f)
|
|
|
|
f = Method(void, 'MoveWindow',
|
|
(WindowPtr, 'theWindow', InMode),
|
|
(short, 'hGlobal', InMode),
|
|
(short, 'vGlobal', InMode),
|
|
(Boolean, 'front', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
f = Method(void, 'ShowWindow',
|
|
(WindowPtr, 'theWindow', InMode),
|
|
)
|
|
methods.append(f)
|
|
|
|
|
|
|