PyObject *_res = NULL;
CIconHandle _rv;
SInt16 iconID;
+#ifndef GetCIcon
+ PyMac_PRECHECK(GetCIcon);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&iconID))
return NULL;
PyObject *_res = NULL;
Rect theRect;
CIconHandle theIcon;
+#ifndef PlotCIcon
+ PyMac_PRECHECK(PlotCIcon);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &theRect,
ResObj_Convert, &theIcon))
{
PyObject *_res = NULL;
CIconHandle theIcon;
+#ifndef DisposeCIcon
+ PyMac_PRECHECK(DisposeCIcon);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIcon))
return NULL;
PyObject *_res = NULL;
Handle _rv;
SInt16 iconID;
+#ifndef GetIcon
+ PyMac_PRECHECK(GetIcon);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&iconID))
return NULL;
PyObject *_res = NULL;
Rect theRect;
Handle theIcon;
+#ifndef PlotIcon
+ PyMac_PRECHECK(PlotIcon);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &theRect,
ResObj_Convert, &theIcon))
IconAlignmentType align;
IconTransformType transform;
SInt16 theResID;
+#ifndef PlotIconID
+ PyMac_PRECHECK(PlotIconID);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhh",
PyMac_GetRect, &theRect,
&align,
PyObject *_res = NULL;
OSErr _err;
IconSuiteRef theIconSuite;
+#ifndef NewIconSuite
+ PyMac_PRECHECK(NewIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = NewIconSuite(&theIconSuite);
Handle theIconData;
IconSuiteRef theSuite;
ResType theType;
+#ifndef AddIconToSuite
+ PyMac_PRECHECK(AddIconToSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &theIconData,
ResObj_Convert, &theSuite,
Handle theIconData;
IconSuiteRef theSuite;
ResType theType;
+#ifndef GetIconFromSuite
+ PyMac_PRECHECK(GetIconFromSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &theSuite,
PyMac_GetOSType, &theType))
IconSuiteRef theIconSuite;
SInt16 theResID;
IconSelectorValue selector;
+#ifndef GetIconSuite
+ PyMac_PRECHECK(GetIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "hl",
&theResID,
&selector))
OSErr _err;
IconSuiteRef theIconSuite;
Boolean disposeData;
+#ifndef DisposeIconSuite
+ PyMac_PRECHECK(DisposeIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
ResObj_Convert, &theIconSuite,
&disposeData))
IconAlignmentType align;
IconTransformType transform;
IconSuiteRef theIconSuite;
+#ifndef PlotIconSuite
+ PyMac_PRECHECK(PlotIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &theRect,
&align,
IconAlignmentType align;
IconTransformType transform;
IconCacheRef theIconCache;
+#ifndef LoadIconCache
+ PyMac_PRECHECK(LoadIconCache);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &theRect,
&align,
SInt16 labelNumber;
RGBColor labelColor;
Str255 labelString;
+#ifndef GetLabel
+ PyMac_PRECHECK(GetLabel);
+#endif
if (!PyArg_ParseTuple(_args, "hO&",
&labelNumber,
PyMac_GetStr255, labelString))
Rect iconRect;
IconAlignmentType align;
SInt16 iconID;
+#ifndef PtInIconID
+ PyMac_PRECHECK(PtInIconID);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hh",
PyMac_GetPoint, &testPt,
PyMac_GetRect, &iconRect,
Rect iconRect;
IconAlignmentType align;
IconSuiteRef theIconSuite;
+#ifndef PtInIconSuite
+ PyMac_PRECHECK(PtInIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hO&",
PyMac_GetPoint, &testPt,
PyMac_GetRect, &iconRect,
Rect iconRect;
IconAlignmentType align;
SInt16 iconID;
+#ifndef RectInIconID
+ PyMac_PRECHECK(RectInIconID);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hh",
PyMac_GetRect, &testRect,
PyMac_GetRect, &iconRect,
Rect iconRect;
IconAlignmentType align;
IconSuiteRef theIconSuite;
+#ifndef RectInIconSuite
+ PyMac_PRECHECK(RectInIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hO&",
PyMac_GetRect, &testRect,
PyMac_GetRect, &iconRect,
Rect iconRect;
IconAlignmentType align;
SInt16 iconID;
+#ifndef IconIDToRgn
+ PyMac_PRECHECK(IconIDToRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hh",
ResObj_Convert, &theRgn,
PyMac_GetRect, &iconRect,
Rect iconRect;
IconAlignmentType align;
IconSuiteRef theIconSuite;
+#ifndef IconSuiteToRgn
+ PyMac_PRECHECK(IconSuiteToRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hO&",
ResObj_Convert, &theRgn,
PyMac_GetRect, &iconRect,
OSErr _err;
IconSuiteRef theSuite;
SInt16 theLabel;
+#ifndef SetSuiteLabel
+ PyMac_PRECHECK(SetSuiteLabel);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
ResObj_Convert, &theSuite,
&theLabel))
PyObject *_res = NULL;
SInt16 _rv;
IconSuiteRef theSuite;
+#ifndef GetSuiteLabel
+ PyMac_PRECHECK(GetSuiteLabel);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theSuite))
return NULL;
IconAlignmentType align;
IconTransformType transform;
Handle theIcon;
+#ifndef PlotIconHandle
+ PyMac_PRECHECK(PlotIconHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &theRect,
&align,
IconAlignmentType align;
IconTransformType transform;
Handle theSICN;
+#ifndef PlotSICNHandle
+ PyMac_PRECHECK(PlotSICNHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &theRect,
&align,
IconAlignmentType align;
IconTransformType transform;
CIconHandle theCIcon;
+#ifndef PlotCIconHandle
+ PyMac_PRECHECK(PlotCIconHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &theRect,
&align,
static PyObject *Icn_IconServicesTerminate(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef IconServicesTerminate
+ PyMac_PRECHECK(IconServicesTerminate);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
IconServicesTerminate();
IconRef theIconRef;
IconSelectorValue whichIcons;
IconFamilyHandle iconFamily;
+#ifndef IconRefToIconFamily
+ PyMac_PRECHECK(IconRefToIconFamily);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
ResObj_Convert, &theIconRef,
&whichIcons))
IconFamilyHandle iconFamily;
IconSelectorValue whichIcons;
IconSuiteRef iconSuite;
+#ifndef IconFamilyToIconSuite
+ PyMac_PRECHECK(IconFamilyToIconSuite);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
ResObj_Convert, &iconFamily,
&whichIcons))
IconSuiteRef iconSuite;
IconSelectorValue whichIcons;
IconFamilyHandle iconFamily;
+#ifndef IconSuiteToIconFamily
+ PyMac_PRECHECK(IconSuiteToIconFamily);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
ResObj_Convert, &iconSuite,
&whichIcons))
IconFamilyHandle iconFamily;
OSType iconType;
Handle h;
+#ifndef SetIconFamilyData
+ PyMac_PRECHECK(SetIconFamilyData);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &iconFamily,
PyMac_GetOSType, &iconType,
IconFamilyHandle iconFamily;
OSType iconType;
Handle h;
+#ifndef GetIconFamilyData
+ PyMac_PRECHECK(GetIconFamilyData);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &iconFamily,
PyMac_GetOSType, &iconType,
OSErr _err;
IconRef theIconRef;
UInt16 owners;
+#ifndef GetIconRefOwners
+ PyMac_PRECHECK(GetIconRefOwners);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
PyObject *_res = NULL;
OSErr _err;
IconRef theIconRef;
+#ifndef AcquireIconRef
+ PyMac_PRECHECK(AcquireIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
PyObject *_res = NULL;
OSErr _err;
IconRef theIconRef;
+#ifndef ReleaseIconRef
+ PyMac_PRECHECK(ReleaseIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
FSSpec theFile;
IconRef theIconRef;
SInt16 theLabel;
+#ifndef GetIconRefFromFile
+ PyMac_PRECHECK(GetIconRefFromFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFSSpec, &theFile))
return NULL;
OSType creator;
OSType iconType;
IconRef theIconRef;
+#ifndef GetIconRef
+ PyMac_PRECHECK(GetIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "hO&O&",
&vRefNum,
PyMac_GetOSType, &creator,
SInt8 attributes;
SInt8 accessPrivileges;
IconRef theIconRef;
+#ifndef GetIconRefFromFolder
+ PyMac_PRECHECK(GetIconRefFromFolder);
+#endif
if (!PyArg_ParseTuple(_args, "hllbb",
&vRefNum,
&parentFolderID,
OSType iconType;
IconFamilyHandle iconFamily;
IconRef theIconRef;
+#ifndef RegisterIconRefFromIconFamily
+ PyMac_PRECHECK(RegisterIconRefFromIconFamily);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
PyMac_GetOSType, &creator,
PyMac_GetOSType, &iconType,
FSSpec resourceFile;
SInt16 resourceID;
IconRef theIconRef;
+#ifndef RegisterIconRefFromResource
+ PyMac_PRECHECK(RegisterIconRefFromResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&h",
PyMac_GetOSType, &creator,
PyMac_GetOSType, &iconType,
OSErr _err;
OSType creator;
OSType iconType;
+#ifndef UnregisterIconRef
+ PyMac_PRECHECK(UnregisterIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &creator,
PyMac_GetOSType, &iconType))
PyObject *_res = NULL;
OSErr _err;
IconRef theIconRef;
+#ifndef UpdateIconRef
+ PyMac_PRECHECK(UpdateIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
IconRef theIconRef;
FSSpec resourceFile;
SInt16 resourceID;
+#ifndef OverrideIconRefFromResource
+ PyMac_PRECHECK(OverrideIconRefFromResource);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&h",
ResObj_Convert, &theIconRef,
PyMac_GetFSSpec, &resourceFile,
OSErr _err;
IconRef oldIconRef;
IconRef newIconRef;
+#ifndef OverrideIconRef
+ PyMac_PRECHECK(OverrideIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &oldIconRef,
ResObj_Convert, &newIconRef))
PyObject *_res = NULL;
OSErr _err;
IconRef theIconRef;
+#ifndef RemoveIconRefOverride
+ PyMac_PRECHECK(RemoveIconRefOverride);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
IconRef backgroundIconRef;
IconRef foregroundIconRef;
IconRef compositeIconRef;
+#ifndef CompositeIconRef
+ PyMac_PRECHECK(CompositeIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &backgroundIconRef,
ResObj_Convert, &foregroundIconRef))
IconRef compositeIconRef;
IconRef backgroundIconRef;
IconRef foregroundIconRef;
+#ifndef IsIconRefComposite
+ PyMac_PRECHECK(IsIconRefComposite);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &compositeIconRef))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
IconRef theIconRef;
+#ifndef IsValidIconRef
+ PyMac_PRECHECK(IsValidIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &theIconRef))
return NULL;
IconTransformType transform;
IconServicesUsageFlags theIconServicesUsageFlags;
IconRef theIconRef;
+#ifndef PlotIconRef
+ PyMac_PRECHECK(PlotIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhlO&",
PyMac_GetRect, &theRect,
&align,
IconAlignmentType align;
IconServicesUsageFlags theIconServicesUsageFlags;
IconRef theIconRef;
+#ifndef PtInIconRef
+ PyMac_PRECHECK(PtInIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
PyMac_GetPoint, &testPt,
PyMac_GetRect, &iconRect,
IconAlignmentType align;
IconServicesUsageFlags iconServicesUsageFlags;
IconRef theIconRef;
+#ifndef RectInIconRef
+ PyMac_PRECHECK(RectInIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
PyMac_GetRect, &testRect,
PyMac_GetRect, &iconRect,
IconAlignmentType align;
IconServicesUsageFlags iconServicesUsageFlags;
IconRef theIconRef;
+#ifndef IconRefToRgn
+ PyMac_PRECHECK(IconRefToRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hlO&",
ResObj_Convert, &theRgn,
PyMac_GetRect, &iconRect,
IconSelectorValue iconSelectorOutputPtr;
IconServicesUsageFlags iconServicesUsageFlags;
IconRef theIconRef;
+#ifndef GetIconSizesFromIconRef
+ PyMac_PRECHECK(GetIconSizesFromIconRef);
+#endif
if (!PyArg_ParseTuple(_args, "llO&",
&iconSelectorInput,
&iconServicesUsageFlags,
OSErr _err;
OSType creator;
OSType iconType;
+#ifndef FlushIconRefs
+ PyMac_PRECHECK(FlushIconRefs);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &creator,
PyMac_GetOSType, &iconType))
PyObject *_res = NULL;
OSErr _err;
SInt16 vRefNum;
+#ifndef FlushIconRefsByVolume
+ PyMac_PRECHECK(FlushIconRefsByVolume);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&vRefNum))
return NULL;
OSErr _err;
SInt16 vRefNum;
Boolean enableCustomIcons;
+#ifndef SetCustomIconsEnabled
+ PyMac_PRECHECK(SetCustomIconsEnabled);
+#endif
if (!PyArg_ParseTuple(_args, "hb",
&vRefNum,
&enableCustomIcons))
OSErr _err;
SInt16 vRefNum;
Boolean customIconsEnabled;
+#ifndef GetCustomIconsEnabled
+ PyMac_PRECHECK(GetCustomIconsEnabled);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&vRefNum))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
IconRef iconRef;
+#ifndef IsIconRefMaskEmpty
+ PyMac_PRECHECK(IsIconRefMaskEmpty);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &iconRef))
return NULL;
IconRef inIconRef;
OSType inVariant;
IconTransformType outTransform;
+#ifndef GetIconRefVariant
+ PyMac_PRECHECK(GetIconRefVariant);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &inIconRef,
PyMac_GetOSType, &inVariant))
OSType iconType;
FSSpec iconFile;
IconRef theIconRef;
+#ifndef RegisterIconRefFromIconFile
+ PyMac_PRECHECK(RegisterIconRefFromIconFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
PyMac_GetOSType, &creator,
PyMac_GetOSType, &iconType,
OSErr _err;
FSSpec iconFile;
IconFamilyHandle iconFamily;
+#ifndef ReadIconFile
+ PyMac_PRECHECK(ReadIconFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFSSpec, &iconFile))
return NULL;
OSErr _err;
IconFamilyHandle iconFamily;
FSSpec iconFile;
+#ifndef WriteIconFile
+ PyMac_PRECHECK(WriteIconFile);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &iconFamily,
PyMac_GetFSSpec, &iconFile))