PyObject *_res = NULL;
OSStatus _rv;
Boolean inDisposeNow;
+#ifndef SetThemeDrawingState
+ PyMac_PRECHECK(SetThemeDrawingState);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&inDisposeNow))
return NULL;
{
PyObject *_res = NULL;
OSStatus _rv;
+#ifndef DisposeThemeDrawingState
+ PyMac_PRECHECK(DisposeThemeDrawingState);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = DisposeThemeDrawingState(_self->ob_itself);
{
PyObject *_res = NULL;
OSStatus _err;
+#ifndef RegisterAppearanceClient
+ PyMac_PRECHECK(RegisterAppearanceClient);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = RegisterAppearanceClient();
{
PyObject *_res = NULL;
OSStatus _err;
+#ifndef UnregisterAppearanceClient
+ PyMac_PRECHECK(UnregisterAppearanceClient);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = UnregisterAppearanceClient();
ThemeBrush inBrush;
SInt16 inDepth;
Boolean inIsColorDevice;
+#ifndef SetThemePen
+ PyMac_PRECHECK(SetThemePen);
+#endif
if (!PyArg_ParseTuple(_args, "hhb",
&inBrush,
&inDepth,
ThemeBrush inBrush;
SInt16 inDepth;
Boolean inIsColorDevice;
+#ifndef SetThemeBackground
+ PyMac_PRECHECK(SetThemeBackground);
+#endif
if (!PyArg_ParseTuple(_args, "hhb",
&inBrush,
&inDepth,
ThemeTextColor inColor;
SInt16 inDepth;
Boolean inIsColorDevice;
+#ifndef SetThemeTextColor
+ PyMac_PRECHECK(SetThemeTextColor);
+#endif
if (!PyArg_ParseTuple(_args, "hhb",
&inColor,
&inDepth,
WindowPtr inWindow;
ThemeBrush inBrush;
Boolean inUpdate;
+#ifndef SetThemeWindowBackground
+ PyMac_PRECHECK(SetThemeWindowBackground);
+#endif
if (!PyArg_ParseTuple(_args, "O&hb",
WinObj_Convert, &inWindow,
&inBrush,
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeWindowHeader
+ PyMac_PRECHECK(DrawThemeWindowHeader);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeWindowListViewHeader
+ PyMac_PRECHECK(DrawThemeWindowListViewHeader);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemePlacard
+ PyMac_PRECHECK(DrawThemePlacard);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeEditTextFrame
+ PyMac_PRECHECK(DrawThemeEditTextFrame);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeListBoxFrame
+ PyMac_PRECHECK(DrawThemeListBoxFrame);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
Boolean inHasFocus;
+#ifndef DrawThemeFocusRect
+ PyMac_PRECHECK(DrawThemeFocusRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
PyMac_GetRect, &inRect,
&inHasFocus))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemePrimaryGroup
+ PyMac_PRECHECK(DrawThemePrimaryGroup);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeSecondaryGroup
+ PyMac_PRECHECK(DrawThemeSecondaryGroup);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeSeparator
+ PyMac_PRECHECK(DrawThemeSeparator);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeModelessDialogFrame
+ PyMac_PRECHECK(DrawThemeModelessDialogFrame);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
Rect inRect;
ThemeDrawState inState;
Boolean inFillCenter;
+#ifndef DrawThemeGenericWell
+ PyMac_PRECHECK(DrawThemeGenericWell);
+#endif
if (!PyArg_ParseTuple(_args, "O&lb",
PyMac_GetRect, &inRect,
&inState,
PyObject *_res = NULL;
OSStatus _err;
Boolean inHasFocus;
+#ifndef DrawThemeFocusRegion
+ PyMac_PRECHECK(DrawThemeFocusRegion);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&inHasFocus))
return NULL;
Boolean _rv;
SInt16 inDepth;
Boolean inIsColorDevice;
+#ifndef IsThemeInColor
+ PyMac_PRECHECK(IsThemeInColor);
+#endif
if (!PyArg_ParseTuple(_args, "hb",
&inDepth,
&inIsColorDevice))
PyObject *_res = NULL;
OSStatus _err;
CTabHandle outColors;
+#ifndef GetThemeAccentColors
+ PyMac_PRECHECK(GetThemeAccentColors);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeAccentColors(&outColors);
Rect inBounds;
ThemeMenuBarState inState;
UInt32 inAttributes;
+#ifndef DrawThemeMenuBarBackground
+ PyMac_PRECHECK(DrawThemeMenuBarBackground);
+#endif
if (!PyArg_ParseTuple(_args, "O&Hl",
PyMac_GetRect, &inBounds,
&inState,
PyObject *_res = NULL;
OSStatus _err;
SInt16 outHeight;
+#ifndef GetThemeMenuBarHeight
+ PyMac_PRECHECK(GetThemeMenuBarHeight);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeMenuBarHeight(&outHeight);
OSStatus _err;
Rect inMenuRect;
ThemeMenuType inMenuType;
+#ifndef DrawThemeMenuBackground
+ PyMac_PRECHECK(DrawThemeMenuBackground);
+#endif
if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetRect, &inMenuRect,
&inMenuType))
OSStatus _err;
Rect inMenuRect;
ThemeMenuType menuType;
+#ifndef GetThemeMenuBackgroundRegion
+ PyMac_PRECHECK(GetThemeMenuBackgroundRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetRect, &inMenuRect,
&menuType))
PyObject *_res = NULL;
OSStatus _err;
Rect inItemRect;
+#ifndef DrawThemeMenuSeparator
+ PyMac_PRECHECK(DrawThemeMenuSeparator);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &inItemRect))
return NULL;
PyObject *_res = NULL;
OSStatus _err;
SInt16 outHeight;
+#ifndef GetThemeMenuSeparatorHeight
+ PyMac_PRECHECK(GetThemeMenuSeparatorHeight);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeMenuSeparatorHeight(&outHeight);
ThemeMenuItemType inItemType;
SInt16 outHeight;
SInt16 outWidth;
+#ifndef GetThemeMenuItemExtra
+ PyMac_PRECHECK(GetThemeMenuItemExtra);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&inItemType))
return NULL;
OSStatus _err;
SInt16 outWidth;
Boolean inIsSquished;
+#ifndef GetThemeMenuTitleExtra
+ PyMac_PRECHECK(GetThemeMenuTitleExtra);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&inIsSquished))
return NULL;
OSStatus _err;
Rect inRect;
ThemeDrawState inState;
+#ifndef DrawThemeTabPane
+ PyMac_PRECHECK(DrawThemeTabPane);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &inRect,
&inState))
Rect inRect;
ThemeTabStyle inStyle;
ThemeTabDirection inDirection;
+#ifndef GetThemeTabRegion
+ PyMac_PRECHECK(GetThemeTabRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&HH",
PyMac_GetRect, &inRect,
&inStyle,
PyObject *_res = NULL;
OSStatus _err;
ThemeCursor inCursor;
+#ifndef SetThemeCursor
+ PyMac_PRECHECK(SetThemeCursor);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&inCursor))
return NULL;
OSStatus _err;
ThemeCursor inCursor;
UInt32 inAnimationStep;
+#ifndef SetAnimatedThemeCursor
+ PyMac_PRECHECK(SetAnimatedThemeCursor);
+#endif
if (!PyArg_ParseTuple(_args, "ll",
&inCursor,
&inAnimationStep))
PyObject *_res = NULL;
OSStatus _err;
ThemeScrollBarThumbStyle outStyle;
+#ifndef GetThemeScrollBarThumbStyle
+ PyMac_PRECHECK(GetThemeScrollBarThumbStyle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeScrollBarThumbStyle(&outStyle);
PyObject *_res = NULL;
OSStatus _err;
ThemeScrollBarArrowStyle outStyle;
+#ifndef GetThemeScrollBarArrowStyle
+ PyMac_PRECHECK(GetThemeScrollBarArrowStyle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeScrollBarArrowStyle(&outStyle);
PyObject *_res = NULL;
OSStatus _err;
ThemeCheckBoxStyle outStyle;
+#ifndef GetThemeCheckBoxStyle
+ PyMac_PRECHECK(GetThemeCheckBoxStyle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeCheckBoxStyle(&outStyle);
OSStatus _err;
ThemeFontID inFontID;
ScriptCode inScript;
+#ifndef UseThemeFont
+ PyMac_PRECHECK(UseThemeFont);
+#endif
if (!PyArg_ParseTuple(_args, "Hh",
&inFontID,
&inScript))
Boolean inWrapToWidth;
Rect inBoundingBox;
SInt16 inJust;
+#ifndef DrawThemeTextBox
+ PyMac_PRECHECK(DrawThemeTextBox);
+#endif
if (!PyArg_ParseTuple(_args, "O&HlbO&h",
CFStringRefObj_Convert, &inString,
&inFontID,
SInt16 inPixelWidthLimit;
TruncCode inTruncWhere;
Boolean outTruncated;
+#ifndef TruncateThemeText
+ PyMac_PRECHECK(TruncateThemeText);
+#endif
if (!PyArg_ParseTuple(_args, "O&Hlhh",
CFMutableStringRefObj_Convert, &inString,
&inFontID,
Boolean inWrapToWidth;
Point ioBounds;
SInt16 outBaseline;
+#ifndef GetThemeTextDimensions
+ PyMac_PRECHECK(GetThemeTextDimensions);
+#endif
if (!PyArg_ParseTuple(_args, "O&HlbO&",
CFStringRefObj_Convert, &inString,
&inFontID,
ThemeFontID inFontID;
ThemeDrawState inState;
Rect outOutset;
+#ifndef GetThemeTextShadowOutset
+ PyMac_PRECHECK(GetThemeTextShadowOutset);
+#endif
if (!PyArg_ParseTuple(_args, "Hl",
&inFontID,
&inState))
ThemeTrackPressState pressState;
Boolean isHoriz;
Rect trackBounds;
+#ifndef DrawThemeScrollBarArrows
+ PyMac_PRECHECK(DrawThemeScrollBarArrows);
+#endif
if (!PyArg_ParseTuple(_args, "O&bbb",
PyMac_GetRect, &bounds,
&enableState,
ThemeTrackPressState pressState;
Boolean isHoriz;
Rect trackBounds;
+#ifndef GetThemeScrollBarTrackRect
+ PyMac_PRECHECK(GetThemeScrollBarTrackRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&bbb",
PyMac_GetRect, &bounds,
&enableState,
Point ptHit;
Rect trackBounds;
ControlPartCode partcode;
+#ifndef HitTestThemeScrollBarArrows
+ PyMac_PRECHECK(HitTestThemeScrollBarArrows);
+#endif
if (!PyArg_ParseTuple(_args, "O&bbbO&",
PyMac_GetRect, &scrollBarBounds,
&enableState,
Rect inContRect;
ThemeDrawState state;
ThemeWindowAttributes attributes;
+#ifndef DrawThemeScrollBarDelimiters
+ PyMac_PRECHECK(DrawThemeScrollBarDelimiters);
+#endif
if (!PyArg_ParseTuple(_args, "HO&ll",
&flavor,
PyMac_GetRect, &inContRect,
ThemeButtonDrawInfo inNewInfo;
ThemeButtonDrawInfo inPrevInfo;
UInt32 inUserData;
+#ifndef DrawThemeButton
+ PyMac_PRECHECK(DrawThemeButton);
+#endif
if (!PyArg_ParseTuple(_args, "O&HO&O&l",
PyMac_GetRect, &inBounds,
&inKind,
Rect inBounds;
UInt16 inKind;
ThemeButtonDrawInfo inNewInfo;
+#ifndef GetThemeButtonRegion
+ PyMac_PRECHECK(GetThemeButtonRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&HO&",
PyMac_GetRect, &inBounds,
&inKind,
UInt16 inKind;
ThemeButtonDrawInfo inDrawInfo;
Rect outBounds;
+#ifndef GetThemeButtonContentBounds
+ PyMac_PRECHECK(GetThemeButtonContentBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&HO&",
PyMac_GetRect, &inBounds,
&inKind,
UInt16 inKind;
ThemeButtonDrawInfo inDrawInfo;
Rect outBounds;
+#ifndef GetThemeButtonBackgroundBounds
+ PyMac_PRECHECK(GetThemeButtonBackgroundBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&HO&",
PyMac_GetRect, &inBounds,
&inKind,
PyObject *_res = NULL;
OSStatus _err;
ThemeSoundKind kind;
+#ifndef PlayThemeSound
+ PyMac_PRECHECK(PlayThemeSound);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &kind))
return NULL;
PyObject *_res = NULL;
OSStatus _err;
ThemeDragSoundKind kind;
+#ifndef BeginThemeDragSound
+ PyMac_PRECHECK(BeginThemeDragSound);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &kind))
return NULL;
{
PyObject *_res = NULL;
OSStatus _err;
+#ifndef EndThemeDragSound
+ PyMac_PRECHECK(EndThemeDragSound);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = EndThemeDragSound();
OSStatus _err;
Rect bounds;
ThemeDrawState state;
+#ifndef DrawThemeTickMark
+ PyMac_PRECHECK(DrawThemeTickMark);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetRect, &bounds,
&state))
UInt32 index;
ThemeDrawState state;
UInt32 eraseData;
+#ifndef DrawThemeChasingArrows
+ PyMac_PRECHECK(DrawThemeChasingArrows);
+#endif
if (!PyArg_ParseTuple(_args, "O&lll",
PyMac_GetRect, &bounds,
&index,
ThemePopupArrowSize size;
ThemeDrawState state;
UInt32 eraseData;
+#ifndef DrawThemePopupArrow
+ PyMac_PRECHECK(DrawThemePopupArrow);
+#endif
if (!PyArg_ParseTuple(_args, "O&HHll",
PyMac_GetRect, &bounds,
&orientation,
ThemeGrowDirection growDirection;
Boolean isSmall;
ThemeDrawState state;
+#ifndef DrawThemeStandaloneGrowBox
+ PyMac_PRECHECK(DrawThemeStandaloneGrowBox);
+#endif
if (!PyArg_ParseTuple(_args, "O&Hbl",
PyMac_GetPoint, &origin,
&growDirection,
ThemeGrowDirection growDirection;
Boolean isSmall;
ThemeDrawState state;
+#ifndef DrawThemeStandaloneNoGrowBox
+ PyMac_PRECHECK(DrawThemeStandaloneNoGrowBox);
+#endif
if (!PyArg_ParseTuple(_args, "O&Hbl",
PyMac_GetPoint, &origin,
&growDirection,
ThemeGrowDirection growDirection;
Boolean isSmall;
Rect bounds;
+#ifndef GetThemeStandaloneGrowBoxBounds
+ PyMac_PRECHECK(GetThemeStandaloneGrowBoxBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&Hb",
PyMac_GetPoint, &origin,
&growDirection,
{
PyObject *_res = NULL;
OSStatus _err;
+#ifndef NormalizeThemeDrawingState
+ PyMac_PRECHECK(NormalizeThemeDrawingState);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = NormalizeThemeDrawingState();
PyObject *_res = NULL;
OSStatus _err;
ThemeDrawingState outState;
+#ifndef GetThemeDrawingState
+ PyMac_PRECHECK(GetThemeDrawingState);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetThemeDrawingState(&outState);
ThemeDrawState inState;
SInt16 inDepth;
Boolean inColorDev;
+#ifndef ApplyThemeBackground
+ PyMac_PRECHECK(ApplyThemeBackground);
+#endif
if (!PyArg_ParseTuple(_args, "lO&lhb",
&inKind,
PyMac_GetRect, &bounds,
Boolean isActive;
SInt16 depth;
Boolean isColorDev;
+#ifndef SetThemeTextColorForWindow
+ PyMac_PRECHECK(SetThemeTextColorForWindow);
+#endif
if (!PyArg_ParseTuple(_args, "O&bhb",
WinObj_Convert, &window,
&isActive,
PyObject *_res = NULL;
Boolean _rv;
OSType fileType;
+#ifndef IsValidAppearanceFileType
+ PyMac_PRECHECK(IsValidAppearanceFileType);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetOSType, &fileType))
return NULL;
SInt16 inDepth;
Boolean inColorDev;
RGBColor outColor;
+#ifndef GetThemeBrushAsColor
+ PyMac_PRECHECK(GetThemeBrushAsColor);
+#endif
if (!PyArg_ParseTuple(_args, "hhb",
&inBrush,
&inDepth,
SInt16 inDepth;
Boolean inColorDev;
RGBColor outColor;
+#ifndef GetThemeTextColor
+ PyMac_PRECHECK(GetThemeTextColor);
+#endif
if (!PyArg_ParseTuple(_args, "hhb",
&inColor,
&inDepth,
OSStatus _err;
ThemeMetric inMetric;
SInt32 outMetric;
+#ifndef GetThemeMetric
+ PyMac_PRECHECK(GetThemeMetric);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&inMetric))
return NULL;