#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <AppleEvents.h>
#include <AEObjects.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_AEDesc_New(AEDesc *);
AEDesc ob_itself;
} AEDescObject;
-PyObject *AEDesc_New(itself)
- AEDesc *itself;
+PyObject *AEDesc_New(AEDesc *itself)
{
AEDescObject *it;
it = PyObject_NEW(AEDescObject, &AEDesc_Type);
it->ob_itself = *itself;
return (PyObject *)it;
}
-AEDesc_Convert(v, p_itself)
- PyObject *v;
- AEDesc *p_itself;
+AEDesc_Convert(PyObject *v, AEDesc *p_itself)
{
if (!AEDesc_Check(v))
{
return 1;
}
-static void AEDesc_dealloc(self)
- AEDescObject *self;
+static void AEDesc_dealloc(AEDescObject *self)
{
AEDisposeDesc(&self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *AEDesc_AECoerceDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AECoerceDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEDuplicateDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEDuplicateDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AECountItems(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AECountItems(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutPtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutPtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetNthPtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetNthPtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetNthDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetNthDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AESizeOfNthItem(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESizeOfNthItem(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEDeleteItem(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEDeleteItem(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutParamPtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutParamPtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutParamDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutParamDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetParamPtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetParamPtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetParamDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetParamDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AESizeOfParam(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESizeOfParam(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEDeleteParam(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEDeleteParam(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetAttributePtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetAttributePtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetAttributeDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetAttributeDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AESizeOfAttribute(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESizeOfAttribute(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutAttributePtr(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutAttributePtr(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEPutAttributeDesc(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEPutAttributeDesc(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *AEDesc_AEGetDescDataSize(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetDescDataSize(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Size _rv;
}
#endif
-static PyObject *AEDesc_AESend(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESend(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEResetTimer(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEResetTimer(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AESuspendTheCurrentEvent(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESuspendTheCurrentEvent(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEResumeTheCurrentEvent(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEResumeTheCurrentEvent(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEGetTheCurrentEvent(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEGetTheCurrentEvent(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AESetTheCurrentEvent(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AESetTheCurrentEvent(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AEDesc_AEResolve(_self, _args)
- AEDescObject *_self;
- PyObject *_args;
+static PyObject *AEDesc_AEResolve(AEDescObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain AEDesc_chain = { AEDesc_methods, NULL };
-static PyObject *AEDesc_getattr(self, name)
- AEDescObject *self;
- char *name;
+static PyObject *AEDesc_getattr(AEDescObject *self, char *name)
{
if (strcmp(name, "type") == 0)
/* --------------------- End object type AEDesc --------------------- */
-static PyObject *AE_AECoercePtr(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AECoercePtr(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AECreateDesc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AECreateDesc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AECreateList(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AECreateList(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AECreateAppleEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AECreateAppleEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *AE_AEReplaceDescData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEReplaceDescData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *AE_AEProcessAppleEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEProcessAppleEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEGetInteractionAllowed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEGetInteractionAllowed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AESetInteractionAllowed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AESetInteractionAllowed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEInteractWithUser(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEInteractWithUser(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEInstallEventHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEInstallEventHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AERemoveEventHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AERemoveEventHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEGetEventHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEGetEventHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEInstallSpecialHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEInstallSpecialHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AERemoveSpecialHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AERemoveSpecialHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEManagerInfo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEManagerInfo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEObjectInit(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEObjectInit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AEDisposeToken(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AEDisposeToken(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *AE_AECallObjectAccessor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *AE_AECallObjectAccessor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
-void initAE()
+void initAE(void)
{
PyObject *m;
PyObject *d;
- upp_AEIdleProc = NewAEIdleProc(AEIdleProc);
- upp_GenericEventHandler = NewAEEventHandlerProc(GenericEventHandler);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc_Convert);
+ upp_AEIdleProc = NewAEIdleUPP(AEIdleProc);
+ upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert);
m = Py_InitModule("AE", AE_methods);
includestuff = includestuff + """
+#ifdef WITHOUT_FRAMEWORKS
#include <AppleEvents.h>
#include <AEObjects.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_AEDesc_New(AEDesc *);
"""
initstuff = initstuff + """
- upp_AEIdleProc = NewAEIdleProc(AEIdleProc);
- upp_GenericEventHandler = NewAEEventHandlerProc(GenericEventHandler);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc_Convert);
+ upp_AEIdleProc = NewAEIdleUPP(AEIdleProc);
+ upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert);
"""
module = MacModule('AE', 'AE', includestuff, finalstuff, initstuff)
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Appearance.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
static PyObject *App_Error;
-static PyObject *App_RegisterAppearanceClient(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_RegisterAppearanceClient(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_UnregisterAppearanceClient(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_UnregisterAppearanceClient(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemePen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemePen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemeBackground(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemeBackground(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemeTextColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemeTextColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemeWindowBackground(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemeWindowBackground(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeWindowHeader(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeWindowHeader(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeWindowListViewHeader(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeWindowListViewHeader(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemePlacard(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemePlacard(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeEditTextFrame(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeEditTextFrame(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeListBoxFrame(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeListBoxFrame(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeFocusRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeFocusRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemePrimaryGroup(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemePrimaryGroup(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeSecondaryGroup(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeSecondaryGroup(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeSeparator(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeSeparator(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeModelessDialogFrame(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeModelessDialogFrame(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeGenericWell(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeGenericWell(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeFocusRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeFocusRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_IsThemeInColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_IsThemeInColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *App_GetThemeAccentColors(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeAccentColors(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeMenuBarBackground(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeMenuBarBackground(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeMenuBarHeight(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMenuBarHeight(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeMenuBackground(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeMenuBackground(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeMenuBackgroundRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMenuBackgroundRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeMenuSeparator(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeMenuSeparator(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeMenuSeparatorHeight(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMenuSeparatorHeight(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeMenuItemExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMenuItemExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeMenuTitleExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMenuTitleExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeTabPane(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeTabPane(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeTabRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeTabRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemeCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemeCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetAnimatedThemeCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetAnimatedThemeCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeScrollBarThumbStyle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeScrollBarThumbStyle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeScrollBarArrowStyle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeScrollBarArrowStyle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeCheckBoxStyle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeCheckBoxStyle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_UseThemeFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_UseThemeFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeScrollBarArrows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeScrollBarArrows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeScrollBarTrackRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeScrollBarTrackRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_HitTestThemeScrollBarArrows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_HitTestThemeScrollBarArrows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *App_DrawThemeScrollBarDelimiters(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeScrollBarDelimiters(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_PlayThemeSound(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_PlayThemeSound(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_BeginThemeDragSound(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_BeginThemeDragSound(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_EndThemeDragSound(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_EndThemeDragSound(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeTickMark(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeTickMark(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeStandaloneGrowBox(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeStandaloneGrowBox(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_DrawThemeStandaloneNoGrowBox(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_DrawThemeStandaloneNoGrowBox(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeStandaloneGrowBoxBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeStandaloneGrowBoxBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_NormalizeThemeDrawingState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_NormalizeThemeDrawingState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_ApplyThemeBackground(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_ApplyThemeBackground(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_SetThemeTextColorForWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_SetThemeTextColorForWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_IsValidAppearanceFileType(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_IsValidAppearanceFileType(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *App_GetThemeBrushAsColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeBrushAsColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *App_GetThemeTextColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeTextColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *App_GetThemeMetric(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *App_GetThemeMetric(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
-void initApp()
+void initApp(void)
{
PyObject *m;
PyObject *d;
RGBColor = OpaqueType("RGBColor", "QdRGB")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Appearance.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
"""
## class MyObjectDefinition(GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Components.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_CmpObj_New(Component);
extern int _CmpObj_Convert(PyObject *, Component *);
** Parse/generate ComponentDescriptor records
*/
static PyObject *
-CmpDesc_New(itself)
- ComponentDescription *itself;
+CmpDesc_New(ComponentDescription *itself)
{
return Py_BuildValue("O&O&O&ll",
}
static int
-CmpDesc_Convert(v, p_itself)
- PyObject *v;
- ComponentDescription *p_itself;
+CmpDesc_Convert(PyObject *v, ComponentDescription *p_itself)
{
return PyArg_ParseTuple(v, "O&O&O&ll",
PyMac_GetOSType, &p_itself->componentType,
ComponentInstance ob_itself;
} ComponentInstanceObject;
-PyObject *CmpInstObj_New(itself)
- ComponentInstance itself;
+PyObject *CmpInstObj_New(ComponentInstance itself)
{
ComponentInstanceObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-CmpInstObj_Convert(v, p_itself)
- PyObject *v;
- ComponentInstance *p_itself;
+CmpInstObj_Convert(PyObject *v, ComponentInstance *p_itself)
{
if (!CmpInstObj_Check(v))
{
return 1;
}
-static void CmpInstObj_dealloc(self)
- ComponentInstanceObject *self;
+static void CmpInstObj_dealloc(ComponentInstanceObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
}
-static PyObject *CmpInstObj_CloseComponent(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_CloseComponent(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpInstObj_GetComponentInstanceError(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_GetComponentInstanceError(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpInstObj_SetComponentInstanceError(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_SetComponentInstanceError(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr theError;
return _res;
}
-static PyObject *CmpInstObj_GetComponentInstanceStorage(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_GetComponentInstanceStorage(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *CmpInstObj_SetComponentInstanceStorage(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_SetComponentInstanceStorage(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle theStorage;
#if !TARGET_API_MAC_CARBON
-static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_GetComponentInstanceA5(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_SetComponentInstanceA5(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long theA5;
}
#endif
-static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_ComponentFunctionImplemented(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *CmpInstObj_GetComponentVersion(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_GetComponentVersion(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *CmpInstObj_ComponentSetTarget(_self, _args)
- ComponentInstanceObject *_self;
- PyObject *_args;
+static PyObject *CmpInstObj_ComponentSetTarget(ComponentInstanceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
PyMethodChain CmpInstObj_chain = { CmpInstObj_methods, NULL };
-static PyObject *CmpInstObj_getattr(self, name)
- ComponentInstanceObject *self;
- char *name;
+static PyObject *CmpInstObj_getattr(ComponentInstanceObject *self, char *name)
{
return Py_FindMethodInChain(&CmpInstObj_chain, (PyObject *)self, name);
}
Component ob_itself;
} ComponentObject;
-PyObject *CmpObj_New(itself)
- Component itself;
+PyObject *CmpObj_New(Component itself)
{
ComponentObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-CmpObj_Convert(v, p_itself)
- PyObject *v;
- Component *p_itself;
+CmpObj_Convert(PyObject *v, Component *p_itself)
{
if ( v == Py_None ) {
*p_itself = 0;
return 1;
}
-static void CmpObj_dealloc(self)
- ComponentObject *self;
+static void CmpObj_dealloc(ComponentObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
}
-static PyObject *CmpObj_UnregisterComponent(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_UnregisterComponent(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_GetComponentInfo(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_GetComponentInfo(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_OpenComponent(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_OpenComponent(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentInstance _rv;
return _res;
}
-static PyObject *CmpObj_GetComponentRefcon(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_GetComponentRefcon(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *CmpObj_SetComponentRefcon(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_SetComponentRefcon(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long theRefcon;
return _res;
}
-static PyObject *CmpObj_OpenComponentResFile(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_OpenComponentResFile(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *CmpObj_GetComponentResource(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_GetComponentResource(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_GetComponentIndString(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_GetComponentIndString(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_ResolveComponentAlias(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_ResolveComponentAlias(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
return _res;
}
-static PyObject *CmpObj_CountComponentInstances(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_CountComponentInstances(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *CmpObj_SetDefaultComponent(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_SetDefaultComponent(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_CaptureComponent(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_CaptureComponent(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
return _res;
}
-static PyObject *CmpObj_UncaptureComponent(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_UncaptureComponent(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CmpObj_GetComponentIconSuite(_self, _args)
- ComponentObject *_self;
- PyObject *_args;
+static PyObject *CmpObj_GetComponentIconSuite(ComponentObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain CmpObj_chain = { CmpObj_methods, NULL };
-static PyObject *CmpObj_getattr(self, name)
- ComponentObject *self;
- char *name;
+static PyObject *CmpObj_getattr(ComponentObject *self, char *name)
{
return Py_FindMethodInChain(&CmpObj_chain, (PyObject *)self, name);
}
/* ------------------- End object type Component -------------------- */
-static PyObject *Cm_RegisterComponentResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_RegisterComponentResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
return _res;
}
-static PyObject *Cm_FindNextComponent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_FindNextComponent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
return _res;
}
-static PyObject *Cm_CountComponents(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_CountComponents(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Cm_GetComponentListModSeed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_GetComponentListModSeed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Cm_CloseComponentResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_CloseComponentResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Cm_OpenDefaultComponent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_OpenDefaultComponent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentInstance _rv;
return _res;
}
-static PyObject *Cm_RegisterComponentResourceFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Cm_RegisterComponentResourceFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
-void initCm()
+void initCm(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(CmpObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CmpObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(CmpInstObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CmpInstObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Component, CmpObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Component, CmpObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(ComponentInstance, CmpInstObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ComponentInstance, CmpInstObj_Convert);
m = Py_InitModule("Cm", Cm_methods);
# Create the type objects
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Components.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_CmpObj_New(Component);
extern int _CmpObj_Convert(PyObject *, Component *);
** Parse/generate ComponentDescriptor records
*/
static PyObject *
-CmpDesc_New(itself)
- ComponentDescription *itself;
+CmpDesc_New(ComponentDescription *itself)
{
return Py_BuildValue("O&O&O&ll",
}
static int
-CmpDesc_Convert(v, p_itself)
- PyObject *v;
- ComponentDescription *p_itself;
+CmpDesc_Convert(PyObject *v, ComponentDescription *p_itself)
{
return PyArg_ParseTuple(v, "O&O&O&ll",
PyMac_GetOSType, &p_itself->componentType,
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(CmpObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CmpObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(CmpInstObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CmpInstObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Component, CmpObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Component, CmpObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(ComponentInstance, CmpInstObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ComponentInstance, CmpInstObj_Convert);
"""
ComponentDescription = OpaqueType('ComponentDescription', 'CmpDesc')
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Controls.h>
-#ifndef kControlCheckBoxUncheckedValue
#include <ControlDefinitions.h>
+#else
+#include <Carbon/Carbon.h>
#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
*/
#if 0 /* Not needed */
static PyObject *
-ControlFontStyle_New(itself)
- ControlFontStyleRec *itself;
+ControlFontStyle_New(ControlFontStyleRec *itself)
{
return Py_BuildValue("hhhhhhO&O&", itself->flags, itself->font,
#endif
static int
-ControlFontStyle_Convert(v, itself)
- PyObject *v;
- ControlFontStyleRec *itself;
+ControlFontStyle_Convert(PyObject *v, ControlFontStyleRec *itself)
{
return PyArg_ParseTuple(v, "hhhhhhO&O&", &itself->flags,
&itself->font, &itself->size, &itself->style, &itself->mode,
** Parse/generate ControlID records
*/
static PyObject *
-PyControlID_New(itself)
- ControlID *itself;
+PyControlID_New(ControlID *itself)
{
return Py_BuildValue("O&l", PyMac_BuildOSType, itself->signature, itself->id);
}
static int
-PyControlID_Convert(v, itself)
- PyObject *v;
- ControlID *itself;
+PyControlID_Convert(PyObject *v, ControlID *itself)
{
return PyArg_ParseTuple(v, "O&l", PyMac_GetOSType, &itself->signature, &itself->id);
}
PyObject *ob_callbackdict;
} ControlObject;
-PyObject *CtlObj_New(itself)
- ControlHandle itself;
+PyObject *CtlObj_New(ControlHandle itself)
{
ControlObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
it->ob_callbackdict = NULL;
return (PyObject *)it;
}
-CtlObj_Convert(v, p_itself)
- PyObject *v;
- ControlHandle *p_itself;
+CtlObj_Convert(PyObject *v, ControlHandle *p_itself)
{
if (!CtlObj_Check(v))
{
return 1;
}
-static void CtlObj_dealloc(self)
- ControlObject *self;
+static void CtlObj_dealloc(ControlObject *self)
{
Py_XDECREF(self->ob_callbackdict);
if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */
PyMem_DEL(self);
}
-static PyObject *CtlObj_HiliteControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HiliteControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlPartCode hiliteState;
return _res;
}
-static PyObject *CtlObj_ShowControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_ShowControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *CtlObj_HideControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HideControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *CtlObj_IsControlActive(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_IsControlActive(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *CtlObj_IsControlVisible(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_IsControlVisible(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *CtlObj_ActivateControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_ActivateControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_DeactivateControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_DeactivateControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetControlVisibility(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlVisibility(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_Draw1Control(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_Draw1Control(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *CtlObj_GetBestControlRect(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetBestControlRect(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetControlFontStyle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlFontStyle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_DrawControlInCurrentPort(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_DrawControlInCurrentPort(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *CtlObj_SetUpControlBackground(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetUpControlBackground(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetUpControlTextColor(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetUpControlTextColor(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_DragControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_DragControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point startPoint;
return _res;
}
-static PyObject *CtlObj_TestControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_TestControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlPartCode _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_HandleControlContextualMenuClick(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlContextualMenuClick(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_GetControlClickActivation(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlClickActivation(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *CtlObj_HandleControlKey(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlKey(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_HandleControlSetCursor(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlSetCursor(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *CtlObj_MoveControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_MoveControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 h;
return _res;
}
-static PyObject *CtlObj_SizeControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SizeControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 w;
return _res;
}
-static PyObject *CtlObj_SetControlTitle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlTitle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 title;
return _res;
}
-static PyObject *CtlObj_GetControlTitle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlTitle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 title;
return _res;
}
-static PyObject *CtlObj_GetControlValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *CtlObj_SetControlValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 newValue;
return _res;
}
-static PyObject *CtlObj_GetControlMinimum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlMinimum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *CtlObj_SetControlMinimum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlMinimum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 newMinimum;
return _res;
}
-static PyObject *CtlObj_GetControlMaximum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlMaximum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *CtlObj_SetControlMaximum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlMaximum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 newMaximum;
return _res;
}
-static PyObject *CtlObj_GetControlViewSize(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlViewSize(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *CtlObj_SetControlViewSize(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlViewSize(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 newViewSize;
return _res;
}
-static PyObject *CtlObj_GetControl32BitValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControl32BitValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *CtlObj_SetControl32BitValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControl32BitValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 newValue;
return _res;
}
-static PyObject *CtlObj_GetControl32BitMaximum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControl32BitMaximum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *CtlObj_SetControl32BitMaximum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControl32BitMaximum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 newMaximum;
return _res;
}
-static PyObject *CtlObj_GetControl32BitMinimum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControl32BitMinimum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *CtlObj_SetControl32BitMinimum(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControl32BitMinimum(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 newMinimum;
return _res;
}
-static PyObject *CtlObj_IsValidControlHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_IsValidControlHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_SetControlID(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlID(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_GetControlID(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlID(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *CtlObj_RemoveControlProperty(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_RemoveControlProperty(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_GetControlPropertyAttributes(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlPropertyAttributes(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_ChangeControlPropertyAttributes(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_ChangeControlPropertyAttributes(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *CtlObj_GetControlRegion(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlRegion(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *CtlObj_GetControlVariant(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlVariant(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlVariant _rv;
return _res;
}
-static PyObject *CtlObj_SetControlReference(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlReference(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 data;
return _res;
}
-static PyObject *CtlObj_GetControlReference(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlReference(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *CtlObj_GetAuxiliaryControlRecord(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetAuxiliaryControlRecord(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *CtlObj_SetControlColor(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlColor(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CCTabHandle newColorTable;
}
#endif
-static PyObject *CtlObj_SendControlMessage(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SendControlMessage(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *CtlObj_EmbedControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_EmbedControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_AutoEmbedControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_AutoEmbedControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetSuperControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetSuperControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_CountSubControls(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_CountSubControls(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetIndexedSubControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetIndexedSubControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetControlSupervisor(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlSupervisor(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetControlFeatures(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlFeatures(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetControlDataSize(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlDataSize(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_HandleControlDragTracking(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlDragTracking(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_HandleControlDragReceive(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlDragReceive(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_SetControlDragTrackingEnabled(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlDragTrackingEnabled(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *CtlObj_IsControlDragTrackingEnabled(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_IsControlDragTrackingEnabled(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlBounds(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlBounds(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect bounds;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_IsControlHilited(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_IsControlHilited(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlHilite(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlHilite(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt16 _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlOwner(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlOwner(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlDataHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlDataHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlPopupMenuHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlPopupMenuHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_GetControlPopupMenuID(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlPopupMenuID(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_SetControlDataHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlDataHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle dataHandle;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_SetControlBounds(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlBounds(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect bounds;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_SetControlPopupMenuHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlPopupMenuHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle popupMenu;
#if ACCESSOR_CALLS_ARE_FUNCTIONS
-static PyObject *CtlObj_SetControlPopupMenuID(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlPopupMenuID(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short menuID;
}
#endif
-static PyObject *CtlObj_GetBevelButtonMenuValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetBevelButtonMenuValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetBevelButtonMenuValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetBevelButtonMenuValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetBevelButtonMenuHandle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetBevelButtonMenuHandle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetBevelButtonTransform(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetBevelButtonTransform(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetDisclosureTriangleLastValue(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetDisclosureTriangleLastValue(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_GetTabContentRect(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetTabContentRect(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetTabEnabled(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetTabEnabled(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_SetImageWellTransform(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetImageWellTransform(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *CtlObj_as_Resource(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_as_Resource(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *CtlObj_GetControlRect(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlRect(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rect;
return _res;
}
-static PyObject *CtlObj_DisposeControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_DisposeControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_TrackControl(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_TrackControl(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_HandleControlClick(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_HandleControlClick(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_SetControlData(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlData(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_GetControlData(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlData(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_SetControlData_Handle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlData_Handle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_GetControlData_Handle(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetControlData_Handle(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *CtlObj_SetControlData_Callback(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetControlData_Callback(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
#if !TARGET_API_MAC_CARBON
-static PyObject *CtlObj_GetPopupData(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_GetPopupData(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
#if !TARGET_API_MAC_CARBON
-static PyObject *CtlObj_SetPopupData(_self, _args)
- ControlObject *_self;
- PyObject *_args;
+static PyObject *CtlObj_SetPopupData(ControlObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PyMethodChain CtlObj_chain = { CtlObj_methods, NULL };
-static PyObject *CtlObj_getattr(self, name)
- ControlObject *self;
- char *name;
+static PyObject *CtlObj_getattr(ControlObject *self, char *name)
{
return Py_FindMethodInChain(&CtlObj_chain, (PyObject *)self, name);
}
#define CtlObj_setattr NULL
-static int CtlObj_compare(self, other)
- ControlObject *self, *other;
+static int CtlObj_compare(ControlObject *self, ControlObject *other)
{
unsigned long v, w;
#define CtlObj_repr NULL
-static long CtlObj_hash(self)
- ControlObject *self;
+static long CtlObj_hash(ControlObject *self)
{
return (long)self->ob_itself;
}
/* -------------------- End object type Control --------------------- */
-static PyObject *Ctl_NewControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_NewControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
return _res;
}
-static PyObject *Ctl_GetNewControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_GetNewControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
return _res;
}
-static PyObject *Ctl_DrawControls(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_DrawControls(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr theWindow;
return _res;
}
-static PyObject *Ctl_UpdateControls(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_UpdateControls(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr theWindow;
return _res;
}
-static PyObject *Ctl_FindControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_FindControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlPartCode _rv;
return _res;
}
-static PyObject *Ctl_FindControlUnderMouse(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_FindControlUnderMouse(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
return _res;
}
-static PyObject *Ctl_IdleControls(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_IdleControls(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr inWindow;
#if TARGET_API_MAC_CARBON
-static PyObject *Ctl_GetControlByID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_GetControlByID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *Ctl_DumpControlHierarchy(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_DumpControlHierarchy(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_CreateRootControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_CreateRootControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_GetRootControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_GetRootControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_GetKeyboardFocus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_GetKeyboardFocus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_SetKeyboardFocus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_SetKeyboardFocus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_AdvanceKeyboardFocus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_AdvanceKeyboardFocus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_ReverseKeyboardFocus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_ReverseKeyboardFocus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Ctl_ClearKeyboardFocus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_ClearKeyboardFocus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *Ctl_SetAutomaticControlDragTrackingEnabledForWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_SetAutomaticControlDragTrackingEnabledForWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *Ctl_IsAutomaticControlDragTrackingEnabledForWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_IsAutomaticControlDragTrackingEnabledForWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *Ctl_as_Control(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Ctl_as_Control(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
static PyObject *
-CtlObj_NewUnmanaged(itself)
- ControlHandle itself;
+CtlObj_NewUnmanaged(ControlHandle itself)
{
ControlObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
}
static int
-settrackfunc(obj)
- PyObject *obj;
+settrackfunc(PyObject *obj)
{
if (tracker) {
PyErr_SetString(Ctl_Error, "Tracker function in use");
}
static void
-clrtrackfunc()
+clrtrackfunc(void)
{
Py_XDECREF(tracker);
tracker = 0;
}
static int
-setcallback(myself, which, callback, uppp)
- PyObject *myself;
- OSType which;
- PyObject *callback;
- UniversalProcPtr *uppp;
+setcallback(PyObject *myself, OSType which, PyObject *callback, UniversalProcPtr *uppp)
{
ControlObject *self = (ControlObject *)myself;
char keybuf[9];
}
static PyObject *
-callcallback(self, which, arglist)
- ControlObject *self;
- OSType which;
- PyObject *arglist;
+callcallback(ControlObject *self, OSType which, PyObject *arglist)
{
char keybuf[9];
PyObject *func, *rv;
}
-void initCtl()
+void initCtl(void)
{
PyObject *m;
PyObject *d;
- mytracker_upp = NewControlActionProc(mytracker);
- mydrawproc_upp = NewControlUserPaneDrawProc(mydrawproc);
- myidleproc_upp = NewControlUserPaneIdleProc(myidleproc);
- myhittestproc_upp = NewControlUserPaneHitTestProc(myhittestproc);
- mytrackingproc_upp = NewControlUserPaneTrackingProc(mytrackingproc);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(CtlObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CtlObj_Convert);
+ mytracker_upp = NewControlActionUPP(mytracker);
+ mydrawproc_upp = NewControlUserPaneDrawUPP(mydrawproc);
+ myidleproc_upp = NewControlUserPaneIdleUPP(myidleproc);
+ myhittestproc_upp = NewControlUserPaneHitTestUPP(myhittestproc);
+ mytrackingproc_upp = NewControlUserPaneTrackingUPP(mytrackingproc);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(ControlHandle, CtlObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ControlHandle, CtlObj_Convert);
m = Py_InitModule("Ctl", Ctl_methods);
DragReference = OpaqueByValueType("DragReference", "DragObj")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
-#ifndef kControlCheckBoxUncheckedValue
+#ifdef WITHOUT_FRAMEWORKS
+#include <Controls.h>
#include <ControlDefinitions.h>
+#else
+#include <Carbon/Carbon.h>
#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
*/
#if 0 /* Not needed */
static PyObject *
-ControlFontStyle_New(itself)
- ControlFontStyleRec *itself;
+ControlFontStyle_New(ControlFontStyleRec *itself)
{
return Py_BuildValue("hhhhhhO&O&", itself->flags, itself->font,
#endif
static int
-ControlFontStyle_Convert(v, itself)
- PyObject *v;
- ControlFontStyleRec *itself;
+ControlFontStyle_Convert(PyObject *v, ControlFontStyleRec *itself)
{
return PyArg_ParseTuple(v, "hhhhhhO&O&", &itself->flags,
&itself->font, &itself->size, &itself->style, &itself->mode,
** Parse/generate ControlID records
*/
static PyObject *
-PyControlID_New(itself)
- ControlID *itself;
+PyControlID_New(ControlID *itself)
{
return Py_BuildValue("O&l", PyMac_BuildOSType, itself->signature, itself->id);
}
static int
-PyControlID_Convert(v, itself)
- PyObject *v;
- ControlID *itself;
+PyControlID_Convert(PyObject *v, ControlID *itself)
{
return PyArg_ParseTuple(v, "O&l", PyMac_GetOSType, &itself->signature, &itself->id);
}
finalstuff = finalstuff + """
static PyObject *
-CtlObj_NewUnmanaged(itself)
- ControlHandle itself;
+CtlObj_NewUnmanaged(ControlHandle itself)
{
ControlObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
}
static int
-settrackfunc(obj)
- PyObject *obj;
+settrackfunc(PyObject *obj)
{
if (tracker) {
PyErr_SetString(Ctl_Error, "Tracker function in use");
}
static void
-clrtrackfunc()
+clrtrackfunc(void)
{
Py_XDECREF(tracker);
tracker = 0;
}
static int
-setcallback(myself, which, callback, uppp)
- PyObject *myself;
- OSType which;
- PyObject *callback;
- UniversalProcPtr *uppp;
+setcallback(PyObject *myself, OSType which, PyObject *callback, UniversalProcPtr *uppp)
{
ControlObject *self = (ControlObject *)myself;
char keybuf[9];
}
static PyObject *
-callcallback(self, which, arglist)
- ControlObject *self;
- OSType which;
- PyObject *arglist;
+callcallback(ControlObject *self, OSType which, PyObject *arglist)
{
char keybuf[9];
PyObject *func, *rv;
"""
initstuff = initstuff + """
-mytracker_upp = NewControlActionProc(mytracker);
-mydrawproc_upp = NewControlUserPaneDrawProc(mydrawproc);
-myidleproc_upp = NewControlUserPaneIdleProc(myidleproc);
-myhittestproc_upp = NewControlUserPaneHitTestProc(myhittestproc);
-mytrackingproc_upp = NewControlUserPaneTrackingProc(mytrackingproc);
-PyMac_INIT_TOOLBOX_OBJECT_NEW(CtlObj_New);
-PyMac_INIT_TOOLBOX_OBJECT_CONVERT(CtlObj_Convert);
+mytracker_upp = NewControlActionUPP(mytracker);
+mydrawproc_upp = NewControlUserPaneDrawUPP(mydrawproc);
+myidleproc_upp = NewControlUserPaneIdleUPP(myidleproc);
+myhittestproc_upp = NewControlUserPaneHitTestUPP(myhittestproc);
+mytrackingproc_upp = NewControlUserPaneTrackingUPP(mytrackingproc);
+PyMac_INIT_TOOLBOX_OBJECT_NEW(ControlHandle, CtlObj_New);
+PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ControlHandle, CtlObj_Convert);
"""
class MyObjectDefinition(ObjectIdentityMixin, GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Dialogs.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_DlgObj_New(DialogRef);
extern PyObject *_DlgObj_WhichDialog(DialogRef);
DialogPtr ob_itself;
} DialogObject;
-PyObject *DlgObj_New(itself)
- DialogPtr itself;
+PyObject *DlgObj_New(DialogPtr itself)
{
DialogObject *it;
if (itself == NULL) return Py_None;
SetWRefCon(GetDialogWindow(itself), (long)it);
return (PyObject *)it;
}
-DlgObj_Convert(v, p_itself)
- PyObject *v;
- DialogPtr *p_itself;
+DlgObj_Convert(PyObject *v, DialogPtr *p_itself)
{
if (v == Py_None) { *p_itself = NULL; return 1; }
if (PyInt_Check(v)) { *p_itself = (DialogPtr)PyInt_AsLong(v);
return 1;
}
-static void DlgObj_dealloc(self)
- DialogObject *self;
+static void DlgObj_dealloc(DialogObject *self)
{
DisposeDialog(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *DlgObj_DrawDialog(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_DrawDialog(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_UpdateDialog(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_UpdateDialog(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle updateRgn;
return _res;
}
-static PyObject *DlgObj_HideDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_HideDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex itemNo;
return _res;
}
-static PyObject *DlgObj_ShowDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_ShowDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex itemNo;
return _res;
}
-static PyObject *DlgObj_FindDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_FindDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndexZeroBased _rv;
return _res;
}
-static PyObject *DlgObj_DialogCut(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_DialogCut(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_DialogPaste(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_DialogPaste(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_DialogCopy(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_DialogCopy(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_DialogDelete(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_DialogDelete(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_GetDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex itemNo;
return _res;
}
-static PyObject *DlgObj_SetDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex itemNo;
return _res;
}
-static PyObject *DlgObj_SelectDialogItemText(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SelectDialogItemText(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex itemNo;
return _res;
}
-static PyObject *DlgObj_AppendDITL(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_AppendDITL(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle theHandle;
return _res;
}
-static PyObject *DlgObj_CountDITL(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_CountDITL(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex _rv;
return _res;
}
-static PyObject *DlgObj_ShortenDITL(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_ShortenDITL(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex numberItems;
#if TARGET_API_MAC_CARBON
-static PyObject *DlgObj_InsertDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_InsertDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *DlgObj_RemoveDialogItems(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_RemoveDialogItems(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *DlgObj_StdFilterProc(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_StdFilterProc(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *DlgObj_SetDialogDefaultItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetDialogDefaultItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_SetDialogCancelItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetDialogCancelItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_SetDialogTracksCursor(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetDialogTracksCursor(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_AutoSizeDialog(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_AutoSizeDialog(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_GetDialogItemAsControl(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogItemAsControl(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_MoveDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_MoveDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_SizeDialogItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SizeDialogItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_AppendDialogItemList(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_AppendDialogItemList(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DlgObj_SetDialogTimeout(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetDialogTimeout(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *DlgObj_GetDialogTimeout(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogTimeout(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *DlgObj_SetModalDialogEventMask(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetModalDialogEventMask(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *DlgObj_GetModalDialogEventMask(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetModalDialogEventMask(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *DlgObj_GetDialogWindow(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogWindow(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *DlgObj_GetDialogTextEditHandle(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogTextEditHandle(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEHandle _rv;
return _res;
}
-static PyObject *DlgObj_GetDialogDefaultItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogDefaultItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *DlgObj_GetDialogCancelItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogCancelItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *DlgObj_GetDialogKeyboardFocusItem(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogKeyboardFocusItem(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *DlgObj_SetPortDialogPort(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetPortDialogPort(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *DlgObj_GetDialogPort(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *DlgObj_SetGrafPortOfDialog(_self, _args)
- DialogObject *_self;
- PyObject *_args;
+static PyObject *DlgObj_SetGrafPortOfDialog(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
PyMethodChain DlgObj_chain = { DlgObj_methods, NULL };
-static PyObject *DlgObj_getattr(self, name)
- DialogObject *self;
- char *name;
+static PyObject *DlgObj_getattr(DialogObject *self, char *name)
{
return Py_FindMethodInChain(&DlgObj_chain, (PyObject *)self, name);
}
#define DlgObj_setattr NULL
-static int DlgObj_compare(self, other)
- DialogObject *self, *other;
+static int DlgObj_compare(DialogObject *self, DialogObject *other)
{
if ( self->ob_itself > other->ob_itself ) return 1;
if ( self->ob_itself < other->ob_itself ) return -1;
#define DlgObj_repr NULL
-static int DlgObj_hash(self)
- DialogObject *self;
+static int DlgObj_hash(DialogObject *self)
{
return (int)self->ob_itself;
}
/* --------------------- End object type Dialog --------------------- */
-static PyObject *Dlg_NewDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_NewDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogPtr _rv;
return _res;
}
-static PyObject *Dlg_GetNewDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_GetNewDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogPtr _rv;
return _res;
}
-static PyObject *Dlg_NewColorDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_NewColorDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogPtr _rv;
return _res;
}
-static PyObject *Dlg_ModalDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_ModalDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PyObject* modalFilter;
return _res;
}
-static PyObject *Dlg_IsDialogEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_IsDialogEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Dlg_DialogSelect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_DialogSelect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Dlg_Alert(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_Alert(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex _rv;
return _res;
}
-static PyObject *Dlg_StopAlert(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_StopAlert(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex _rv;
return _res;
}
-static PyObject *Dlg_NoteAlert(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_NoteAlert(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex _rv;
return _res;
}
-static PyObject *Dlg_CautionAlert(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_CautionAlert(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogItemIndex _rv;
return _res;
}
-static PyObject *Dlg_ParamText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_ParamText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 param0;
return _res;
}
-static PyObject *Dlg_GetDialogItemText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_GetDialogItemText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle item;
return _res;
}
-static PyObject *Dlg_SetDialogItemText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_SetDialogItemText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle item;
return _res;
}
-static PyObject *Dlg_GetAlertStage(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_GetAlertStage(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *Dlg_SetDialogFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_SetDialogFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 fontNum;
return _res;
}
-static PyObject *Dlg_ResetAlertStage(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_ResetAlertStage(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if TARGET_API_MAC_CARBON
-static PyObject *Dlg_GetParamText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_GetParamText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 param0;
}
#endif
-static PyObject *Dlg_NewFeaturesDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_NewFeaturesDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogPtr _rv;
return _res;
}
-static PyObject *Dlg_GetDialogFromWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_GetDialogFromWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DialogPtr _rv;
return _res;
}
-static PyObject *Dlg_SetUserItemHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Dlg_SetUserItemHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Py_INCREF(Py_None);
} else {
Py_INCREF(new);
- _res = Py_BuildValue("O&", ResObj_New, (Handle)NewUserItemProc(Dlg_UnivUserItemProc));
+ _res = Py_BuildValue("O&", ResObj_New, (Handle)NewUserItemUPP(Dlg_UnivUserItemProc));
}
Dlg_UserItemProc_callback = new;
/* Return the WindowPtr corresponding to a DialogObject */
#if 0
WindowPtr
-DlgObj_ConvertToWindow(self)
- PyObject *self;
+DlgObj_ConvertToWindow(PyObject *self)
{
if ( DlgObj_Check(self) )
return GetDialogWindow(((DialogObject *)self)->ob_itself);
/* Return the object corresponding to the dialog, or None */
PyObject *
-DlgObj_WhichDialog(d)
- DialogPtr d;
+DlgObj_WhichDialog(DialogPtr d)
{
PyObject *it;
}
-void initDlg()
+void initDlg(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DlgObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DlgObj_WhichDialog);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DlgObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_WhichDialog);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DialogPtr, DlgObj_Convert);
m = Py_InitModule("Dlg", Dlg_methods);
EventMask = Type("EventMask", "H")
includestuff = includestuff + """
+#ifdef WITHOUT_FRAMEWORKS
#include <Dialogs.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_DlgObj_New(DialogRef);
extern PyObject *_DlgObj_WhichDialog(DialogRef);
/* Return the WindowPtr corresponding to a DialogObject */
#if 0
WindowPtr
-DlgObj_ConvertToWindow(self)
- PyObject *self;
+DlgObj_ConvertToWindow(PyObject *self)
{
if ( DlgObj_Check(self) )
return GetDialogWindow(((DialogObject *)self)->ob_itself);
/* Return the object corresponding to the dialog, or None */
PyObject *
-DlgObj_WhichDialog(d)
- DialogPtr d;
+DlgObj_WhichDialog(DialogPtr d)
{
PyObject *it;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DlgObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DlgObj_WhichDialog);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DlgObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DialogPtr, DlgObj_WhichDialog);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DialogPtr, DlgObj_Convert);
"""
def outputCompare(self):
Output()
- Output("static int %s_compare(self, other)", self.prefix)
- IndentLevel()
- Output("%s *self, *other;", self.objecttype)
- DedentLevel()
+ Output("static int %s_compare(%s *self, %s *other)", self.prefix, self.objecttype, self.objecttype)
OutLbrace()
Output("if ( self->ob_itself > other->ob_itself ) return 1;")
Output("if ( self->ob_itself < other->ob_itself ) return -1;")
def outputHash(self):
Output()
- Output("static int %s_hash(self)", self.prefix)
- IndentLevel()
- Output("%s *self;", self.objecttype)
- DedentLevel()
+ Output("static int %s_hash(%s *self)", self.prefix, self.objecttype)
OutLbrace()
Output("return (int)self->ob_itself;")
OutRbrace()
Py_INCREF(Py_None);
} else {
Py_INCREF(new);
- _res = Py_BuildValue("O&", ResObj_New, (Handle)NewUserItemProc(Dlg_UnivUserItemProc));
+ _res = Py_BuildValue("O&", ResObj_New, (Handle)NewUserItemUPP(Dlg_UnivUserItemProc));
}
Dlg_UserItemProc_callback = new;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Drag.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
/* Callback glue routines */
DragTrackingHandlerUPP dragglue_TrackingHandlerUPP;
PyObject *sendproc;
} DragObjObject;
-PyObject *DragObj_New(itself)
- DragRef itself;
+PyObject *DragObj_New(DragRef itself)
{
DragObjObject *it;
if (itself == NULL) {
it->sendproc = NULL;
return (PyObject *)it;
}
-DragObj_Convert(v, p_itself)
- PyObject *v;
- DragRef *p_itself;
+DragObj_Convert(PyObject *v, DragRef *p_itself)
{
if (!DragObj_Check(v))
{
return 1;
}
-static void DragObj_dealloc(self)
- DragObjObject *self;
+static void DragObj_dealloc(DragObjObject *self)
{
Py_XDECREF(self->sendproc);
PyMem_DEL(self);
}
-static PyObject *DragObj_DisposeDrag(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_DisposeDrag(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_AddDragItemFlavor(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_AddDragItemFlavor(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_SetDragItemFlavorData(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_SetDragItemFlavorData(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_SetDragImage(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_SetDragImage(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_ChangeDragBehaviors(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_ChangeDragBehaviors(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_TrackDrag(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_TrackDrag(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_CountDragItems(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_CountDragItems(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragItemReferenceNumber(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragItemReferenceNumber(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_CountDragItemFlavors(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_CountDragItemFlavors(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetFlavorType(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetFlavorType(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetFlavorFlags(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetFlavorFlags(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetFlavorDataSize(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetFlavorDataSize(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetFlavorData(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetFlavorData(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragItemBounds(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragItemBounds(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_SetDragItemBounds(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_SetDragItemBounds(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDropLocation(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDropLocation(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_SetDropLocation(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_SetDropLocation(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragAttributes(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragAttributes(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragMouse(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragMouse(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_SetDragMouse(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_SetDragMouse(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragOrigin(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragOrigin(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_GetDragModifiers(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_GetDragModifiers(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_ShowDragHilite(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_ShowDragHilite(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_HideDragHilite(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_HideDragHilite(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_DragPreScroll(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_DragPreScroll(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_DragPostScroll(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_DragPostScroll(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *DragObj_UpdateDragHilite(_self, _args)
- DragObjObject *_self;
- PyObject *_args;
+static PyObject *DragObj_UpdateDragHilite(DragObjObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain DragObj_chain = { DragObj_methods, NULL };
-static PyObject *DragObj_getattr(self, name)
- DragObjObject *self;
- char *name;
+static PyObject *DragObj_getattr(DragObjObject *self, char *name)
{
return Py_FindMethodInChain(&DragObj_chain, (PyObject *)self, name);
}
/* -------------------- End object type DragObj --------------------- */
-static PyObject *Drag_NewDrag(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_NewDrag(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Drag_GetDragHiliteColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_GetDragHiliteColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Drag_WaitMouseMoved(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_WaitMouseMoved(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Drag_ZoomRects(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_ZoomRects(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Drag_ZoomRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_ZoomRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Drag_InstallTrackingHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_InstallTrackingHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Drag_InstallReceiveHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_InstallReceiveHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Drag_RemoveTrackingHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_RemoveTrackingHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Drag_RemoveReceiveHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Drag_RemoveReceiveHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
-void initDrag()
+void initDrag(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DragObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DragObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DragRef, DragObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DragRef, DragObj_Convert);
m = Py_InitModule("Drag", Drag_methods);
if (PyDict_SetItemString(d, "DragObjType", (PyObject *)&DragObj_Type) != 0)
Py_FatalError("can't initialize DragObjType");
- dragglue_TrackingHandlerUPP = NewDragTrackingHandlerProc(dragglue_TrackingHandler);
- dragglue_ReceiveHandlerUPP = NewDragReceiveHandlerProc(dragglue_ReceiveHandler);
- dragglue_SendDataUPP = NewDragSendDataProc(dragglue_SendData);
+ dragglue_TrackingHandlerUPP = NewDragTrackingHandlerUPP(dragglue_TrackingHandler);
+ dragglue_ReceiveHandlerUPP = NewDragReceiveHandlerUPP(dragglue_ReceiveHandler);
+ dragglue_SendDataUPP = NewDragSendDataUPP(dragglue_SendData);
#if 0
- dragglue_InputUPP = NewDragInputProc(dragglue_Input);
- dragglue_DrawingUPP = NewDragDrawingProc(dragglue_Drawing);
+ dragglue_InputUPP = NewDragInputUPP(dragglue_Input);
+ dragglue_DrawingUPP = NewDragDrawingUPP(dragglue_Drawing);
#endif
DragTrackingMessage = Type("DragTrackingMessage", "h")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Drag.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
/* Callback glue routines */
DragTrackingHandlerUPP dragglue_TrackingHandlerUPP;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(DragObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DragObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(DragRef, DragObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(DragRef, DragObj_Convert);
"""
variablestuff = """
-dragglue_TrackingHandlerUPP = NewDragTrackingHandlerProc(dragglue_TrackingHandler);
-dragglue_ReceiveHandlerUPP = NewDragReceiveHandlerProc(dragglue_ReceiveHandler);
-dragglue_SendDataUPP = NewDragSendDataProc(dragglue_SendData);
+dragglue_TrackingHandlerUPP = NewDragTrackingHandlerUPP(dragglue_TrackingHandler);
+dragglue_ReceiveHandlerUPP = NewDragReceiveHandlerUPP(dragglue_ReceiveHandler);
+dragglue_SendDataUPP = NewDragSendDataUPP(dragglue_SendData);
#if 0
-dragglue_InputUPP = NewDragInputProc(dragglue_Input);
-dragglue_DrawingUPP = NewDragDrawingProc(dragglue_Drawing);
+dragglue_InputUPP = NewDragInputUPP(dragglue_Input);
+dragglue_DrawingUPP = NewDragDrawingUPP(dragglue_Drawing);
#endif
"""
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Events.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
static PyObject *Evt_Error;
-static PyObject *Evt_GetMouse(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetMouse(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point mouseLoc;
return _res;
}
-static PyObject *Evt_Button(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_Button(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Evt_StillDown(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_StillDown(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Evt_WaitMouseUp(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_WaitMouseUp(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Evt_TickCount(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_TickCount(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
return _res;
}
-static PyObject *Evt_GetCaretTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetCaretTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
return _res;
}
-static PyObject *Evt_GetKeys(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetKeys(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
KeyMap theKeys__out__;
return _res;
}
-static PyObject *Evt_GetDblTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetDblTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
return _res;
}
-static PyObject *Evt_SetEventMask(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_SetEventMask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
EventMask value;
return _res;
}
-static PyObject *Evt_GetNextEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetNextEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Evt_EventAvail(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_EventAvail(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Evt_PostEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_PostEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Evt_OSEventAvail(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_OSEventAvail(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Evt_GetOSEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetOSEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *Evt_FlushEvents(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_FlushEvents(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
EventMask whichMask;
#if !TARGET_API_MAC_CARBON
-static PyObject *Evt_SystemClick(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_SystemClick(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
EventRecord theEvent;
#if !TARGET_API_MAC_CARBON
-static PyObject *Evt_SystemTask(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_SystemTask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if !TARGET_API_MAC_CARBON
-static PyObject *Evt_SystemEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_SystemEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Evt_GetGlobalMouse(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetGlobalMouse(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point globalMouse;
#if TARGET_API_MAC_CARBON
-static PyObject *Evt_GetCurrentKeyModifiers(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_GetCurrentKeyModifiers(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Evt_CheckEventQueueForUserCancel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_CheckEventQueueForUserCancel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *Evt_WaitNextEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Evt_WaitNextEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
-void initEvt()
+void initEvt(void)
{
PyObject *m;
PyObject *d;
EventKind = Type("EventKind", "H")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Events.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
"""
class MyObjectDefinition(GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Fonts.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
/*
** Parse/generate ComponentDescriptor records
*/
static PyObject *
-FMRec_New(itself)
- FMetricRec *itself;
+FMRec_New(FMetricRec *itself)
{
return Py_BuildValue("O&O&O&O&O&",
#if 0
/* Not needed... */
static int
-FMRec_Convert(v, p_itself)
- PyObject *v;
- FMetricRec *p_itself;
+FMRec_Convert(PyObject *v, FMetricRec *p_itself)
{
return PyArg_ParseTuple(v, "O&O&O&O&O&",
PyMac_GetFixed, &itself->ascent,
#if !TARGET_API_MAC_CARBON
-static PyObject *Fm_InitFonts(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_InitFonts(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
}
#endif
-static PyObject *Fm_GetFontName(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetFontName(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short familyID;
return _res;
}
-static PyObject *Fm_GetFNum(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetFNum(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 name;
return _res;
}
-static PyObject *Fm_RealFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_RealFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Fm_SetFontLock(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetFontLock(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean lockFlag;
}
#endif
-static PyObject *Fm_SetFScaleDisable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetFScaleDisable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean fscaleDisable;
return _res;
}
-static PyObject *Fm_FontMetrics(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_FontMetrics(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
FMetricRec theMetrics;
return _res;
}
-static PyObject *Fm_SetFractEnable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetFractEnable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean fractEnable;
return _res;
}
-static PyObject *Fm_GetDefFontSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetDefFontSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Fm_IsOutline(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_IsOutline(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Fm_SetOutlinePreferred(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetOutlinePreferred(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean outlinePreferred;
return _res;
}
-static PyObject *Fm_GetOutlinePreferred(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetOutlinePreferred(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Fm_SetPreserveGlyph(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetPreserveGlyph(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean preserveGlyph;
return _res;
}
-static PyObject *Fm_GetPreserveGlyph(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetPreserveGlyph(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Fm_FlushFonts(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_FlushFonts(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *Fm_GetSysFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetSysFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Fm_GetAppFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_GetAppFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Fm_SetAntiAliasedTextEnabled(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_SetAntiAliasedTextEnabled(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Fm_IsAntiAliasedTextEnabled(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
-void initFm()
+void initFm(void)
{
PyObject *m;
PyObject *d;
# Create the type objects
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Fonts.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
/*
** Parse/generate ComponentDescriptor records
*/
static PyObject *
-FMRec_New(itself)
- FMetricRec *itself;
+FMRec_New(FMetricRec *itself)
{
return Py_BuildValue("O&O&O&O&O&",
#if 0
/* Not needed... */
static int
-FMRec_Convert(v, p_itself)
- PyObject *v;
- FMetricRec *p_itself;
+FMRec_Convert(PyObject *v, FMetricRec *p_itself)
{
return PyArg_ParseTuple(v, "O&O&O&O&O&",
PyMac_GetFixed, &itself->ascent,
static PyObject *Help_Error;
-static PyObject *Help_HMGetHelpMenuHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetHelpMenuHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMRemoveBalloon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMRemoveBalloon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMIsBalloon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMIsBalloon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Help_HMGetBalloons(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetBalloons(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Help_HMSetBalloons(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMSetBalloons(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMSetFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMSetFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMSetFontSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMSetFontSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMGetFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMGetFontSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetFontSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMSetDialogResID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMSetDialogResID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMSetMenuResID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMSetMenuResID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMScanTemplateItems(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMScanTemplateItems(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMGetDialogResID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetDialogResID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMGetMenuResID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetMenuResID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Help_HMGetBalloonWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Help_HMGetBalloonWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
-void initHelp()
+void initHelp(void)
{
PyObject *m;
PyObject *d;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Icons.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
static PyObject *Icn_Error;
-static PyObject *Icn_GetCIcon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetCIcon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CIconHandle _rv;
return _res;
}
-static PyObject *Icn_PlotCIcon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotCIcon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect theRect;
return _res;
}
-static PyObject *Icn_DisposeCIcon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_DisposeCIcon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CIconHandle theIcon;
return _res;
}
-static PyObject *Icn_GetIcon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIcon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Icn_PlotIcon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotIcon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect theRect;
return _res;
}
-static PyObject *Icn_PlotIconID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotIconID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_NewIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_NewIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_AddIconToSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_AddIconToSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconFromSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconFromSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_DisposeIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_DisposeIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_PlotIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_LoadIconCache(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_LoadIconCache(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetLabel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetLabel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_PtInIconID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PtInIconID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_PtInIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PtInIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_RectInIconID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RectInIconID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_RectInIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RectInIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_IconIDToRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconIDToRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IconSuiteToRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconSuiteToRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_SetSuiteLabel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_SetSuiteLabel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetSuiteLabel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetSuiteLabel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *Icn_PlotIconHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotIconHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_PlotSICNHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotSICNHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_PlotCIconHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotCIconHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Icn_IconServicesTerminate(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconServicesTerminate(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
}
#endif
-static PyObject *Icn_IconRefToIconFamily(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconRefToIconFamily(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IconFamilyToIconSuite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconFamilyToIconSuite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IconSuiteToIconFamily(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconSuiteToIconFamily(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_SetIconFamilyData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_SetIconFamilyData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconFamilyData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconFamilyData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconRefOwners(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconRefOwners(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_AcquireIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_AcquireIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_ReleaseIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_ReleaseIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconRefFromFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconRefFromFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconRefFromFolder(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconRefFromFolder(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_RegisterIconRefFromIconFamily(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RegisterIconRefFromIconFamily(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_RegisterIconRefFromResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RegisterIconRefFromResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_UnregisterIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_UnregisterIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_UpdateIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_UpdateIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_OverrideIconRefFromResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_OverrideIconRefFromResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_OverrideIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_OverrideIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_RemoveIconRefOverride(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RemoveIconRefOverride(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_CompositeIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_CompositeIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IsIconRefComposite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IsIconRefComposite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IsValidIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IsValidIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_PlotIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PlotIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_PtInIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_PtInIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_RectInIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RectInIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Icn_IconRefToRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IconRefToRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetIconSizesFromIconRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconSizesFromIconRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_FlushIconRefs(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_FlushIconRefs(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_FlushIconRefsByVolume(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_FlushIconRefsByVolume(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_SetCustomIconsEnabled(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_SetCustomIconsEnabled(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_GetCustomIconsEnabled(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetCustomIconsEnabled(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Icn_IsIconRefMaskEmpty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_IsIconRefMaskEmpty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Icn_GetIconRefVariant(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_GetIconRefVariant(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
IconRef _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Icn_RegisterIconRefFromIconFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_RegisterIconRefFromIconFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *Icn_ReadIconFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_ReadIconFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *Icn_WriteIconFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Icn_WriteIconFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
-void initIcn()
+void initIcn(void)
{
PyObject *m;
PyObject *d;
#EventKind = Type("EventKind", "H")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Icons.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
"""
class MyObjectDefinition(GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Lists.h>
-
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_ListObj_New(ListHandle);
int ob_must_be_disposed;
} ListObject;
-PyObject *ListObj_New(itself)
- ListHandle itself;
+PyObject *ListObj_New(ListHandle itself)
{
ListObject *it;
if (itself == NULL) {
it->ob_must_be_disposed = 1;
return (PyObject *)it;
}
-ListObj_Convert(v, p_itself)
- PyObject *v;
- ListHandle *p_itself;
+ListObj_Convert(PyObject *v, ListHandle *p_itself)
{
if (!ListObj_Check(v))
{
return 1;
}
-static void ListObj_dealloc(self)
- ListObject *self;
+static void ListObj_dealloc(ListObject *self)
{
if (self->ob_must_be_disposed && self->ob_itself) LDispose(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *ListObj_LAddColumn(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LAddColumn(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *ListObj_LAddRow(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LAddRow(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *ListObj_LDelColumn(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LDelColumn(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short count;
return _res;
}
-static PyObject *ListObj_LDelRow(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LDelRow(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short count;
return _res;
}
-static PyObject *ListObj_LGetSelect(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LGetSelect(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *ListObj_LLastClick(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LLastClick(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point _rv;
return _res;
}
-static PyObject *ListObj_LNextCell(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LNextCell(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *ListObj_LSize(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LSize(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short listWidth;
return _res;
}
-static PyObject *ListObj_LSetDrawingMode(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LSetDrawingMode(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean drawIt;
return _res;
}
-static PyObject *ListObj_LScroll(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LScroll(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short dCols;
return _res;
}
-static PyObject *ListObj_LAutoScroll(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LAutoScroll(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ListObj_LUpdate(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LUpdate(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle theRgn;
return _res;
}
-static PyObject *ListObj_LActivate(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LActivate(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean act;
return _res;
}
-static PyObject *ListObj_LCellSize(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LCellSize(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point cSize;
return _res;
}
-static PyObject *ListObj_LClick(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LClick(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *ListObj_LAddToCell(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LAddToCell(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *dataPtr__in__;
return _res;
}
-static PyObject *ListObj_LClrCell(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LClrCell(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point theCell;
return _res;
}
-static PyObject *ListObj_LGetCell(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LGetCell(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *dataPtr__out__;
return _res;
}
-static PyObject *ListObj_LRect(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LRect(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect cellRect;
return _res;
}
-static PyObject *ListObj_LSetCell(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LSetCell(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *dataPtr__in__;
return _res;
}
-static PyObject *ListObj_LSetSelect(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LSetSelect(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean setIt;
return _res;
}
-static PyObject *ListObj_LDraw(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_LDraw(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point theCell;
return _res;
}
-static PyObject *ListObj_as_Resource(_self, _args)
- ListObject *_self;
- PyObject *_args;
+static PyObject *ListObj_as_Resource(ListObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
PyMethodChain ListObj_chain = { ListObj_methods, NULL };
-static PyObject *ListObj_getattr(self, name)
- ListObject *self;
- char *name;
+static PyObject *ListObj_getattr(ListObject *self, char *name)
{
{
/* XXXX Should we HLock() here?? */
}
static int
-ListObj_setattr(self, name, value)
- ListObject *self;
- char *name;
- PyObject *value;
+ListObj_setattr(ListObject *self, char *name, PyObject *value)
{
long intval;
/* ---------------------- End object type List ---------------------- */
-static PyObject *List_LNew(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_LNew(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle _rv;
return _res;
}
-static PyObject *List_GetListPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
return _res;
}
-static PyObject *List_GetListVerticalScrollBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListVerticalScrollBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
return _res;
}
-static PyObject *List_GetListHorizontalScrollBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListHorizontalScrollBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ControlHandle _rv;
return _res;
}
-static PyObject *List_GetListActive(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListActive(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *List_GetListClickTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListClickTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *List_GetListRefCon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListRefCon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *List_GetListDefinition(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListDefinition(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *List_GetListUserHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListUserHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *List_GetListDataHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListDataHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DataHandle _rv;
return _res;
}
-static PyObject *List_GetListFlags(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListFlags(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OptionBits _rv;
return _res;
}
-static PyObject *List_GetListSelectionFlags(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_GetListSelectionFlags(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OptionBits _rv;
return _res;
}
-static PyObject *List_SetListViewBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListViewBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListCellIndent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListCellIndent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListClickTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListClickTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListRefCon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListRefCon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListUserHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListUserHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListFlags(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListFlags(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_SetListSelectionFlags(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_SetListSelectionFlags(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ListHandle list;
return _res;
}
-static PyObject *List_as_List(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *List_as_List(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
-void initList()
+void initList(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(ListObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(ListHandle, ListObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListHandle, ListObj_Convert);
m = Py_InitModule("List", List_methods);
CGrafPtr = OpaqueByValueType("CGrafPtr", "GrafObj")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
-
+#ifdef WITHOUT_FRAMEWORKS
+#include <Lists.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_ListObj_New(ListHandle);
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(ListObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(ListHandle, ListObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ListHandle, ListObj_Convert);
"""
class ListMethodGenerator(MethodGenerator):
setattrCode = """
static int
-ListObj_setattr(self, name, value)
- ListObject *self;
- char *name;
- PyObject *value;
+ListObj_setattr(ListObject *self, char *name, PyObject *value)
{
long intval;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */
#include <Menus.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
MenuHandle ob_itself;
} MenuObject;
-PyObject *MenuObj_New(itself)
- MenuHandle itself;
+PyObject *MenuObj_New(MenuHandle itself)
{
MenuObject *it;
it = PyObject_NEW(MenuObject, &Menu_Type);
it->ob_itself = itself;
return (PyObject *)it;
}
-MenuObj_Convert(v, p_itself)
- PyObject *v;
- MenuHandle *p_itself;
+MenuObj_Convert(PyObject *v, MenuHandle *p_itself)
{
if (!MenuObj_Check(v))
{
return 1;
}
-static void MenuObj_dealloc(self)
- MenuObject *self;
+static void MenuObj_dealloc(MenuObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
}
-static PyObject *MenuObj_DisposeMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisposeMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MenuObj_CalcMenuSize(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CalcMenuSize(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MenuObj_CountMenuItems(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CountMenuItems(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_CountMItems(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CountMItems(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
}
#endif
-static PyObject *MenuObj_GetMenuFont(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuFont(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *MenuObj_SetMenuFont(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuFont(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *MenuObj_GetMenuExcludesMarkColumn(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuExcludesMarkColumn(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MenuObj_SetMenuExcludesMarkColumn(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuExcludesMarkColumn(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *MenuObj_MacAppendMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MacAppendMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 data;
return _res;
}
-static PyObject *MenuObj_InsertResMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertResMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *MenuObj_AppendResMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_AppendResMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *MenuObj_MacInsertMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MacInsertMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 itemString;
return _res;
}
-static PyObject *MenuObj_DeleteMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DeleteMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_InsertFontResMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertFontResMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short afterItem;
return _res;
}
-static PyObject *MenuObj_InsertIntlResMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertIntlResMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *MenuObj_AppendMenuItemText(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_AppendMenuItemText(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *MenuObj_InsertMenuItemText(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertMenuItemText(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *MenuObj_PopUpMenuSelect(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_PopUpMenuSelect(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MenuObj_MacInsertMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MacInsertMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID beforeID;
return _res;
}
-static PyObject *MenuObj_MacCheckMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MacCheckMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_CheckItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CheckItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
}
#endif
-static PyObject *MenuObj_SetMenuItemText(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemText(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_GetMenuItemText(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemText(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_SetItemMark(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetItemMark(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_GetItemMark(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetItemMark(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_SetItemCmd(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetItemCmd(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_GetItemCmd(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetItemCmd(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_SetItemIcon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetItemIcon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_GetItemIcon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetItemIcon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_SetItemStyle(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetItemStyle(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
return _res;
}
-static PyObject *MenuObj_GetItemStyle(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetItemStyle(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_DisableItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisableItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_EnableItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_EnableItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
}
#endif
-static PyObject *MenuObj_SetMenuItemCommandID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemCommandID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemCommandID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemCommandID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemModifiers(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemModifiers(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemModifiers(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemModifiers(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemIconHandle(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemIconHandle(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemIconHandle(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemIconHandle(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemTextEncoding(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemTextEncoding(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemTextEncoding(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemTextEncoding(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemHierarchicalID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemHierarchicalID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemHierarchicalID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemHierarchicalID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemFontID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemFontID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemFontID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemFontID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_SetMenuItemRefCon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemRefCon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemRefCon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemRefCon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_SetMenuItemRefCon2(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemRefCon2(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetMenuItemRefCon2(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemRefCon2(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *MenuObj_SetMenuItemKeyGlyph(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuItemKeyGlyph(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_GetMenuItemKeyGlyph(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemKeyGlyph(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MenuObj_MacEnableMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MacEnableMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuItemIndex item;
return _res;
}
-static PyObject *MenuObj_DisableMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisableMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuItemIndex item;
return _res;
}
-static PyObject *MenuObj_IsMenuItemEnabled(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_IsMenuItemEnabled(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MenuObj_EnableMenuItemIcon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_EnableMenuItemIcon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuItemIndex item;
return _res;
}
-static PyObject *MenuObj_DisableMenuItemIcon(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisableMenuItemIcon(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuItemIndex item;
return _res;
}
-static PyObject *MenuObj_IsMenuItemIconEnabled(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_IsMenuItemIconEnabled(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetMenuItemPropertyAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemPropertyAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_ChangeMenuItemPropertyAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_ChangeMenuItemPropertyAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetMenuAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_ChangeMenuAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_ChangeMenuAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetMenuItemAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuItemAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_ChangeMenuItemAttributes(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_ChangeMenuItemAttributes(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_DisableAllMenuItems(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisableAllMenuItems(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_EnableAllMenuItems(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_EnableAllMenuItems(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_MenuHasEnabledItems(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_MenuHasEnabledItems(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_CountMenuItemsWithCommandID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CountMenuItemsWithCommandID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ItemCount _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetIndMenuItemWithCommandID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetIndMenuItemWithCommandID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_EnableMenuCommand(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_EnableMenuCommand(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuCommand commandID;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_DisableMenuCommand(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_DisableMenuCommand(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuCommand commandID;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_IsMenuCommandEnabled(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_IsMenuCommandEnabled(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetMenuCommandPropertySize(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuCommandPropertySize(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_RemoveMenuCommandProperty(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_RemoveMenuCommandProperty(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_CreateStandardFontMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CreateStandardFontMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_UpdateStandardFontMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_UpdateStandardFontMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *MenuObj_GetFontFamilyFromMenuSelection(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetFontFamilyFromMenuSelection(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *MenuObj_GetMenuID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID _rv;
return _res;
}
-static PyObject *MenuObj_GetMenuWidth(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuWidth(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *MenuObj_GetMenuHeight(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_GetMenuHeight(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *MenuObj_SetMenuID(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuID(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID menuID;
return _res;
}
-static PyObject *MenuObj_SetMenuWidth(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuWidth(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 width;
return _res;
}
-static PyObject *MenuObj_SetMenuHeight(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_SetMenuHeight(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 height;
return _res;
}
-static PyObject *MenuObj_as_Resource(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_as_Resource(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *MenuObj_AppendMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_AppendMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 data;
return _res;
}
-static PyObject *MenuObj_InsertMenu(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertMenu(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short beforeID;
return _res;
}
-static PyObject *MenuObj_InsertMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_InsertMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 itemString;
return _res;
}
-static PyObject *MenuObj_EnableMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_EnableMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt16 item;
return _res;
}
-static PyObject *MenuObj_CheckMenuItem(_self, _args)
- MenuObject *_self;
- PyObject *_args;
+static PyObject *MenuObj_CheckMenuItem(MenuObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short item;
PyMethodChain MenuObj_chain = { MenuObj_methods, NULL };
-static PyObject *MenuObj_getattr(self, name)
- MenuObject *self;
- char *name;
+static PyObject *MenuObj_getattr(MenuObject *self, char *name)
{
return Py_FindMethodInChain(&MenuObj_chain, (PyObject *)self, name);
}
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_InitProcMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_InitProcMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short resID;
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_InitMenus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_InitMenus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
}
#endif
-static PyObject *Menu_NewMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_NewMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
return _res;
}
-static PyObject *Menu_MacGetMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MacGetMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Menu_CreateNewMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_CreateNewMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *Menu_MenuKey(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MenuKey(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Menu_MenuSelect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MenuSelect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Menu_MenuChoice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MenuChoice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Menu_MenuEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MenuEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
return _res;
}
-static PyObject *Menu_GetMBarHeight(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_GetMBarHeight(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Menu_MacDrawMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MacDrawMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Menu_InvalMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_InvalMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Menu_HiliteMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_HiliteMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID menuID;
return _res;
}
-static PyObject *Menu_GetNewMBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_GetNewMBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuBarHandle _rv;
return _res;
}
-static PyObject *Menu_GetMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_GetMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuBarHandle _rv;
return _res;
}
-static PyObject *Menu_SetMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_SetMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuBarHandle mbar;
#if TARGET_API_MAC_CARBON
-static PyObject *Menu_DuplicateMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_DuplicateMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *Menu_DisposeMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_DisposeMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *Menu_GetMenuHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_GetMenuHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
return _res;
}
-static PyObject *Menu_MacDeleteMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_MacDeleteMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID menuID;
return _res;
}
-static PyObject *Menu_ClearMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_ClearMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Menu_SetMenuFlashCount(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_SetMenuFlashCount(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short count;
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_SetMenuFlash(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_SetMenuFlash(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short count;
}
#endif
-static PyObject *Menu_FlashMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_FlashMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID menuID;
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_SystemEdit(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_SystemEdit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_SystemMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_SystemMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long menuResult;
}
#endif
-static PyObject *Menu_IsMenuBarVisible(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_IsMenuBarVisible(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Menu_ShowMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_ShowMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Menu_HideMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_HideMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Menu_DeleteMCEntries(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_DeleteMCEntries(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuID menuID;
return _res;
}
-static PyObject *Menu_InitContextualMenus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_InitContextualMenus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Menu_IsShowContextualMenuClick(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_IsShowContextualMenuClick(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Menu_OpenDeskAcc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_OpenDeskAcc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 name;
}
#endif
-static PyObject *Menu_as_Menu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_as_Menu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
return _res;
}
-static PyObject *Menu_GetMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_GetMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MenuHandle _rv;
return _res;
}
-static PyObject *Menu_DeleteMenu(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_DeleteMenu(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short menuID;
return _res;
}
-static PyObject *Menu_DrawMenuBar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Menu_DrawMenuBar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
-void initMenu()
+void initMenu(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuHandle, MenuObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuHandle, MenuObj_Convert);
m = Py_InitModule("Menu", Menu_methods);
FMFontStyle = Type("FMFontStyle", "h")
includestuff = includestuff + """
+#ifdef WITHOUT_FRAMEWORKS
#include <Devices.h> /* Defines OpenDeskAcc in universal headers */
-#include <%s>""" % MACHEADERFILE + """
+#include <Menus.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(MenuHandle, MenuObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MenuHandle, MenuObj_Convert);
"""
class MyObjectDefinition(GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <QuickDraw.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GrafObj_New(GrafPtr);
/*
** Parse/generate RGB records
*/
-PyObject *QdRGB_New(itself)
- RGBColorPtr itself;
+PyObject *QdRGB_New(RGBColorPtr itself)
{
return Py_BuildValue("lll", (long)itself->red, (long)itself->green, (long)itself->blue);
}
-QdRGB_Convert(v, p_itself)
- PyObject *v;
- RGBColorPtr p_itself;
+QdRGB_Convert(PyObject *v, RGBColorPtr p_itself)
{
long red, green, blue;
** Generate FontInfo records
*/
static
-PyObject *QdFI_New(itself)
- FontInfo *itself;
+PyObject *QdFI_New(FontInfo *itself)
{
return Py_BuildValue("hhhh", itself->ascent, itself->descent,
GrafPtr ob_itself;
} GrafPortObject;
-PyObject *GrafObj_New(itself)
- GrafPtr itself;
+PyObject *GrafObj_New(GrafPtr itself)
{
GrafPortObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
it->ob_itself = itself;
return (PyObject *)it;
}
-GrafObj_Convert(v, p_itself)
- PyObject *v;
- GrafPtr *p_itself;
+GrafObj_Convert(PyObject *v, GrafPtr *p_itself)
{
#if 1
{
return 1;
}
-static void GrafObj_dealloc(self)
- GrafPortObject *self;
+static void GrafObj_dealloc(GrafPortObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
PyMethodChain GrafObj_chain = { GrafObj_methods, NULL };
-static PyObject *GrafObj_getattr(self, name)
- GrafPortObject *self;
- char *name;
+static PyObject *GrafObj_getattr(GrafPortObject *self, char *name)
{
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
BitMap *referred_bitmap;
} BitMapObject;
-PyObject *BMObj_New(itself)
- BitMapPtr itself;
+PyObject *BMObj_New(BitMapPtr itself)
{
BitMapObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
it->referred_bitmap = NULL;
return (PyObject *)it;
}
-BMObj_Convert(v, p_itself)
- PyObject *v;
- BitMapPtr *p_itself;
+BMObj_Convert(PyObject *v, BitMapPtr *p_itself)
{
if (!BMObj_Check(v))
{
return 1;
}
-static void BMObj_dealloc(self)
- BitMapObject *self;
+static void BMObj_dealloc(BitMapObject *self)
{
Py_XDECREF(self->referred_object);
if (self->referred_bitmap) free(self->referred_bitmap);
PyMem_DEL(self);
}
-static PyObject *BMObj_getdata(_self, _args)
- BitMapObject *_self;
- PyObject *_args;
+static PyObject *BMObj_getdata(BitMapObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *BMObj_putdata(_self, _args)
- BitMapObject *_self;
- PyObject *_args;
+static PyObject *BMObj_putdata(BitMapObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PyMethodChain BMObj_chain = { BMObj_methods, NULL };
-static PyObject *BMObj_getattr(self, name)
- BitMapObject *self;
- char *name;
+static PyObject *BMObj_getattr(BitMapObject *self, char *name)
{
if ( strcmp(name, "baseAddr") == 0 )
return PyInt_FromLong((long)self->ob_itself->baseAddr);
return (PyObject *)it;
}
-static void QDGA_dealloc(self)
- QDGlobalsAccessObject *self;
+static void QDGA_dealloc(QDGlobalsAccessObject *self)
{
PyMem_DEL(self);
}
static PyMethodChain QDGA_chain = { QDGA_methods, NULL };
-static PyObject *QDGA_getattr(self, name)
- QDGlobalsAccessObject *self;
- char *name;
+static PyObject *QDGA_getattr(QDGlobalsAccessObject *self, char *name)
{
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
/* ---------------- End object type QDGlobalsAccess ----------------- */
-static PyObject *Qd_MacSetPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacSetPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr port;
return _res;
}
-static PyObject *Qd_GetPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr port;
return _res;
}
-static PyObject *Qd_GrafDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GrafDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short device;
return _res;
}
-static PyObject *Qd_SetPortBits(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortBits(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMapPtr bm;
return _res;
}
-static PyObject *Qd_PortSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PortSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short width;
return _res;
}
-static PyObject *Qd_MovePortTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MovePortTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short leftGlobal;
return _res;
}
-static PyObject *Qd_SetOrigin(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetOrigin(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_SetClip(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetClip(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_GetClip(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetClip(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_ClipRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ClipRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_BackPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_BackPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern *pat__in__;
return _res;
}
-static PyObject *Qd_InitCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InitCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_MacSetCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacSetCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Cursor *crsr__in__;
return _res;
}
-static PyObject *Qd_HideCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_HideCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_MacShowCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacShowCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_ObscureCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ObscureCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_HidePen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_HidePen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_ShowPen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ShowPen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_GetPen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_GetPenState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPenState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PenState pnState__out__;
return _res;
}
-static PyObject *Qd_SetPenState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPenState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PenState *pnState__in__;
return _res;
}
-static PyObject *Qd_PenSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PenSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short width;
return _res;
}
-static PyObject *Qd_PenMode(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PenMode(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short mode;
return _res;
}
-static PyObject *Qd_PenPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PenPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern *pat__in__;
return _res;
}
-static PyObject *Qd_PenNormal(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PenNormal(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_MoveTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MoveTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_Move(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Move(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short dh;
return _res;
}
-static PyObject *Qd_MacLineTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacLineTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_Line(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Line(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short dh;
return _res;
}
-static PyObject *Qd_ForeColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ForeColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long color;
return _res;
}
-static PyObject *Qd_BackColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_BackColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long color;
return _res;
}
-static PyObject *Qd_ColorBit(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ColorBit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short whichBit;
return _res;
}
-static PyObject *Qd_MacSetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacSetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_MacOffsetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacOffsetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_MacInsetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacInsetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_SectRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SectRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_MacUnionRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacUnionRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect src1;
return _res;
}
-static PyObject *Qd_MacEqualRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacEqualRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_EmptyRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EmptyRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_MacFrameRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacFrameRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_PaintRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_EraseRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EraseRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_MacInvertRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacInvertRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_MacFillRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacFillRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FrameOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FrameOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_PaintOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_EraseOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EraseOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_InvertOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FrameRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FrameRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_PaintRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_EraseRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EraseRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_InvertRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FrameArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FrameArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_PaintArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_EraseArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EraseArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_InvertArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_NewRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_NewRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *Qd_OpenRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OpenRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_CloseRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CloseRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle dstRgn;
return _res;
}
-static PyObject *Qd_BitMapToRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_BitMapToRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qd_DisposeRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposeRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacCopyRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacCopyRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgn;
return _res;
}
-static PyObject *Qd_SetEmptyRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetEmptyRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacSetRectRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacSetRectRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_RectRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RectRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacOffsetRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacOffsetRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_InsetRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InsetRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_SectRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SectRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_MacUnionRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacUnionRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_DiffRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DiffRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_MacXorRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacXorRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_RectInRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RectInRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_MacEqualRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacEqualRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_EmptyRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EmptyRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_MacFrameRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacFrameRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacPaintRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacPaintRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_EraseRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EraseRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacInvertRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacInvertRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MacFillRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacFillRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_ScrollRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ScrollRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_CopyBits(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyBits(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMapPtr srcBits;
return _res;
}
-static PyObject *Qd_CopyMask(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyMask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMapPtr srcBits;
return _res;
}
-static PyObject *Qd_OpenPicture(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OpenPicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *Qd_PicComment(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PicComment(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short kind;
return _res;
}
-static PyObject *Qd_ClosePicture(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ClosePicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_DrawPicture(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DrawPicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle myPicture;
return _res;
}
-static PyObject *Qd_KillPicture(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_KillPicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle myPicture;
return _res;
}
-static PyObject *Qd_OpenPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OpenPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle _rv;
return _res;
}
-static PyObject *Qd_ClosePoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ClosePoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_KillPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_KillPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_OffsetPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OffsetPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_FramePoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FramePoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_PaintPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_ErasePoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ErasePoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_InvertPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_FillPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_SetPt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_LocalToGlobal(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_LocalToGlobal(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_GlobalToLocal(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GlobalToLocal(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_Random(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Random(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_MacGetPixel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacGetPixel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_ScalePt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ScalePt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_MapPt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MapPt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *Qd_MapRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MapRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_MapRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MapRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_MapPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MapPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_StdBits(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_StdBits(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMapPtr srcBits;
return _res;
}
-static PyObject *Qd_AddPt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_AddPt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point src;
return _res;
}
-static PyObject *Qd_EqualPt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EqualPt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_MacPtInRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacPtInRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_Pt2Rect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Pt2Rect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt1;
return _res;
}
-static PyObject *Qd_PtToAngle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PtToAngle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_SubPt(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SubPt(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point src;
return _res;
}
-static PyObject *Qd_PtInRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PtInRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_NewPixMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_NewPixMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle _rv;
return _res;
}
-static PyObject *Qd_DisposePixMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposePixMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qd_CopyPixMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyPixMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle srcPM;
return _res;
}
-static PyObject *Qd_NewPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_NewPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle _rv;
return _res;
}
-static PyObject *Qd_DisposePixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposePixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle pp;
return _res;
}
-static PyObject *Qd_CopyPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle srcPP;
return _res;
}
-static PyObject *Qd_PenPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PenPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle pp;
return _res;
}
-static PyObject *Qd_BackPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_BackPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle pp;
return _res;
}
-static PyObject *Qd_GetPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle _rv;
return _res;
}
-static PyObject *Qd_MakeRGBPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MakeRGBPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle pp;
return _res;
}
-static PyObject *Qd_FillCRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillCOval(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCOval(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillCRoundRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCRoundRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillCArc(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCArc(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillCRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_FillCPoly(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillCPoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PolyHandle poly;
return _res;
}
-static PyObject *Qd_RGBForeColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RGBForeColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_RGBBackColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RGBBackColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_SetCPixel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetCPixel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_SetPortPix(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortPix(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qd_GetCPixel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetCPixel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_GetForeColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetForeColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_GetBackColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetBackColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_OpColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OpColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_HiliteColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_HiliteColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor color;
return _res;
}
-static PyObject *Qd_DisposeCTable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposeCTable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CTabHandle cTable;
return _res;
}
-static PyObject *Qd_GetCTable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetCTable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CTabHandle _rv;
return _res;
}
-static PyObject *Qd_GetCCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetCCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CCrsrHandle _rv;
return _res;
}
-static PyObject *Qd_SetCCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetCCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CCrsrHandle cCrsr;
return _res;
}
-static PyObject *Qd_AllocCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_AllocCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_DisposeCCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposeCCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CCrsrHandle cCrsr;
return _res;
}
-static PyObject *Qd_GetMaxDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetMaxDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_GetCTSeed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetCTSeed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qd_GetDeviceList(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetDeviceList(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_GetMainDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetMainDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_GetNextDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetNextDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_TestDeviceAttribute(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TestDeviceAttribute(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_SetDeviceAttribute(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetDeviceAttribute(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle gdh;
return _res;
}
-static PyObject *Qd_InitGDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InitGDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short qdRefNum;
return _res;
}
-static PyObject *Qd_NewGDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_NewGDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_DisposeGDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposeGDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle gdh;
return _res;
}
-static PyObject *Qd_SetGDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetGDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle gd;
return _res;
}
-static PyObject *Qd_GetGDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetGDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *Qd_Color2Index(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Color2Index(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qd_Index2Color(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_Index2Color(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long index;
return _res;
}
-static PyObject *Qd_InvertColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RGBColor myColor;
return _res;
}
-static PyObject *Qd_RealColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RealColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_GetSubTable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetSubTable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CTabHandle myColors;
return _res;
}
-static PyObject *Qd_MakeITable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MakeITable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CTabHandle cTabH;
return _res;
}
-static PyObject *Qd_SetClientID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetClientID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short id;
return _res;
}
-static PyObject *Qd_ProtectEntry(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ProtectEntry(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short index;
return _res;
}
-static PyObject *Qd_ReserveEntry(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ReserveEntry(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short index;
return _res;
}
-static PyObject *Qd_QDError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_QDError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_CopyDeepMask(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyDeepMask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMapPtr srcBits;
return _res;
}
-static PyObject *Qd_GetPattern(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPattern(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PatHandle _rv;
return _res;
}
-static PyObject *Qd_MacGetCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacGetCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CursHandle _rv;
return _res;
}
-static PyObject *Qd_GetPicture(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *Qd_DeltaPoint(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DeltaPoint(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qd_ShieldCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ShieldCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect shieldRect;
return _res;
}
-static PyObject *Qd_ScreenRes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ScreenRes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short scrnHRes;
return _res;
}
-static PyObject *Qd_GetIndPattern(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetIndPattern(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern thePat__out__;
return _res;
}
-static PyObject *Qd_SlopeFromAngle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SlopeFromAngle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *Qd_AngleFromSlope(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_AngleFromSlope(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortPixMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPixMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortBitMapForCopyBits(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortBitMapForCopyBits(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
const BitMap * _rv;
return _res;
}
-static PyObject *Qd_GetPortBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortForeColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortForeColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortBackColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortBackColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortOpColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortOpColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortHiliteColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortHiliteColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortTextFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortTextFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortTextFace(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortTextFace(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Style _rv;
return _res;
}
-static PyObject *Qd_GetPortTextMode(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortTextMode(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortTextSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortTextSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortChExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortChExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortFracHPenLocation(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortFracHPenLocation(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortSpExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortSpExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *Qd_GetPortPenVisibility(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPenVisibility(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetPortVisibleRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortVisibleRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortClipRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortClipRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortBackPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortBackPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortPenPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPenPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortFillPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortFillPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle _rv;
return _res;
}
-static PyObject *Qd_GetPortPenSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPenSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPortPenMode(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPenMode(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *Qd_GetPortPenLocation(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPortPenLocation(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_IsPortRegionBeingDefined(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_IsPortRegionBeingDefined(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_IsPortPictureBeingDefined(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_IsPortPictureBeingDefined(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_IsPortOffscreen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_IsPortOffscreen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_IsPortColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_IsPortColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *Qd_SetPortBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortOpColor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortOpColor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortVisibleRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortVisibleRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortClipRegion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortClipRegion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortPenPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortPenPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortBackPixPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortBackPixPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortPenSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortPenSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortPenMode(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortPenMode(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_SetPortFracHPenLocation(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPortFracHPenLocation(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_GetPixBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPixBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pixMap;
return _res;
}
-static PyObject *Qd_GetPixDepth(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPixDepth(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetQDGlobalsRandomSeed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsRandomSeed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qd_GetQDGlobalsScreenBits(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsScreenBits(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
BitMap screenBits;
return _res;
}
-static PyObject *Qd_GetQDGlobalsArrow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsArrow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Cursor arrow__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsDarkGray(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsDarkGray(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern dkGray__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsLightGray(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsLightGray(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern ltGray__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsGray(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsGray(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern gray__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsBlack(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsBlack(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern black__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsWhite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsWhite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Pattern white__out__;
return _res;
}
-static PyObject *Qd_GetQDGlobalsThePort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetQDGlobalsThePort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
return _res;
}
-static PyObject *Qd_SetQDGlobalsRandomSeed(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetQDGlobalsRandomSeed(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long randomSeed;
return _res;
}
-static PyObject *Qd_SetQDGlobalsArrow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetQDGlobalsArrow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Cursor *arrow__in__;
return _res;
}
-static PyObject *Qd_GetRegionBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetRegionBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle region;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_IsRegionRectangular(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_IsRegionRectangular(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_CreateNewPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CreateNewPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_DisposePort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DisposePort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
#if TARGET_API_MAC_CARBON
-static PyObject *Qd_SetQDError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetQDError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr err;
}
#endif
-static PyObject *Qd_QDIsPortBuffered(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_QDIsPortBuffered(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_QDIsPortBufferDirty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_QDIsPortBufferDirty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_QDFlushPortBuffer(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_QDFlushPortBuffer(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qd_TextFont(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TextFont(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short font;
return _res;
}
-static PyObject *Qd_TextFace(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TextFace(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
StyleParameter face;
return _res;
}
-static PyObject *Qd_TextMode(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TextMode(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short mode;
return _res;
}
-static PyObject *Qd_TextSize(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TextSize(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short size;
return _res;
}
-static PyObject *Qd_SpaceExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SpaceExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed extra;
return _res;
}
-static PyObject *Qd_DrawChar(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DrawChar(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CharParameter ch;
return _res;
}
-static PyObject *Qd_DrawString(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DrawString(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 s;
return _res;
}
-static PyObject *Qd_MacDrawText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_MacDrawText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *textBuf__in__;
return _res;
}
-static PyObject *Qd_CharWidth(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CharWidth(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_StringWidth(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_StringWidth(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_TextWidth(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_TextWidth(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Qd_GetFontInfo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetFontInfo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
FontInfo info;
return _res;
}
-static PyObject *Qd_CharExtra(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CharExtra(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed extra;
return _res;
}
-static PyObject *Qd_SetPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr thePort;
return _res;
}
-static PyObject *Qd_GetCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CursHandle _rv;
return _res;
}
-static PyObject *Qd_SetCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Cursor *crsr__in__;
return _res;
}
-static PyObject *Qd_ShowCursor(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_ShowCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qd_LineTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_LineTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short h;
return _res;
}
-static PyObject *Qd_SetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_OffsetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OffsetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_InsetRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InsetRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_UnionRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_UnionRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect src1;
return _res;
}
-static PyObject *Qd_EqualRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EqualRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_FrameRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FrameRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_InvertRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_FillRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *Qd_CopyRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_CopyRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgn;
return _res;
}
-static PyObject *Qd_SetRectRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_SetRectRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_OffsetRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_OffsetRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_UnionRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_UnionRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_XorRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_XorRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle srcRgnA;
return _res;
}
-static PyObject *Qd_EqualRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_EqualRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_FrameRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FrameRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_PaintRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PaintRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_InvertRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_InvertRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_FillRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_FillRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle rgn;
return _res;
}
-static PyObject *Qd_GetPixel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_GetPixel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_PtInRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_PtInRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qd_DrawText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_DrawText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *textBuf__in__;
return _res;
}
-static PyObject *Qd_BitMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_BitMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Qd_RawBitMap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qd_RawBitMap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
/* Like BMObj_New, but the original bitmap data structure is copied (and
** released when the object is released)
*/
-PyObject *BMObj_NewCopied(itself)
- BitMapPtr itself;
+PyObject *BMObj_NewCopied(BitMapPtr itself)
{
BitMapObject *it;
BitMapPtr itself_copy;
-void initQd()
+void initQd(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(BMObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(BMObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(GrafObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GrafObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(QdRGB_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(QdRGB_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(BitMapPtr, BMObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(BitMapPtr, BMObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(GrafPtr, GrafObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GrafPtr, GrafObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(RGBColorPtr, QdRGB_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(RGBColorPtr, QdRGB_Convert);
m = Py_InitModule("Qd", Qd_methods);
PenState_ptr = StructInputBufferType('PenState')
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <QuickDraw.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GrafObj_New(GrafPtr);
/*
** Parse/generate RGB records
*/
-PyObject *QdRGB_New(itself)
- RGBColorPtr itself;
+PyObject *QdRGB_New(RGBColorPtr itself)
{
return Py_BuildValue("lll", (long)itself->red, (long)itself->green, (long)itself->blue);
}
-QdRGB_Convert(v, p_itself)
- PyObject *v;
- RGBColorPtr p_itself;
+QdRGB_Convert(PyObject *v, RGBColorPtr p_itself)
{
long red, green, blue;
** Generate FontInfo records
*/
static
-PyObject *QdFI_New(itself)
- FontInfo *itself;
+PyObject *QdFI_New(FontInfo *itself)
{
return Py_BuildValue("hhhh", itself->ascent, itself->descent,
/* Like BMObj_New, but the original bitmap data structure is copied (and
** released when the object is released)
*/
-PyObject *BMObj_NewCopied(itself)
- BitMapPtr itself;
+PyObject *BMObj_NewCopied(BitMapPtr itself)
{
BitMapObject *it;
BitMapPtr itself_copy;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(BMObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(BMObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(GrafObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GrafObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(QdRGB_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(QdRGB_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(BitMapPtr, BMObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(BitMapPtr, BMObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(GrafPtr, GrafObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GrafPtr, GrafObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(RGBColorPtr, QdRGB_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(RGBColorPtr, QdRGB_Convert);
"""
## not yet...
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <QDOffscreen.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GWorldObj_New(GWorldPtr);
GWorldPtr ob_itself;
} GWorldObject;
-PyObject *GWorldObj_New(itself)
- GWorldPtr itself;
+PyObject *GWorldObj_New(GWorldPtr itself)
{
GWorldObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
it->ob_itself = itself;
return (PyObject *)it;
}
-GWorldObj_Convert(v, p_itself)
- PyObject *v;
- GWorldPtr *p_itself;
+GWorldObj_Convert(PyObject *v, GWorldPtr *p_itself)
{
if (!GWorldObj_Check(v))
{
return 1;
}
-static void GWorldObj_dealloc(self)
- GWorldObject *self;
+static void GWorldObj_dealloc(GWorldObject *self)
{
DisposeGWorld(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *GWorldObj_GetGWorldDevice(_self, _args)
- GWorldObject *_self;
- PyObject *_args;
+static PyObject *GWorldObj_GetGWorldDevice(GWorldObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle _rv;
return _res;
}
-static PyObject *GWorldObj_GetGWorldPixMap(_self, _args)
- GWorldObject *_self;
- PyObject *_args;
+static PyObject *GWorldObj_GetGWorldPixMap(GWorldObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle _rv;
return _res;
}
-static PyObject *GWorldObj_as_GrafPtr(_self, _args)
- GWorldObject *_self;
- PyObject *_args;
+static PyObject *GWorldObj_as_GrafPtr(GWorldObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr _rv;
PyMethodChain GWorldObj_chain = { GWorldObj_methods, NULL };
-static PyObject *GWorldObj_getattr(self, name)
- GWorldObject *self;
- char *name;
+static PyObject *GWorldObj_getattr(GWorldObject *self, char *name)
{
return Py_FindMethodInChain(&GWorldObj_chain, (PyObject *)self, name);
}
/* --------------------- End object type GWorld --------------------- */
-static PyObject *Qdoffs_NewGWorld(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_NewGWorld(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
QDErr _err;
return _res;
}
-static PyObject *Qdoffs_LockPixels(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_LockPixels(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qdoffs_UnlockPixels(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_UnlockPixels(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qdoffs_UpdateGWorld(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_UpdateGWorld(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GWorldFlags _rv;
return _res;
}
-static PyObject *Qdoffs_GetGWorld(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_GetGWorld(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qdoffs_SetGWorld(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_SetGWorld(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *Qdoffs_CTabChanged(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_CTabChanged(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CTabHandle ctab;
return _res;
}
-static PyObject *Qdoffs_PixPatChanged(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_PixPatChanged(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle ppat;
return _res;
}
-static PyObject *Qdoffs_PortChanged(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_PortChanged(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr port;
return _res;
}
-static PyObject *Qdoffs_GDeviceChanged(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_GDeviceChanged(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GDHandle gdh;
return _res;
}
-static PyObject *Qdoffs_AllowPurgePixels(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_AllowPurgePixels(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qdoffs_NoPurgePixels(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_NoPurgePixels(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qdoffs_GetPixelsState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_GetPixelsState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GWorldFlags _rv;
return _res;
}
-static PyObject *Qdoffs_SetPixelsState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_SetPixelsState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle pm;
return _res;
}
-static PyObject *Qdoffs_GetPixRowBytes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_GetPixRowBytes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qdoffs_NewScreenBuffer(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_NewScreenBuffer(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
QDErr _err;
return _res;
}
-static PyObject *Qdoffs_DisposeScreenBuffer(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_DisposeScreenBuffer(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle offscreenPixMap;
return _res;
}
-static PyObject *Qdoffs_QDDone(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_QDDone(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qdoffs_OffscreenVersion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_OffscreenVersion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Qdoffs_NewTempScreenBuffer(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_NewTempScreenBuffer(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
QDErr _err;
return _res;
}
-static PyObject *Qdoffs_PixMap32Bit(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_PixMap32Bit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Qdoffs_GetPixMapBytes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_GetPixMapBytes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Qdoffs_PutPixMapBytes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qdoffs_PutPixMapBytes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
-void initQdoffs()
+void initQdoffs(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(GWorldObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GWorldObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(GWorldPtr, GWorldObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GWorldPtr, GWorldObj_Convert);
m = Py_InitModule("Qdoffs", Qdoffs_methods);
QDErr = OSErrType("QDErr", 'h')
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <QDOffscreen.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GWorldObj_New(GWorldPtr);
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(GWorldObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GWorldObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(GWorldPtr, GWorldObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GWorldPtr, GWorldObj_Convert);
"""
class MyObjectDefinition(GlobalObjectDefinition):
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Movies.h>
+#else
+/* #include <Carbon/Carbon.h> */
+#include <QuickTime/QuickTime.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_TrackObj_New(Track);
** Parse/generate time records
*/
static PyObject *
-QtTimeRecord_New(itself)
- TimeRecord *itself;
+QtTimeRecord_New(TimeRecord *itself)
{
if (itself->base)
return Py_BuildValue("O&lO&", PyMac_Buildwide, &itself->value, itself->scale,
}
static int
-QtTimeRecord_Convert(v, p_itself)
- PyObject *v;
- TimeRecord *p_itself;
+QtTimeRecord_Convert(PyObject *v, TimeRecord *p_itself)
{
PyObject *base = NULL;
if( !PyArg_ParseTuple(v, "O&l|O", PyMac_Getwide, &p_itself->value, &p_itself->scale,
MovieController ob_itself;
} MovieControllerObject;
-PyObject *MovieCtlObj_New(itself)
- MovieController itself;
+PyObject *MovieCtlObj_New(MovieController itself)
{
MovieControllerObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-MovieCtlObj_Convert(v, p_itself)
- PyObject *v;
- MovieController *p_itself;
+MovieCtlObj_Convert(PyObject *v, MovieController *p_itself)
{
if (!MovieCtlObj_Check(v))
{
return 1;
}
-static void MovieCtlObj_dealloc(self)
- MovieControllerObject *self;
+static void MovieCtlObj_dealloc(MovieControllerObject *self)
{
DisposeMovieController(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *MovieCtlObj_MCSetMovie(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetMovie(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetIndMovie(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetIndMovie(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCRemoveAllMovies(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCRemoveAllMovies(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCRemoveAMovie(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCRemoveAMovie(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCRemoveMovie(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCRemoveMovie(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCIsPlayerEvent(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCIsPlayerEvent(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCDoAction(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCDoAction(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetControllerAttached(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetControllerAttached(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCIsControllerAttached(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCIsControllerAttached(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetControllerPort(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetControllerPort(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetControllerPort(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetControllerPort(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetVisible(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetVisible(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetVisible(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetVisible(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetControllerBoundsRect(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetControllerBoundsRect(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetControllerBoundsRect(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetControllerBoundsRect(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetControllerBoundsRgn(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetControllerBoundsRgn(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetWindowRgn(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetWindowRgn(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCMovieChanged(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCMovieChanged(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetDuration(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetDuration(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetCurrentTime(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetCurrentTime(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCNewAttachedController(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCNewAttachedController(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCDraw(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCDraw(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCActivate(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCActivate(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCIdle(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCIdle(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCKey(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCKey(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCClick(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCClick(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCEnableEditing(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCEnableEditing(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCIsEditingEnabled(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCIsEditingEnabled(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCCopy(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCCopy(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCCut(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCCut(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCPaste(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCPaste(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCClear(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCClear(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCUndo(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCUndo(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCPositionController(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCPositionController(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetControllerInfo(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetControllerInfo(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetClip(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetClip(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetClip(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetClip(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCDrawBadge(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCDrawBadge(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCSetUpEditMenu(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCSetUpEditMenu(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetMenuString(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetMenuString(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCPtInController(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCPtInController(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCInvalidate(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCInvalidate(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCAdjustCursor(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCAdjustCursor(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *MovieCtlObj_MCGetInterfaceElement(_self, _args)
- MovieControllerObject *_self;
- PyObject *_args;
+static PyObject *MovieCtlObj_MCGetInterfaceElement(MovieControllerObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
PyMethodChain MovieCtlObj_chain = { MovieCtlObj_methods, NULL };
-static PyObject *MovieCtlObj_getattr(self, name)
- MovieControllerObject *self;
- char *name;
+static PyObject *MovieCtlObj_getattr(MovieControllerObject *self, char *name)
{
return Py_FindMethodInChain(&MovieCtlObj_chain, (PyObject *)self, name);
}
TimeBase ob_itself;
} TimeBaseObject;
-PyObject *TimeBaseObj_New(itself)
- TimeBase itself;
+PyObject *TimeBaseObj_New(TimeBase itself)
{
TimeBaseObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-TimeBaseObj_Convert(v, p_itself)
- PyObject *v;
- TimeBase *p_itself;
+TimeBaseObj_Convert(PyObject *v, TimeBase *p_itself)
{
if (!TimeBaseObj_Check(v))
{
return 1;
}
-static void TimeBaseObj_dealloc(self)
- TimeBaseObject *self;
+static void TimeBaseObj_dealloc(TimeBaseObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
}
-static PyObject *TimeBaseObj_DisposeTimeBase(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_DisposeTimeBase(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord tr;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseValue(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseValue(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue t;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseRate(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseRate(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseRate(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseRate(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed r;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseStartTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseStartTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseStartTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseStartTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord tr;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseStopTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseStopTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseStopTime(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseStopTime(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord tr;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseFlags(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseFlags(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseFlags(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseFlags(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long timeBaseFlags;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseMasterTimeBase(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseMasterTimeBase(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeBase master;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseMasterTimeBase(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseMasterTimeBase(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeBase _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseMasterClock(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseMasterClock(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component clockMeister;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseMasterClock(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseMasterClock(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentInstance _rv;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseStatus(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseStatus(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TimeBaseObj_SetTimeBaseZero(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_SetTimeBaseZero(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord zero;
return _res;
}
-static PyObject *TimeBaseObj_GetTimeBaseEffectiveRate(_self, _args)
- TimeBaseObject *_self;
- PyObject *_args;
+static PyObject *TimeBaseObj_GetTimeBaseEffectiveRate(TimeBaseObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
PyMethodChain TimeBaseObj_chain = { TimeBaseObj_methods, NULL };
-static PyObject *TimeBaseObj_getattr(self, name)
- TimeBaseObject *self;
- char *name;
+static PyObject *TimeBaseObj_getattr(TimeBaseObject *self, char *name)
{
return Py_FindMethodInChain(&TimeBaseObj_chain, (PyObject *)self, name);
}
UserData ob_itself;
} UserDataObject;
-PyObject *UserDataObj_New(itself)
- UserData itself;
+PyObject *UserDataObj_New(UserData itself)
{
UserDataObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-UserDataObj_Convert(v, p_itself)
- PyObject *v;
- UserData *p_itself;
+UserDataObj_Convert(PyObject *v, UserData *p_itself)
{
if (!UserDataObj_Check(v))
{
return 1;
}
-static void UserDataObj_dealloc(self)
- UserDataObject *self;
+static void UserDataObj_dealloc(UserDataObject *self)
{
DisposeUserData(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *UserDataObj_GetUserData(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_GetUserData(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_AddUserData(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_AddUserData(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_RemoveUserData(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_RemoveUserData(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_CountUserDataType(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_CountUserDataType(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *UserDataObj_GetNextUserDataType(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_GetNextUserDataType(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *UserDataObj_AddUserDataText(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_AddUserDataText(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_GetUserDataText(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_GetUserDataText(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_RemoveUserDataText(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_RemoveUserDataText(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *UserDataObj_PutUserDataIntoHandle(_self, _args)
- UserDataObject *_self;
- PyObject *_args;
+static PyObject *UserDataObj_PutUserDataIntoHandle(UserDataObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain UserDataObj_chain = { UserDataObj_methods, NULL };
-static PyObject *UserDataObj_getattr(self, name)
- UserDataObject *self;
- char *name;
+static PyObject *UserDataObj_getattr(UserDataObject *self, char *name)
{
return Py_FindMethodInChain(&UserDataObj_chain, (PyObject *)self, name);
}
Media ob_itself;
} MediaObject;
-PyObject *MediaObj_New(itself)
- Media itself;
+PyObject *MediaObj_New(Media itself)
{
MediaObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-MediaObj_Convert(v, p_itself)
- PyObject *v;
- Media *p_itself;
+MediaObj_Convert(PyObject *v, Media *p_itself)
{
if (!MediaObj_Check(v))
{
return 1;
}
-static void MediaObj_dealloc(self)
- MediaObject *self;
+static void MediaObj_dealloc(MediaObject *self)
{
DisposeTrackMedia(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *MediaObj_LoadMediaIntoRam(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_LoadMediaIntoRam(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaTrack(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaTrack(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaCreationTime(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaCreationTime(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaModificationTime(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaModificationTime(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaTimeScale(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaTimeScale(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeScale _rv;
return _res;
}
-static PyObject *MediaObj_SetMediaTimeScale(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaTimeScale(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeScale timeScale;
return _res;
}
-static PyObject *MediaObj_GetMediaDuration(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDuration(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaLanguage(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaLanguage(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *MediaObj_SetMediaLanguage(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaLanguage(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short language;
return _res;
}
-static PyObject *MediaObj_GetMediaQuality(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaQuality(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *MediaObj_SetMediaQuality(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaQuality(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short quality;
return _res;
}
-static PyObject *MediaObj_GetMediaHandlerDescription(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaHandlerDescription(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSType mediaType;
return _res;
}
-static PyObject *MediaObj_GetMediaUserData(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaUserData(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UserData _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaHandler(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaHandler(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MediaHandler _rv;
return _res;
}
-static PyObject *MediaObj_SetMediaHandler(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaHandler(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_BeginMediaEdits(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_BeginMediaEdits(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_EndMediaEdits(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_EndMediaEdits(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaDefaultDataRefIndex(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaDefaultDataRefIndex(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaDataHandlerDescription(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataHandlerDescription(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short index;
return _res;
}
-static PyObject *MediaObj_GetMediaDataHandler(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataHandler(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
DataHandler _rv;
return _res;
}
-static PyObject *MediaObj_SetMediaDataHandler(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaDataHandler(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaSampleDescriptionCount(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSampleDescriptionCount(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaSampleDescription(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSampleDescription(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long index;
return _res;
}
-static PyObject *MediaObj_SetMediaSampleDescription(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaSampleDescription(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaSampleCount(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSampleCount(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaSyncSampleCount(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSyncSampleCount(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MediaObj_SampleNumToMediaTime(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SampleNumToMediaTime(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long logicalSampleNum;
return _res;
}
-static PyObject *MediaObj_MediaTimeToSampleNum(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_MediaTimeToSampleNum(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue time;
return _res;
}
-static PyObject *MediaObj_AddMediaSample(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_AddMediaSample(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_AddMediaSampleReference(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_AddMediaSampleReference(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaSample(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSample(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaSampleReference(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaSampleReference(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaPreferredChunkSize(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaPreferredChunkSize(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaPreferredChunkSize(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaPreferredChunkSize(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaShadowSync(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaShadowSync(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaShadowSync(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaShadowSync(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaDataSize(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataSize(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MediaObj_GetMediaDataSize64(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataSize64(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaNextInterestingTime(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaNextInterestingTime(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short interestingTimeFlags;
return _res;
}
-static PyObject *MediaObj_GetMediaDataRef(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataRef(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaDataRef(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaDataRef(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaDataRefAttributes(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaDataRefAttributes(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_AddMediaDataRef(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_AddMediaDataRef(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_GetMediaDataRefCount(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaDataRefCount(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MediaObj_SetMediaPlayHints(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_SetMediaPlayHints(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long flags;
return _res;
}
-static PyObject *MediaObj_GetMediaPlayHints(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaPlayHints(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long flags;
return _res;
}
-static PyObject *MediaObj_GetMediaNextInterestingTimeOnly(_self, _args)
- MediaObject *_self;
- PyObject *_args;
+static PyObject *MediaObj_GetMediaNextInterestingTimeOnly(MediaObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short interestingTimeFlags;
PyMethodChain MediaObj_chain = { MediaObj_methods, NULL };
-static PyObject *MediaObj_getattr(self, name)
- MediaObject *self;
- char *name;
+static PyObject *MediaObj_getattr(MediaObject *self, char *name)
{
return Py_FindMethodInChain(&MediaObj_chain, (PyObject *)self, name);
}
Track ob_itself;
} TrackObject;
-PyObject *TrackObj_New(itself)
- Track itself;
+PyObject *TrackObj_New(Track itself)
{
TrackObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-TrackObj_Convert(v, p_itself)
- PyObject *v;
- Track *p_itself;
+TrackObj_Convert(PyObject *v, Track *p_itself)
{
if (!TrackObj_Check(v))
{
return 1;
}
-static void TrackObj_dealloc(self)
- TrackObject *self;
+static void TrackObj_dealloc(TrackObject *self)
{
DisposeMovieTrack(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *TrackObj_LoadTrackIntoRam(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_LoadTrackIntoRam(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_GetTrackPict(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackPict(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackClipRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackClipRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackClipRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackClipRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle theClip;
return _res;
}
-static PyObject *TrackObj_GetTrackDisplayBoundsRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackDisplayBoundsRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackMovieBoundsRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackMovieBoundsRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackBoundsRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackBoundsRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackMatte(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackMatte(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackMatte(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackMatte(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle theMatte;
return _res;
}
-static PyObject *TrackObj_GetTrackID(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackID(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackMovie(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackMovie(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackCreationTime(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackCreationTime(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackModificationTime(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackModificationTime(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackEnabled(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackEnabled(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackEnabled(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackEnabled(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean isEnabled;
return _res;
}
-static PyObject *TrackObj_GetTrackUsage(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackUsage(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackUsage(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackUsage(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long usage;
return _res;
}
-static PyObject *TrackObj_GetTrackDuration(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackDuration(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackOffset(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackOffset(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackOffset(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackOffset(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue movieOffsetTime;
return _res;
}
-static PyObject *TrackObj_GetTrackLayer(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackLayer(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackLayer(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackLayer(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short layer;
return _res;
}
-static PyObject *TrackObj_GetTrackAlternate(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackAlternate(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackAlternate(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackAlternate(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track alternateT;
return _res;
}
-static PyObject *TrackObj_GetTrackVolume(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackVolume(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackVolume(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackVolume(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short volume;
return _res;
}
-static PyObject *TrackObj_GetTrackDimensions(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackDimensions(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed width;
return _res;
}
-static PyObject *TrackObj_SetTrackDimensions(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackDimensions(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed width;
return _res;
}
-static PyObject *TrackObj_GetTrackUserData(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackUserData(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UserData _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackSoundLocalizationSettings(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackSoundLocalizationSettings(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_SetTrackSoundLocalizationSettings(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackSoundLocalizationSettings(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_NewTrackMedia(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_NewTrackMedia(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Media _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackMedia(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackMedia(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Media _rv;
return _res;
}
-static PyObject *TrackObj_InsertMediaIntoTrack(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_InsertMediaIntoTrack(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_InsertTrackSegment(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_InsertTrackSegment(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_InsertEmptyTrackSegment(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_InsertEmptyTrackSegment(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_DeleteTrackSegment(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_DeleteTrackSegment(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_ScaleTrackSegment(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_ScaleTrackSegment(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_IsScrapMovie(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_IsScrapMovie(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
return _res;
}
-static PyObject *TrackObj_CopyTrackSettings(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_CopyTrackSettings(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_AddEmptyTrackToMovie(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_AddEmptyTrackToMovie(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_AddTrackReference(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_AddTrackReference(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_DeleteTrackReference(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_DeleteTrackReference(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_SetTrackReference(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackReference(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_GetTrackReference(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackReference(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *TrackObj_GetNextTrackReferenceType(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetNextTrackReferenceType(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSType _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackReferenceCount(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackReferenceCount(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackEditRate(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackEditRate(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackDataSize(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackDataSize(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackDataSize64(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackDataSize64(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TrackObj_PtInTrack(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_PtInTrack(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackNextInterestingTime(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackNextInterestingTime(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short interestingTimeFlags;
return _res;
}
-static PyObject *TrackObj_GetTrackSegmentDisplayBoundsRgn(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackSegmentDisplayBoundsRgn(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *TrackObj_GetTrackStatus(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackStatus(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *TrackObj_SetTrackLoadSettings(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_SetTrackLoadSettings(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue preloadTime;
return _res;
}
-static PyObject *TrackObj_GetTrackLoadSettings(_self, _args)
- TrackObject *_self;
- PyObject *_args;
+static PyObject *TrackObj_GetTrackLoadSettings(TrackObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue preloadTime;
PyMethodChain TrackObj_chain = { TrackObj_methods, NULL };
-static PyObject *TrackObj_getattr(self, name)
- TrackObject *self;
- char *name;
+static PyObject *TrackObj_getattr(TrackObject *self, char *name)
{
return Py_FindMethodInChain(&TrackObj_chain, (PyObject *)self, name);
}
Movie ob_itself;
} MovieObject;
-PyObject *MovieObj_New(itself)
- Movie itself;
+PyObject *MovieObj_New(Movie itself)
{
MovieObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-MovieObj_Convert(v, p_itself)
- PyObject *v;
- Movie *p_itself;
+MovieObj_Convert(PyObject *v, Movie *p_itself)
{
if (!MovieObj_Check(v))
{
return 1;
}
-static void MovieObj_dealloc(self)
- MovieObject *self;
+static void MovieObj_dealloc(MovieObject *self)
{
DisposeMovie(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *MovieObj_MoviesTask(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_MoviesTask(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long maxMilliSecToUse;
return _res;
}
-static PyObject *MovieObj_PrerollMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PrerollMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_AbortPrePrerollMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_AbortPrePrerollMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr err;
return _res;
}
-static PyObject *MovieObj_LoadMovieIntoRam(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_LoadMovieIntoRam(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_SetMovieActive(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieActive(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean active;
return _res;
}
-static PyObject *MovieObj_GetMovieActive(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieActive(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MovieObj_StartMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_StartMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_StopMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_StopMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_GoToBeginningOfMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GoToBeginningOfMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_GoToEndOfMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GoToEndOfMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_IsMovieDone(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_IsMovieDone(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MovieObj_GetMoviePreviewMode(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePreviewMode(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MovieObj_SetMoviePreviewMode(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePreviewMode(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean usePreview;
return _res;
}
-static PyObject *MovieObj_ShowMoviePoster(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_ShowMoviePoster(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_GetMovieTimeBase(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieTimeBase(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeBase _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieMasterTimeBase(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieMasterTimeBase(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeBase tb;
return _res;
}
-static PyObject *MovieObj_SetMovieMasterClock(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieMasterClock(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component clockMeister;
return _res;
}
-static PyObject *MovieObj_GetMovieGWorld(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieGWorld(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *MovieObj_SetMovieGWorld(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieGWorld(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr port;
return _res;
}
-static PyObject *MovieObj_GetMovieNaturalBoundsRect(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieNaturalBoundsRect(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect naturalBounds;
return _res;
}
-static PyObject *MovieObj_GetNextTrackForCompositing(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetNextTrackForCompositing(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_GetPrevTrackForCompositing(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetPrevTrackForCompositing(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_GetMoviePict(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePict(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *MovieObj_GetMoviePosterPict(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePosterPict(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *MovieObj_UpdateMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_UpdateMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_InvalidateMovieRegion(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_InvalidateMovieRegion(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetMovieBox(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieBox(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect boxRect;
return _res;
}
-static PyObject *MovieObj_SetMovieBox(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieBox(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect boxRect;
return _res;
}
-static PyObject *MovieObj_GetMovieDisplayClipRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDisplayClipRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieDisplayClipRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieDisplayClipRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle theClip;
return _res;
}
-static PyObject *MovieObj_GetMovieClipRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieClipRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieClipRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieClipRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle theClip;
return _res;
}
-static PyObject *MovieObj_GetMovieDisplayBoundsRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDisplayBoundsRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieBoundsRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieBoundsRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieObj_PutMovieIntoHandle(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PutMovieIntoHandle(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_PutMovieIntoDataFork(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PutMovieIntoDataFork(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_PutMovieIntoDataFork64(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PutMovieIntoDataFork64(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetMovieCreationTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieCreationTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieModificationTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieModificationTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
unsigned long _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieTimeScale(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieTimeScale(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeScale _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieTimeScale(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieTimeScale(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeScale timeScale;
return _res;
}
-static PyObject *MovieObj_GetMovieDuration(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDuration(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieRate(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieRate(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieRate(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieRate(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed rate;
return _res;
}
-static PyObject *MovieObj_GetMoviePreferredRate(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePreferredRate(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed _rv;
return _res;
}
-static PyObject *MovieObj_SetMoviePreferredRate(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePreferredRate(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Fixed rate;
return _res;
}
-static PyObject *MovieObj_GetMoviePreferredVolume(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePreferredVolume(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *MovieObj_SetMoviePreferredVolume(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePreferredVolume(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short volume;
return _res;
}
-static PyObject *MovieObj_GetMovieVolume(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieVolume(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieVolume(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieVolume(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short volume;
return _res;
}
-static PyObject *MovieObj_GetMoviePreviewTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePreviewTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue previewTime;
return _res;
}
-static PyObject *MovieObj_SetMoviePreviewTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePreviewTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue previewTime;
return _res;
}
-static PyObject *MovieObj_GetMoviePosterTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMoviePosterTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *MovieObj_SetMoviePosterTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePosterTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue posterTime;
return _res;
}
-static PyObject *MovieObj_GetMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue selectionTime;
return _res;
}
-static PyObject *MovieObj_SetMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue selectionTime;
return _res;
}
-static PyObject *MovieObj_SetMovieActiveSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieActiveSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue startTime;
return _res;
}
-static PyObject *MovieObj_GetMovieActiveSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieActiveSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue startTime;
return _res;
}
-static PyObject *MovieObj_GetMovieTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord newtime;
return _res;
}
-static PyObject *MovieObj_SetMovieTimeValue(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieTimeValue(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue newtime;
return _res;
}
-static PyObject *MovieObj_GetMovieUserData(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieUserData(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UserData _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieTrackCount(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieTrackCount(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieTrack(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieTrack(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieIndTrack(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieIndTrack(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieIndTrackType(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieIndTrackType(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_NewMovieTrack(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_NewMovieTrack(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Track _rv;
return _res;
}
-static PyObject *MovieObj_SetAutoTrackAlternatesEnabled(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetAutoTrackAlternatesEnabled(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean enable;
return _res;
}
-static PyObject *MovieObj_SelectMovieAlternates(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SelectMovieAlternates(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_InsertMovieSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_InsertMovieSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_InsertEmptyMovieSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_InsertEmptyMovieSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_DeleteMovieSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_DeleteMovieSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_ScaleMovieSegment(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_ScaleMovieSegment(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_CutMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_CutMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieObj_CopyMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_CopyMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieObj_PasteMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PasteMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie src;
return _res;
}
-static PyObject *MovieObj_AddMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_AddMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie src;
return _res;
}
-static PyObject *MovieObj_ClearMovieSelection(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_ClearMovieSelection(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_PutMovieIntoTypedHandle(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PutMovieIntoTypedHandle(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_CopyMovieSettings(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_CopyMovieSettings(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_ConvertMovieToFile(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_ConvertMovieToFile(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetMovieDataSize(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDataSize(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieDataSize64(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDataSize64(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_PtInMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PtInMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MovieObj_SetMovieLanguage(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieLanguage(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long language;
return _res;
}
-static PyObject *MovieObj_GetMovieNextInterestingTime(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieNextInterestingTime(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short interestingTimeFlags;
return _res;
}
-static PyObject *MovieObj_AddMovieResource(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_AddMovieResource(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_UpdateMovieResource(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_UpdateMovieResource(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_HasMovieChanged(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_HasMovieChanged(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *MovieObj_ClearMovieChanged(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_ClearMovieChanged(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *MovieObj_SetMovieDefaultDataRef(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieDefaultDataRef(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetMovieDefaultDataRef(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieDefaultDataRef(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *MovieObj_SetMovieAnchorDataRef(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieAnchorDataRef(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *MovieObj_GetMovieAnchorDataRef(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieAnchorDataRef(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *MovieObj_SetMovieColorTable(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMovieColorTable(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetMovieColorTable(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieColorTable(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_FlattenMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_FlattenMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long movieFlattenFlags;
return _res;
}
-static PyObject *MovieObj_FlattenMovieData(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_FlattenMovieData(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *MovieObj_MovieSearchText(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_MovieSearchText(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_GetPosterBox(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetPosterBox(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect boxRect;
return _res;
}
-static PyObject *MovieObj_SetPosterBox(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetPosterBox(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect boxRect;
return _res;
}
-static PyObject *MovieObj_GetMovieSegmentDisplayBoundsRgn(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieSegmentDisplayBoundsRgn(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *MovieObj_GetMovieStatus(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieStatus(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *MovieObj_GetMovieLoadState(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMovieLoadState(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
}
#endif
-static PyObject *MovieObj_NewMovieController(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_NewMovieController(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
MovieController _rv;
return _res;
}
-static PyObject *MovieObj_PutMovieOnScrap(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_PutMovieOnScrap(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_SetMoviePlayHints(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_SetMoviePlayHints(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long flags;
return _res;
}
-static PyObject *MovieObj_GetMaxLoadedTimeInMovie(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_GetMaxLoadedTimeInMovie(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_QTMovieNeedsTimeTable(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_QTMovieNeedsTimeTable(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *MovieObj_QTGetDataRefMaxFileOffset(_self, _args)
- MovieObject *_self;
- PyObject *_args;
+static PyObject *MovieObj_QTGetDataRefMaxFileOffset(MovieObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain MovieObj_chain = { MovieObj_methods, NULL };
-static PyObject *MovieObj_getattr(self, name)
- MovieObject *self;
- char *name;
+static PyObject *MovieObj_getattr(MovieObject *self, char *name)
{
return Py_FindMethodInChain(&MovieObj_chain, (PyObject *)self, name);
}
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_CheckQuickTimeRegistration(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_CheckQuickTimeRegistration(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
void * registrationKey;
}
#endif
-static PyObject *Qt_EnterMovies(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_EnterMovies(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_ExitMovies(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_ExitMovies(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qt_GetMoviesError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_GetMoviesError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_ClearMoviesStickyError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_ClearMoviesStickyError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *Qt_GetMoviesStickyError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_GetMoviesStickyError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_DisposeMatte(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_DisposeMatte(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixMapHandle theMatte;
return _res;
}
-static PyObject *Qt_NewMovie(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovie(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *Qt_GetDataHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_GetDataHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Component _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_OpenADataHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_OpenADataHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *Qt_PasteHandleIntoMovie(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_PasteHandleIntoMovie(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_GetMovieImporterForDataRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_GetMovieImporterForDataRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_TrackTimeToMediaTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TrackTimeToMediaTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeValue _rv;
return _res;
}
-static PyObject *Qt_NewUserData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewUserData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewUserDataFromHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewUserDataFromHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_CreateMovieFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_CreateMovieFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_OpenMovieFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_OpenMovieFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_CloseMovieFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_CloseMovieFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_DeleteMovieFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_DeleteMovieFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromDataFork(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromDataFork(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromDataFork64(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromDataFork64(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromDataRef(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromDataRef(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_RemoveMovieResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_RemoveMovieResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_CreateShortcutMovieFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_CreateShortcutMovieFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_NewMovieFromScrap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewMovieFromScrap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Movie _rv;
return _res;
}
-static PyObject *Qt_QTNewAlias(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTNewAlias(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_EndFullScreen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_EndFullScreen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_AddSoundDescriptionExtension(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_AddSoundDescriptionExtension(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_GetSoundDescriptionExtension(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_GetSoundDescriptionExtension(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_RemoveSoundDescriptionExtension(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_RemoveSoundDescriptionExtension(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTIsStandardParameterDialogEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTIsStandardParameterDialogEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTDismissStandardParameterDialog(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTDismissStandardParameterDialog(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTStandardParameterDialogDoAction(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTStandardParameterDialogDoAction(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTRegisterAccessKey(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTRegisterAccessKey(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTUnregisterAccessKey(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTUnregisterAccessKey(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_QTTextToNativeText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_QTTextToNativeText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Qt_VideoMediaResetStatistics(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_VideoMediaResetStatistics(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_VideoMediaGetStatistics(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_VideoMediaGetStatistics(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_VideoMediaGetStallCount(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_VideoMediaGetStallCount(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_VideoMediaSetCodecParameter(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_VideoMediaSetCodecParameter(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_VideoMediaGetCodecParameter(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_VideoMediaGetCodecParameter(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaAddTextSample(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaAddTextSample(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaAddTESample(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaAddTESample(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaAddHiliteSample(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaAddHiliteSample(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaDrawRaw(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaDrawRaw(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaSetTextProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaSetTextProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaRawSetup(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaRawSetup(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaRawIdle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaRawIdle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaFindNextText(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaFindNextText(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaHiliteTextSample(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaHiliteTextSample(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_TextMediaSetTextSampleData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_TextMediaSetTextSampleData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSetProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSetProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaHitTestSprites(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaHitTestSprites(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaCountSprites(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaCountSprites(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaCountImages(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaCountImages(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetIndImageDescription(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetIndImageDescription(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetDisplayedSampleNumber(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetDisplayedSampleNumber(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetSpriteName(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetSpriteName(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetImageName(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetImageName(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSetSpriteProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSetSpriteProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetSpriteProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetSpriteProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaHitTestAllSprites(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaHitTestAllSprites(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaHitTestOneSprite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaHitTestOneSprite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSpriteIndexToID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSpriteIndexToID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSpriteIDToIndex(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSpriteIDToIndex(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSetActionVariable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSetActionVariable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetActionVariable(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetActionVariable(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetIndImageProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
}
#endif
-static PyObject *Qt_SpriteMediaDisposeSprite(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaDisposeSprite(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaSetActionVariableToString(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaSetActionVariableToString(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_SpriteMediaGetActionVariableAsString(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SpriteMediaGetActionVariableAsString(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaSetPan(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaSetPan(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaSetZoom(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaSetZoom(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaSetZoomRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaSetZoomRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaGetRefConBounds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaGetRefConBounds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaGetRefConID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaGetRefConID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaIDToRefCon(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaIDToRefCon(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaGetDisplayedFrameNumber(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaGetDisplayedFrameNumber(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaFrameNumberToMovieTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaFrameNumberToMovieTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_FlashMediaFrameLabelToMovieTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_FlashMediaFrameLabelToMovieTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_MovieMediaGetCurrentMovieProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MovieMediaGetCurrentMovieProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_MovieMediaGetCurrentTrackProperty(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MovieMediaGetCurrentTrackProperty(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_MovieMediaGetChildMovieDataReference(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MovieMediaGetChildMovieDataReference(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_MovieMediaSetChildMovieDataReference(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MovieMediaSetChildMovieDataReference(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_MovieMediaLoadChildMovieFromDataReference(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MovieMediaLoadChildMovieFromDataReference(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
}
#endif
-static PyObject *Qt_Media3DGetCurrentGroup(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DGetCurrentGroup(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DTranslateNamedObjectTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DTranslateNamedObjectTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DScaleNamedObjectTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DScaleNamedObjectTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DRotateNamedObjectTo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DRotateNamedObjectTo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DSetCameraData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DSetCameraData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DGetCameraData(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DGetCameraData(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DSetCameraAngleAspect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DSetCameraAngleAspect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DGetCameraAngleAspect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DGetCameraAngleAspect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DSetCameraRange(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DSetCameraRange(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_Media3DGetCameraRange(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DGetCameraRange(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Qt_Media3DGetViewObject(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_Media3DGetViewObject(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
}
#endif
-static PyObject *Qt_NewTimeBase(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_NewTimeBase(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeBase _rv;
return _res;
}
-static PyObject *Qt_ConvertTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_ConvertTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord inout;
return _res;
}
-static PyObject *Qt_ConvertTimeScale(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_ConvertTimeScale(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord inout;
return _res;
}
-static PyObject *Qt_AddTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_AddTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord dst;
return _res;
}
-static PyObject *Qt_SubtractTime(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_SubtractTime(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TimeRecord dst;
return _res;
}
-static PyObject *Qt_MusicMediaGetIndexedTunePlayer(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MusicMediaGetIndexedTunePlayer(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ComponentResult _rv;
return _res;
}
-static PyObject *Qt_AlignWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_AlignWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr wp;
return _res;
}
-static PyObject *Qt_DragAlignedWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_DragAlignedWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr wp;
return _res;
}
-static PyObject *Qt_MoviesTask(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Qt_MoviesTask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long maxMilliSecToUse;
-void initQt()
+void initQt(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TrackObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TrackObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieCtlObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieCtlObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBaseObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBaseObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(UserDataObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserDataObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MediaObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MediaObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Track, TrackObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Track, TrackObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Movie, MovieObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Movie, MovieObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieController, MovieCtlObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieController, MovieCtlObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBase, TimeBaseObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBase, TimeBaseObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(UserData, UserDataObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserData, UserDataObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Media, MediaObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Media, MediaObj_Convert);
m = Py_InitModule("Qt", Qt_methods);
# Create the type objects
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Movies.h>
+#else
+/* #include <Carbon/Carbon.h> */
+#include <QuickTime/QuickTime.h>
+#endif
+
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_TrackObj_New(Track);
** Parse/generate time records
*/
static PyObject *
-QtTimeRecord_New(itself)
- TimeRecord *itself;
+QtTimeRecord_New(TimeRecord *itself)
{
if (itself->base)
return Py_BuildValue("O&lO&", PyMac_Buildwide, &itself->value, itself->scale,
}
static int
-QtTimeRecord_Convert(v, p_itself)
- PyObject *v;
- TimeRecord *p_itself;
+QtTimeRecord_Convert(PyObject *v, TimeRecord *p_itself)
{
PyObject *base = NULL;
if( !PyArg_ParseTuple(v, "O&l|O", PyMac_Getwide, &p_itself->value, &p_itself->scale,
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TrackObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TrackObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieCtlObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieCtlObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBaseObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBaseObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(UserDataObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserDataObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(MediaObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MediaObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Track, TrackObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Track, TrackObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Movie, MovieObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Movie, MovieObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(MovieController, MovieCtlObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(MovieController, MovieCtlObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(TimeBase, TimeBaseObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TimeBase, TimeBaseObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(UserData, UserDataObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(UserData, UserDataObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Media, MediaObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Media, MediaObj_Convert);
"""
# Our (opaque) objects
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Resources.h>
#include <string.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_ResObj_New(Handle);
void (*ob_freeit)(Handle ptr);
} ResourceObject;
-PyObject *ResObj_New(itself)
- Handle itself;
+PyObject *ResObj_New(Handle itself)
{
ResourceObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
it->ob_freeit = NULL;
return (PyObject *)it;
}
-ResObj_Convert(v, p_itself)
- PyObject *v;
- Handle *p_itself;
+ResObj_Convert(PyObject *v, Handle *p_itself)
{
if (!ResObj_Check(v))
{
return 1;
}
-static void ResObj_dealloc(self)
- ResourceObject *self;
+static void ResObj_dealloc(ResourceObject *self)
{
if (self->ob_freeit && self->ob_itself)
{
PyMem_DEL(self);
}
-static PyObject *ResObj_HomeResFile(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_HomeResFile(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *ResObj_MacLoadResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_MacLoadResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_ReleaseResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_ReleaseResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_DetachResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_DetachResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_GetResAttrs(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_GetResAttrs(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *ResObj_GetResInfo(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_GetResInfo(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short theID;
return _res;
}
-static PyObject *ResObj_SetResInfo(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_SetResInfo(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short theID;
return _res;
}
-static PyObject *ResObj_AddResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_AddResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *ResObj_GetResourceSizeOnDisk(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_GetResourceSizeOnDisk(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *ResObj_GetMaxResourceSize(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_GetMaxResourceSize(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *ResObj_RsrcMapEntry(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_RsrcMapEntry(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
}
#endif
-static PyObject *ResObj_SetResAttrs(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_SetResAttrs(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short attrs;
return _res;
}
-static PyObject *ResObj_ChangedResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_ChangedResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_RemoveResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_RemoveResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_WriteResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_WriteResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_SetResourceSize(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_SetResourceSize(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long newSize;
return _res;
}
-static PyObject *ResObj_GetNextFOND(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_GetNextFOND(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *ResObj_as_Control(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_as_Control(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *ResObj_as_Menu(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_as_Menu(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *ResObj_LoadResource(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_LoadResource(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *ResObj_AutoDispose(_self, _args)
- ResourceObject *_self;
- PyObject *_args;
+static PyObject *ResObj_AutoDispose(ResourceObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
{"GetMaxResourceSize", (PyCFunction)ResObj_GetMaxResourceSize, 1,
"() -> (long _rv)"},
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"RsrcMapEntry", (PyCFunction)ResObj_RsrcMapEntry, 1,
"() -> (long _rv)"},
#endif
PyMethodChain ResObj_chain = { ResObj_methods, NULL };
-static PyObject *ResObj_getattr(self, name)
- ResourceObject *self;
- char *name;
+static PyObject *ResObj_getattr(ResourceObject *self, char *name)
{
if (strcmp(name, "size") == 0)
}
static int
-ResObj_setattr(self, name, value)
- ResourceObject *self;
- char *name;
- PyObject *value;
+ResObj_setattr(ResourceObject *self, char *name, PyObject *value)
{
char *data;
long size;
/* -------------------- End object type Resource -------------------- */
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *Res_InitResources(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_InitResources(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
}
#endif
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *Res_RsrcZoneInit(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_RsrcZoneInit(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
}
#endif
-static PyObject *Res_CloseResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_CloseResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short refNum;
return _res;
}
-static PyObject *Res_ResError(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_ResError(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
return _res;
}
-static PyObject *Res_CurResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_CurResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *Res_CreateResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_CreateResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 fileName;
}
#endif
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *Res_OpenResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_OpenResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
}
#endif
-static PyObject *Res_UseResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_UseResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short refNum;
return _res;
}
-static PyObject *Res_CountTypes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_CountTypes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_Count1Types(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Count1Types(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_GetIndType(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetIndType(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *Res_Get1IndType(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Get1IndType(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
ResType theType;
return _res;
}
-static PyObject *Res_SetResLoad(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_SetResLoad(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean load;
return _res;
}
-static PyObject *Res_CountResources(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_CountResources(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_Count1Resources(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Count1Resources(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_GetIndResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetIndResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_Get1IndResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Get1IndResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_GetResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_Get1Resource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Get1Resource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_GetNamedResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetNamedResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_Get1NamedResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Get1NamedResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *Res_UniqueID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_UniqueID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_Unique1ID(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Unique1ID(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_UpdateResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_UpdateResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short refNum;
return _res;
}
-static PyObject *Res_SetResPurge(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_SetResPurge(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean install;
return _res;
}
-static PyObject *Res_GetResFileAttrs(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetResFileAttrs(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_SetResFileAttrs(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_SetResFileAttrs(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short refNum;
return _res;
}
-static PyObject *Res_OpenRFPerm(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_OpenRFPerm(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
-static PyObject *Res_RGetResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_RGetResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
}
#endif
-static PyObject *Res_HOpenResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_HOpenResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_HCreateResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_HCreateResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short vRefNum;
return _res;
}
-static PyObject *Res_FSpOpenResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_FSpOpenResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *Res_FSpCreateResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_FSpCreateResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
FSSpec spec;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_InsertResourceFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_InsertResourceFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_DetachResourceFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_DetachResourceFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_FSpResourceFileAlreadyOpen(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_FSpResourceFileAlreadyOpen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_FSpOpenOrphanResFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_FSpOpenOrphanResFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_GetTopResourceFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetTopResourceFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Res_GetNextResourceFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_GetNextResourceFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _rv;
}
#endif
-static PyObject *Res_Resource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Resource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Res_Handle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Res_Handle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
static PyMethodDef Res_methods[] = {
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"InitResources", (PyCFunction)Res_InitResources, 1,
"() -> (short _rv)"},
#endif
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"RsrcZoneInit", (PyCFunction)Res_RsrcZoneInit, 1,
"() -> None"},
#endif
{"CurResFile", (PyCFunction)Res_CurResFile, 1,
"() -> (short _rv)"},
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"CreateResFile", (PyCFunction)Res_CreateResFile, 1,
"(Str255 fileName) -> None"},
#endif
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"OpenResFile", (PyCFunction)Res_OpenResFile, 1,
"(Str255 fileName) -> (short _rv)"},
#endif
{"OpenRFPerm", (PyCFunction)Res_OpenRFPerm, 1,
"(Str255 fileName, short vRefNum, SignedByte permission) -> (short _rv)"},
-#if !TARGET_API_MAC_CARBON
+#if TARGET_API_MAC_OS8
{"RGetResource", (PyCFunction)Res_RGetResource, 1,
"(ResType theType, short theID) -> (Handle _rv)"},
#endif
/* Alternative version of ResObj_New, which returns None for null argument */
-PyObject *OptResObj_New(itself)
- Handle itself;
+PyObject *OptResObj_New(Handle itself)
{
if (itself == NULL) {
Py_INCREF(Py_None);
return ResObj_New(itself);
}
-OptResObj_Convert(v, p_itself)
- PyObject *v;
- Handle *p_itself;
+OptResObj_Convert(PyObject *v, Handle *p_itself)
{
PyObject *tmp;
}
-void initRes()
+void initRes(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(ResObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ResObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(OptResObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(OptResObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Handle, ResObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Handle, ResObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Handle, OptResObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Handle, OptResObj_Convert);
m = Py_InitModule("Res", Res_methods);
def makegreylist(self):
return [
- ('#if !TARGET_API_MAC_CARBON', [
+ ('#if TARGET_API_MAC_OS8', [
'RGetResource',
'OpenResFile',
'CreateResFile',
# includestuff etc. are imported from macsupport
includestuff = includestuff + """
+#ifdef WITHOUT_FRAMEWORKS
#include <Resources.h>
#include <string.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_ResObj_New(Handle);
finalstuff = finalstuff + """
/* Alternative version of ResObj_New, which returns None for null argument */
-PyObject *OptResObj_New(itself)
- Handle itself;
+PyObject *OptResObj_New(Handle itself)
{
if (itself == NULL) {
Py_INCREF(Py_None);
return ResObj_New(itself);
}
-OptResObj_Convert(v, p_itself)
- PyObject *v;
- Handle *p_itself;
+OptResObj_Convert(PyObject *v, Handle *p_itself)
{
PyObject *tmp;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(ResObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(ResObj_Convert);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(OptResObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(OptResObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Handle, ResObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Handle, ResObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(Handle, OptResObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Handle, OptResObj_Convert);
"""
module = MacModule('Res', 'Res', includestuff, finalstuff, initstuff)
setattrCode = """
static int
-ResObj_setattr(self, name, value)
- ResourceObject *self;
- char *name;
- PyObject *value;
+ResObj_setattr(ResourceObject *self, char *name, PyObject *value)
{
char *data;
long size;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Scrap.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
/*
** Generate ScrapInfo records
# Create the type objects
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Scrap.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
/*
** Generate ScrapInfo records
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Sound.h>
-
#include <OSUtils.h> /* for Set(Current)A5 */
+#else
+#include <Carbon/Carbon.h>
+#endif
+
/* Create a SndCommand object (an (int, int, int) tuple) */
static PyObject *
SndCommand ob_cmd;
} SndChannelObject;
-static PyObject *SndCh_New(itself)
- SndChannelPtr itself;
+static PyObject *SndCh_New(SndChannelPtr itself)
{
SndChannelObject *it;
it = PyObject_NEW(SndChannelObject, &SndChannel_Type);
it->ob_A5 = SetCurrentA5();
return (PyObject *)it;
}
-static SndCh_Convert(v, p_itself)
- PyObject *v;
- SndChannelPtr *p_itself;
+static SndCh_Convert(PyObject *v, SndChannelPtr *p_itself)
{
if (!SndCh_Check(v))
{
return 1;
}
-static void SndCh_dealloc(self)
- SndChannelObject *self;
+static void SndCh_dealloc(SndChannelObject *self)
{
SndDisposeChannel(self->ob_itself, 1);
Py_XDECREF(self->ob_callback);
PyMem_DEL(self);
}
-static PyObject *SndCh_SndDoCommand(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndDoCommand(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *SndCh_SndDoImmediate(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndDoImmediate(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *SndCh_SndPlay(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndPlay(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *SndCh_SndStartFilePlay(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndStartFilePlay(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *SndCh_SndPauseFilePlay(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndPauseFilePlay(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *SndCh_SndStopFilePlay(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndStopFilePlay(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *SndCh_SndChannelStatus(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndChannelStatus(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *SndCh_SndGetInfo(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndGetInfo(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *SndCh_SndSetInfo(_self, _args)
- SndChannelObject *_self;
- PyObject *_args;
+static PyObject *SndCh_SndSetInfo(SndChannelObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
static PyMethodChain SndCh_chain = { SndCh_methods, NULL };
-static PyObject *SndCh_getattr(self, name)
- SndChannelObject *self;
- char *name;
+static PyObject *SndCh_getattr(SndChannelObject *self, char *name)
{
return Py_FindMethodInChain(&SndCh_chain, (PyObject *)self, name);
}
it->ob_spb.userLong = (long)it;
return (PyObject *)it;
}
-static SPBObj_Convert(v, p_itself)
- PyObject *v;
- SPBPtr *p_itself;
+static SPBObj_Convert(PyObject *v, SPBPtr *p_itself)
{
if (!SPBObj_Check(v))
{
return 1;
}
-static void SPBObj_dealloc(self)
- SPBObject *self;
+static void SPBObj_dealloc(SPBObject *self)
{
/* Cleanup of self->ob_itself goes here */
self->ob_spb.userLong = 0;
static PyMethodChain SPBObj_chain = { SPBObj_methods, NULL };
-static PyObject *SPBObj_getattr(self, name)
- SPBObject *self;
- char *name;
+static PyObject *SPBObj_getattr(SPBObject *self, char *name)
{
if (strcmp(name, "inRefNum") == 0)
return Py_FindMethodInChain(&SPBObj_chain, (PyObject *)self, name);
}
-static int SPBObj_setattr(self, name, value)
- SPBObject *self;
- char *name;
- PyObject *value;
+static int SPBObj_setattr(SPBObject *self, char *name, PyObject *value)
{
int rv = 0;
else if (strcmp(name, "buffer") == 0)
rv = PyArg_Parse(value, "w#", &self->ob_spb.bufferPtr, &self->ob_spb.bufferLength);
else if (strcmp(name, "completionRoutine") == 0) {
- self->ob_spb.completionRoutine = NewSICompletionProc(SPB_completion);
+ self->ob_spb.completionRoutine = NewSICompletionUPP(SPB_completion);
self->ob_completion = value;
Py_INCREF(value);
rv = 1;
#if !TARGET_API_MAC_CARBON
} else if (strcmp(name, "interruptRoutine") == 0) {
- self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
+ self->ob_spb.completionRoutine = NewSIInterruptUPP(SPB_interrupt);
self->ob_interrupt = value;
Py_INCREF(value);
rv = 1;
/* ---------------------- End object type SPB ----------------------- */
-static PyObject *Snd_SPB(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPB(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
return SPBObj_New();
}
-static PyObject *Snd_SysBeep(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SysBeep(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short duration;
return _res;
}
-static PyObject *Snd_SndNewChannel(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndNewChannel(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
_err = SndNewChannel(&chan,
synth,
init,
- NewSndCallBackProc(SndCh_UserRoutine));
+ NewSndCallBackUPP(SndCh_UserRoutine));
if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&",
SndCh_New, chan);
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_SndControl(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndControl(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *Snd_SndSoundManagerVersion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndSoundManagerVersion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
NumVersion _rv;
return _res;
}
-static PyObject *Snd_SndManagerStatus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndManagerStatus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SndGetSysBeepState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndGetSysBeepState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short sysBeepState;
return _res;
}
-static PyObject *Snd_SndSetSysBeepState(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SndSetSysBeepState(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_MACEVersion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_MACEVersion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
NumVersion _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_Comp3to1(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_Comp3to1(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *buffer__in__;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_Exp1to3(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_Exp1to3(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *buffer__in__;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_Comp6to1(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_Comp6to1(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *buffer__in__;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_Exp1to6(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_Exp1to6(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *buffer__in__;
}
#endif
-static PyObject *Snd_GetSysBeepVolume(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetSysBeepVolume(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SetSysBeepVolume(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SetSysBeepVolume(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_GetDefaultOutputVolume(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetDefaultOutputVolume(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SetDefaultOutputVolume(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SetDefaultOutputVolume(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_GetSoundHeaderOffset(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetSoundHeaderOffset(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_GetCompressionInfo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetCompressionInfo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SetSoundPreference(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SetSoundPreference(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_GetSoundPreference(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetSoundPreference(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_GetCompressionName(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_GetCompressionName(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBVersion(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBVersion(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
NumVersion _rv;
return _res;
}
-static PyObject *Snd_SPBSignInDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBSignInDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBSignOutDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBSignOutDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBGetIndexedDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBGetIndexedDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBOpenDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBOpenDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBCloseDevice(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBCloseDevice(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBRecord(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBRecord(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Snd_SPBRecordToFile(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBRecordToFile(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
}
#endif
-static PyObject *Snd_SPBPauseRecording(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBPauseRecording(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBResumeRecording(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBResumeRecording(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBStopRecording(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBStopRecording(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBGetRecordingStatus(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBGetRecordingStatus(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBGetDeviceInfo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBGetDeviceInfo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBSetDeviceInfo(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBSetDeviceInfo(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBMillisecondsToBytes(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBMillisecondsToBytes(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *Snd_SPBBytesToMilliseconds(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Snd_SPBBytesToMilliseconds(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
/* Routine passed to Py_AddPendingCall -- call the Python callback */
static int
-SndCh_CallCallBack(arg)
- void *arg;
+SndCh_CallCallBack(void *arg)
{
SndChannelObject *p = (SndChannelObject *)arg;
PyObject *args;
/* SPB callbacks - Schedule callbacks to Python */
static int
-SPB_CallCallBack(arg)
- void *arg;
+SPB_CallCallBack(void *arg)
{
SPBObject *p = (SPBObject *)arg;
PyObject *args;
#endif
-void initSnd()
+void initSnd(void)
{
PyObject *m;
PyObject *d;
# includestuff etc. are imported from macsupport
includestuff = includestuff + """
+#ifdef WITHOUT_FRAMEWORKS
#include <Sound.h>
+#include <OSUtils.h> /* for Set(Current)A5 */
+#else
+#include <Carbon/Carbon.h>
+#endif
"""
initstuff = initstuff + """
Output("goto %s__error__;", name)
OutRbrace()
def passInput(self, name):
- return "NewSndCallBackProc(SndCh_UserRoutine)"
+ return "NewSndCallBackUPP(SndCh_UserRoutine)"
def cleanup(self, name):
# XXX This knows it is executing inside the SndNewChannel wrapper
Output("if (_res != NULL && %s != Py_None)", name)
CompressionInfo = StructOutputBufferType('CompressionInfo')
includestuff = includestuff + """
-#include <OSUtils.h> /* for Set(Current)A5 */
/* Create a SndCommand object (an (int, int, int) tuple) */
static PyObject *
finalstuff = finalstuff + """
/* Routine passed to Py_AddPendingCall -- call the Python callback */
static int
-SndCh_CallCallBack(arg)
- void *arg;
+SndCh_CallCallBack(void *arg)
{
SndChannelObject *p = (SndChannelObject *)arg;
PyObject *args;
/* SPB callbacks - Schedule callbacks to Python */
static int
-SPB_CallCallBack(arg)
- void *arg;
+SPB_CallCallBack(void *arg)
{
SPBObject *p = (SPBObject *)arg;
PyObject *args;
Output("Py_XDECREF(self->ob_interrupt);")
def outputConvert(self):
- Output("%s%s_Convert(v, p_itself)", self.static, self.prefix)
- IndentLevel()
- Output("PyObject *v;")
- Output("%s *p_itself;", self.itselftype)
- DedentLevel()
+ Output("%s%s_Convert(PyObject *v, %s *p_itself)", self.static, self.prefix, self.itselftype)
OutLbrace()
self.outputCheckConvertArg()
Output("if (!%s_Check(v))", self.prefix)
def outputSetattr(self):
Output()
- Output("static int %s_setattr(self, name, value)", self.prefix)
- IndentLevel()
- Output("%s *self;", self.objecttype)
- Output("char *name;")
- Output("PyObject *value;")
- DedentLevel()
+ Output("static int %s_setattr(%s *self, char *name, PyObject *value)",
+ self.prefix, self.objecttype)
OutLbrace()
self.outputSetattrBody()
OutRbrace()
else if (strcmp(name, "buffer") == 0)
rv = PyArg_Parse(value, "w#", &self->ob_spb.bufferPtr, &self->ob_spb.bufferLength);
else if (strcmp(name, "completionRoutine") == 0) {
- self->ob_spb.completionRoutine = NewSICompletionProc(SPB_completion);
+ self->ob_spb.completionRoutine = NewSICompletionUPP(SPB_completion);
self->ob_completion = value;
Py_INCREF(value);
rv = 1;
#if !TARGET_API_MAC_CARBON
} else if (strcmp(name, "interruptRoutine") == 0) {
- self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
+ self->ob_spb.completionRoutine = NewSIInterruptUPP(SPB_interrupt);
self->ob_interrupt = value;
Py_INCREF(value);
rv = 1;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <TextEdit.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_TEObj_New(TEHandle);
** Parse/generate TextStyle records
*/
static PyObject *
-TextStyle_New(itself)
- TextStylePtr itself;
+TextStyle_New(TextStylePtr itself)
{
return Py_BuildValue("lllO&", (long)itself->tsFont, (long)itself->tsFace, (long)itself->tsSize, QdRGB_New,
}
static int
-TextStyle_Convert(v, p_itself)
- PyObject *v;
- TextStylePtr p_itself;
+TextStyle_Convert(PyObject *v, TextStylePtr p_itself)
{
long font, face, size;
TEHandle ob_itself;
} TEObject;
-PyObject *TEObj_New(itself)
- TEHandle itself;
+PyObject *TEObj_New(TEHandle itself)
{
TEObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-TEObj_Convert(v, p_itself)
- PyObject *v;
- TEHandle *p_itself;
+TEObj_Convert(PyObject *v, TEHandle *p_itself)
{
if (!TEObj_Check(v))
{
return 1;
}
-static void TEObj_dealloc(self)
- TEObject *self;
+static void TEObj_dealloc(TEObject *self)
{
TEDispose(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *TEObj_TESetText(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESetText(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *text__in__;
return _res;
}
-static PyObject *TEObj_TEGetText(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetText(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CharsHandle _rv;
return _res;
}
-static PyObject *TEObj_TEIdle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEIdle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TESetSelect(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESetSelect(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long selStart;
return _res;
}
-static PyObject *TEObj_TEActivate(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEActivate(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEDeactivate(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEDeactivate(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEKey(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEKey(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CharParameter key;
return _res;
}
-static PyObject *TEObj_TECut(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TECut(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TECopy(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TECopy(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEPaste(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEPaste(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEDelete(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEDelete(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEInsert(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEInsert(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *text__in__;
return _res;
}
-static PyObject *TEObj_TESetAlignment(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESetAlignment(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short just;
return _res;
}
-static PyObject *TEObj_TEUpdate(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEUpdate(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rUpdate;
return _res;
}
-static PyObject *TEObj_TEScroll(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEScroll(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short dh;
return _res;
}
-static PyObject *TEObj_TESelView(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESelView(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEPinScroll(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEPinScroll(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short dh;
return _res;
}
-static PyObject *TEObj_TEAutoView(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEAutoView(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean fAuto;
return _res;
}
-static PyObject *TEObj_TECalText(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TECalText(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TEGetOffset(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetOffset(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *TEObj_TEGetPoint(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetPoint(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point _rv;
return _res;
}
-static PyObject *TEObj_TEClick(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEClick(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point pt;
return _res;
}
-static PyObject *TEObj_TESetStyleHandle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESetStyleHandle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEStyleHandle theHandle;
return _res;
}
-static PyObject *TEObj_TEGetStyleHandle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetStyleHandle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEStyleHandle _rv;
return _res;
}
-static PyObject *TEObj_TEGetStyle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetStyle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short offset;
return _res;
}
-static PyObject *TEObj_TEStylePaste(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEStylePaste(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *TEObj_TESetStyle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TESetStyle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short mode;
return _res;
}
-static PyObject *TEObj_TEReplaceStyle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEReplaceStyle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short mode;
return _res;
}
-static PyObject *TEObj_TEGetStyleScrapHandle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetStyleScrapHandle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
StScrpHandle _rv;
return _res;
}
-static PyObject *TEObj_TEStyleInsert(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEStyleInsert(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *text__in__;
return _res;
}
-static PyObject *TEObj_TEGetHeight(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetHeight(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TEObj_TEContinuousStyle(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEContinuousStyle(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *TEObj_TEUseStyleScrap(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEUseStyleScrap(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long rangeStart;
return _res;
}
-static PyObject *TEObj_TENumStyles(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TENumStyles(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TEObj_TEFeatureFlag(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEFeatureFlag(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *TEObj_TEGetHiliteRgn(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_TEGetHiliteRgn(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TEObj_as_Resource(_self, _args)
- TEObject *_self;
- PyObject *_args;
+static PyObject *TEObj_as_Resource(TEObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
PyMethodChain TEObj_chain = { TEObj_methods, NULL };
-static PyObject *TEObj_getattr(self, name)
- TEObject *self;
- char *name;
+static PyObject *TEObj_getattr(TEObject *self, char *name)
{
if( strcmp(name, "destRect") == 0 )
/* ----------------------- End object type TE ----------------------- */
-static PyObject *TE_TEScrapHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEScrapHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *TE_TEGetScrapLength(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEGetScrapLength(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *TE_TENew(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TENew(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEHandle _rv;
return _res;
}
-static PyObject *TE_TETextBox(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TETextBox(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
char *text__in__;
return _res;
}
-static PyObject *TE_TEStyleNew(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEStyleNew(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEHandle _rv;
return _res;
}
-static PyObject *TE_TESetScrapLength(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TESetScrapLength(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long length;
return _res;
}
-static PyObject *TE_TEFromScrap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEFromScrap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *TE_TEToScrap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEToScrap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
#if TARGET_API_MAC_CARBON
-static PyObject *TE_TEGetScrapHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TEGetScrapHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *TE_TESetScrapHandle(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle value;
}
#endif
-static PyObject *TE_as_TE(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *TE_as_TE(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
TEHandle _rv;
-void initTE()
+void initTE(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TEObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TEObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(TEHandle, TEObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TEHandle, TEObj_Convert);
m = Py_InitModule("TE", TE_methods);
TextStyle_ptr = TextStyle
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <TextEdit.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_TEObj_New(TEHandle);
** Parse/generate TextStyle records
*/
static PyObject *
-TextStyle_New(itself)
- TextStylePtr itself;
+TextStyle_New(TextStylePtr itself)
{
return Py_BuildValue("lllO&", (long)itself->tsFont, (long)itself->tsFace, (long)itself->tsSize, QdRGB_New,
}
static int
-TextStyle_Convert(v, p_itself)
- PyObject *v;
- TextStylePtr p_itself;
+TextStyle_Convert(PyObject *v, TextStylePtr p_itself)
{
long font, face, size;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(TEObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TEObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(TEHandle, TEObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(TEHandle, TEObj_Convert);
"""
class TEMethodGenerator(OSErrMethodGenerator):
}
static pascal OSErr
-my_draw_handler(const Rect *destRect, WEObjectReference objref)
+my_draw_handler(Rect *destRect, WEObjectReference objref)
{
PyObject *args=NULL, *rv=NULL;
OSErr err;
WEObjectReference ob_itself;
} WEOObject;
-PyObject *WEOObj_New(itself)
- WEObjectReference itself;
+PyObject *WEOObj_New(WEObjectReference itself)
{
WEOObject *it;
if (itself == NULL) {
it->ob_itself = itself;
return (PyObject *)it;
}
-WEOObj_Convert(v, p_itself)
- PyObject *v;
- WEObjectReference *p_itself;
+WEOObj_Convert(PyObject *v, WEObjectReference *p_itself)
{
if (!WEOObj_Check(v))
{
return 1;
}
-static void WEOObj_dealloc(self)
- WEOObject *self;
+static void WEOObj_dealloc(WEOObject *self)
{
/* Cleanup of self->ob_itself goes here */
PyMem_DEL(self);
}
-static PyObject *WEOObj_WEGetObjectType(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WEGetObjectType(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
FlavorType _rv;
return _res;
}
-static PyObject *WEOObj_WEGetObjectDataHandle(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WEGetObjectDataHandle(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *WEOObj_WEGetObjectSize(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WEGetObjectSize(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point _rv;
return _res;
}
-static PyObject *WEOObj_WEGetObjectOwner(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WEGetObjectOwner(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEReference _rv;
return _res;
}
-static PyObject *WEOObj_WEGetObjectRefCon(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WEGetObjectRefCon(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *WEOObj_WESetObjectRefCon(_self, _args)
- WEOObject *_self;
- PyObject *_args;
+static PyObject *WEOObj_WESetObjectRefCon(WEOObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 refCon;
PyMethodChain WEOObj_chain = { WEOObj_methods, NULL };
-static PyObject *WEOObj_getattr(self, name)
- WEOObject *self;
- char *name;
+static PyObject *WEOObj_getattr(WEOObject *self, char *name)
{
return Py_FindMethodInChain(&WEOObj_chain, (PyObject *)self, name);
}
WEReference ob_itself;
} wasteObject;
-PyObject *wasteObj_New(itself)
- WEReference itself;
+PyObject *wasteObj_New(WEReference itself)
{
wasteObject *it;
if (itself == NULL) {
WESetInfo(weRefCon, (void *)&it, itself);
return (PyObject *)it;
}
-wasteObj_Convert(v, p_itself)
- PyObject *v;
- WEReference *p_itself;
+wasteObj_Convert(PyObject *v, WEReference *p_itself)
{
if (!wasteObj_Check(v))
{
return 1;
}
-static void wasteObj_dealloc(self)
- wasteObject *self;
+static void wasteObj_dealloc(wasteObject *self)
{
WEDispose(self->ob_itself);
PyMem_DEL(self);
}
-static PyObject *wasteObj_WEGetText(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetText(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Handle _rv;
return _res;
}
-static PyObject *wasteObj_WEGetChar(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetChar(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetTextLength(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetTextLength(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetHeight(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetHeight(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetSelection(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetSelection(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 selStart;
return _res;
}
-static PyObject *wasteObj_WEGetDestRect(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetDestRect(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect destRect;
return _res;
}
-static PyObject *wasteObj_WEGetViewRect(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetViewRect(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect viewRect;
return _res;
}
-static PyObject *wasteObj_WEIsActive(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEIsActive(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEOffsetToLine(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEOffsetToLine(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetLineRange(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetLineRange(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 lineIndex;
return _res;
}
-static PyObject *wasteObj_WECountLines(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECountLines(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEOffsetToRun(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEOffsetToRun(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetRunRange(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetRunRange(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 runIndex;
return _res;
}
-static PyObject *wasteObj_WECountRuns(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECountRuns(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetClickCount(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetClickCount(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WESetSelection(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetSelection(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 selStart;
return _res;
}
-static PyObject *wasteObj_WESetDestRect(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetDestRect(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect destRect;
return _res;
}
-static PyObject *wasteObj_WESetViewRect(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetViewRect(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect viewRect;
return _res;
}
-static PyObject *wasteObj_WEContinuousStyle(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEContinuousStyle(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEGetRunInfo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetRunInfo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 offset;
return _res;
}
-static PyObject *wasteObj_WEGetRunDirection(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetRunDirection(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEGetOffset(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetOffset(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetPoint(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetPoint(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 offset;
return _res;
}
-static PyObject *wasteObj_WEFindWord(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEFindWord(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 offset;
return _res;
}
-static PyObject *wasteObj_WEFindLine(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEFindLine(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 offset;
return _res;
}
-static PyObject *wasteObj_WEFindParagraph(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEFindParagraph(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 offset;
return _res;
}
-static PyObject *wasteObj_WECopyRange(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECopyRange(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEGetAlignment(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetAlignment(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEAlignment _rv;
return _res;
}
-static PyObject *wasteObj_WESetAlignment(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetAlignment(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEAlignment alignment;
return _res;
}
-static PyObject *wasteObj_WEGetDirection(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetDirection(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEDirection _rv;
return _res;
}
-static PyObject *wasteObj_WESetDirection(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetDirection(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEDirection direction;
return _res;
}
-static PyObject *wasteObj_WECalText(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECalText(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEUpdate(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEUpdate(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle updateRgn;
return _res;
}
-static PyObject *wasteObj_WEScroll(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEScroll(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 hOffset;
return _res;
}
-static PyObject *wasteObj_WESelView(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESelView(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEActivate(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEActivate(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEDeactivate(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEDeactivate(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEKey(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEKey(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 key;
return _res;
}
-static PyObject *wasteObj_WEClick(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEClick(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point hitPt;
return _res;
}
-static PyObject *wasteObj_WEAdjustCursor(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEAdjustCursor(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEIdle(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEIdle(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 maxSleep;
return _res;
}
-static PyObject *wasteObj_WEInsert(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEInsert(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEDelete(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEDelete(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WESetStyle(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetStyle(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEUseStyleScrap(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEUseStyleScrap(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEUseText(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEUseText(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEUndo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEUndo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEClearUndo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEClearUndo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEGetUndoInfo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetUndoInfo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WEActionKind _rv;
return _res;
}
-static PyObject *wasteObj_WEIsTyping(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEIsTyping(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEBeginAction(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEBeginAction(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEEndAction(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEEndAction(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEGetModCount(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetModCount(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
UInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEResetModCount(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEResetModCount(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEInsertObject(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEInsertObject(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEGetSelectedObject(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetSelectedObject(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEFindNextObject(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEFindNextObject(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt32 _rv;
return _res;
}
-static PyObject *wasteObj_WEUseSoup(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEUseSoup(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WECut(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECut(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WECopy(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECopy(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEPaste(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEPaste(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WECanPaste(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECanPaste(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEGetHiliteRgn(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetHiliteRgn(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *wasteObj_WECharByte(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECharByte(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WECharType(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WECharType(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WEStopInlineSession(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEStopInlineSession(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *wasteObj_WEFeatureFlag(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEFeatureFlag(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WEGetUserInfo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetUserInfo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WESetUserInfo(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetUserInfo(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEInstallTabHooks(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEInstallTabHooks(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WERemoveTabHooks(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WERemoveTabHooks(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *wasteObj_WEIsTabHooks(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEIsTabHooks(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *wasteObj_WEGetTabSize(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WEGetTabSize(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
SInt16 _rv;
return _res;
}
-static PyObject *wasteObj_WESetTabSize(_self, _args)
- wasteObject *_self;
- PyObject *_args;
+static PyObject *wasteObj_WESetTabSize(wasteObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
PyMethodChain wasteObj_chain = { wasteObj_methods, NULL };
-static PyObject *wasteObj_getattr(self, name)
- wasteObject *self;
- char *name;
+static PyObject *wasteObj_getattr(wasteObject *self, char *name)
{
return Py_FindMethodInChain(&wasteObj_chain, (PyObject *)self, name);
}
/* --------------------- End object type waste ---------------------- */
-static PyObject *waste_WENew(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WENew(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *waste_WEUpdateStyleScrap(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEUpdateStyleScrap(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *waste_WEInstallTSMHandlers(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEInstallTSMHandlers(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *waste_WERemoveTSMHandlers(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WERemoveTSMHandlers(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *waste_WEHandleTSMEvent(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEHandleTSMEvent(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSErr _err;
return _res;
}
-static PyObject *waste_WELongPointToPoint(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WELongPointToPoint(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongPt lp;
return _res;
}
-static PyObject *waste_WEPointToLongPoint(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEPointToLongPoint(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point p;
return _res;
}
-static PyObject *waste_WESetLongRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WESetLongRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect lr;
return _res;
}
-static PyObject *waste_WELongRectToRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WELongRectToRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect lr;
return _res;
}
-static PyObject *waste_WERectToLongRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WERectToLongRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect r;
return _res;
}
-static PyObject *waste_WEOffsetLongRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEOffsetLongRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
LongRect lr;
return _res;
}
-static PyObject *waste_WELongPointInLongRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WELongPointInLongRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *waste_STDObjectHandlers(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_STDObjectHandlers(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *waste_WEInstallObjectHandler(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *waste_WEInstallObjectHandler(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-void initwaste()
+void initwaste(void)
{
PyObject *m;
PyObject *d;
#include "macglue.h"
#include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
#include <Windows.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_WinObj_New(WindowRef);
void (*ob_freeit)(WindowPtr ptr);
} WindowObject;
-PyObject *WinObj_New(itself)
- WindowPtr itself;
+PyObject *WinObj_New(WindowPtr itself)
{
WindowObject *it;
if (itself == NULL) return PyMac_Error(resNotFound);
}
return (PyObject *)it;
}
-WinObj_Convert(v, p_itself)
- PyObject *v;
- WindowPtr *p_itself;
+WinObj_Convert(PyObject *v, WindowPtr *p_itself)
{
#if 1
{
return 1;
}
-static void WinObj_dealloc(self)
- WindowObject *self;
+static void WinObj_dealloc(WindowObject *self)
{
if (self->ob_freeit && self->ob_itself)
{
PyMem_DEL(self);
}
-static PyObject *WinObj_GetWindowOwnerCount(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowOwnerCount(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_CloneWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_CloneWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_ReshapeCustomWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ReshapeCustomWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *WinObj_GetWindowClass(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowClass(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowAttributes(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowAttributes(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_ChangeWindowAttributes(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ChangeWindowAttributes(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_SetWinColor(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWinColor(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WCTabHandle newColorTable;
}
#endif
-static PyObject *WinObj_SetWindowContentColor(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowContentColor(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowContentColor(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowContentColor(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowContentPattern(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowContentPattern(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_SetWindowContentPattern(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowContentPattern(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_ScrollWindowRect(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ScrollWindowRect(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_ScrollWindowRegion(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ScrollWindowRegion(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *WinObj_ClipAbove(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ClipAbove(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_SaveOld(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SaveOld(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_DrawNew(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_DrawNew(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean update;
}
#endif
-static PyObject *WinObj_PaintOne(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_PaintOne(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle clobberedRgn;
return _res;
}
-static PyObject *WinObj_PaintBehind(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_PaintBehind(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle clobberedRgn;
return _res;
}
-static PyObject *WinObj_CalcVis(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_CalcVis(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_CalcVisBehind(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_CalcVisBehind(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle clobberedRgn;
return _res;
}
-static PyObject *WinObj_BringToFront(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_BringToFront(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_SendBehind(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SendBehind(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr behindWindow;
return _res;
}
-static PyObject *WinObj_SelectWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SelectWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetNextWindowOfClass(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetNextWindowOfClass(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_IsValidWindowPtr(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsValidWindowPtr(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *WinObj_HiliteWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_HiliteWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean fHilite;
return _res;
}
-static PyObject *WinObj_SetWRefCon(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWRefCon(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long data;
return _res;
}
-static PyObject *WinObj_GetWRefCon(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWRefCon(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *WinObj_SetWindowPic(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowPic(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle pic;
return _res;
}
-static PyObject *WinObj_GetWindowPic(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowPic(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PicHandle _rv;
return _res;
}
-static PyObject *WinObj_GetWVariant(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWVariant(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *WinObj_GetWindowFeatures(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowFeatures(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowRegion(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowRegion(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_BeginUpdate(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_BeginUpdate(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_EndUpdate(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_EndUpdate(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_InvalWindowRgn(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_InvalWindowRgn(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_InvalWindowRect(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_InvalWindowRect(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_ValidWindowRgn(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ValidWindowRgn(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_ValidWindowRect(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ValidWindowRect(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_DrawGrowIcon(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_DrawGrowIcon(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_SetWTitle(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWTitle(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 title;
return _res;
}
-static PyObject *WinObj_GetWTitle(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWTitle(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Str255 title;
return _res;
}
-static PyObject *WinObj_SetWindowProxyFSSpec(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowProxyFSSpec(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowProxyFSSpec(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowProxyFSSpec(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_SetWindowProxyAlias(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowProxyAlias(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowProxyAlias(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowProxyAlias(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_SetWindowProxyCreatorAndType(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowProxyCreatorAndType(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowProxyIcon(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowProxyIcon(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_SetWindowProxyIcon(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowProxyIcon(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_RemoveWindowProxy(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_RemoveWindowProxy(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_BeginWindowProxyDrag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_BeginWindowProxyDrag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_EndWindowProxyDrag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_EndWindowProxyDrag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_TrackWindowProxyFromExistingDrag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_TrackWindowProxyFromExistingDrag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_TrackWindowProxyDrag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_TrackWindowProxyDrag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_IsWindowModified(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowModified(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_SetWindowModified(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowModified(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_IsWindowPathSelectClick(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowPathSelectClick(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_WindowPathSelect(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_WindowPathSelect(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_HiliteWindowFrameForDrag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_HiliteWindowFrameForDrag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_TransitionWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_TransitionWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_MacMoveWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MacMoveWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short hGlobal;
return _res;
}
-static PyObject *WinObj_SizeWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SizeWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short w;
return _res;
}
-static PyObject *WinObj_GrowWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GrowWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *WinObj_DragWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_DragWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Point startPt;
return _res;
}
-static PyObject *WinObj_ZoomWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ZoomWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPartCode partCode;
return _res;
}
-static PyObject *WinObj_IsWindowCollapsable(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowCollapsable(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_IsWindowCollapsed(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowCollapsed(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_CollapseWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_CollapseWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowBounds(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowBounds(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_ResizeWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ResizeWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_SetWindowBounds(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowBounds(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_RepositionWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_RepositionWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_MoveWindowStructure(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MoveWindowStructure(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_IsWindowInStandardState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowInStandardState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_ZoomWindowIdeal(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ZoomWindowIdeal(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_GetWindowIdealUserState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowIdealUserState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_SetWindowIdealUserState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowIdealUserState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *WinObj_HideWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_HideWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_MacShowWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MacShowWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_ShowHide(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ShowHide(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean showFlag;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetWindowPropertyAttributes(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowPropertyAttributes(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_ChangeWindowPropertyAttributes(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ChangeWindowPropertyAttributes(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
}
#endif
-static PyObject *WinObj_TrackBox(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_TrackBox(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_TrackGoAway(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_TrackGoAway(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetAuxWin(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetAuxWin(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowGoAwayFlag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowSpareFlag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *WinObj_GetWindowPort(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowPort(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr _rv;
return _res;
}
-static PyObject *WinObj_GetWindowKind(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowKind(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
return _res;
}
-static PyObject *WinObj_MacIsWindowVisible(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MacIsWindowVisible(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *WinObj_IsWindowHilited(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowHilited(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *WinObj_IsWindowUpdatePending(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowUpdatePending(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *WinObj_MacGetNextWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MacGetNextWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *WinObj_GetWindowStandardState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowStandardState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rect;
return _res;
}
-static PyObject *WinObj_GetWindowUserState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowUserState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rect;
return _res;
}
-static PyObject *WinObj_SetWindowKind(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowKind(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short kind;
return _res;
}
-static PyObject *WinObj_SetWindowStandardState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowStandardState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rect;
return _res;
}
-static PyObject *WinObj_SetWindowUserState(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetWindowUserState(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect rect;
return _res;
}
-static PyObject *WinObj_SetPortWindowPort(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_SetPortWindowPort(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
return _res;
}
-static PyObject *WinObj_GetWindowPortBounds(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowPortBounds(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect bounds;
return _res;
}
-static PyObject *WinObj_IsWindowVisible(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_IsWindowVisible(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetWindowZoomFlag(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowZoomFlag(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
}
#endif
-static PyObject *WinObj_GetWindowStructureRgn(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowStructureRgn(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle r;
return _res;
}
-static PyObject *WinObj_GetWindowContentRgn(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowContentRgn(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle r;
return _res;
}
-static PyObject *WinObj_GetWindowUpdateRgn(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowUpdateRgn(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle r;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_GetWindowTitleWidth(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetWindowTitleWidth(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
}
#endif
-static PyObject *WinObj_GetNextWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_GetNextWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *WinObj_CloseWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_CloseWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
}
#endif
-static PyObject *WinObj_MoveWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_MoveWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short hGlobal;
return _res;
}
-static PyObject *WinObj_ShowWindow(_self, _args)
- WindowObject *_self;
- PyObject *_args;
+static PyObject *WinObj_ShowWindow(WindowObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
PyMethodChain WinObj_chain = { WinObj_methods, NULL };
-static PyObject *WinObj_getattr(self, name)
- WindowObject *self;
- char *name;
+static PyObject *WinObj_getattr(WindowObject *self, char *name)
{
return Py_FindMethodInChain(&WinObj_chain, (PyObject *)self, name);
}
#define WinObj_setattr NULL
-static int WinObj_compare(self, other)
- WindowObject *self, *other;
+static int WinObj_compare(WindowObject *self, WindowObject *other)
{
if ( self->ob_itself > other->ob_itself ) return 1;
if ( self->ob_itself < other->ob_itself ) return -1;
return 0;
}
-static PyObject * WinObj_repr(self)
- WindowObject *self;
+static PyObject * WinObj_repr(WindowObject *self)
{
char buf[100];
sprintf(buf, "<Window object at 0x%08.8x for 0x%08.8x>", self, self->ob_itself);
return PyString_FromString(buf);
}
-static int WinObj_hash(self)
- WindowObject *self;
+static int WinObj_hash(WindowObject *self)
{
return (int)self->ob_itself;
}
/* --------------------- End object type Window --------------------- */
-static PyObject *Win_GetNewCWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetNewCWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_NewWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_NewWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_GetNewWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetNewWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_NewCWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_NewCWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_CreateNewWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_CreateNewWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Win_CreateWindowFromResource(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_CreateWindowFromResource(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Win_ShowFloatingWindows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_ShowFloatingWindows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Win_HideFloatingWindows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_HideFloatingWindows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Win_AreFloatingWindowsVisible(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_AreFloatingWindowsVisible(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_SetDeskCPat(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_SetDeskCPat(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
PixPatHandle deskPixPat;
}
#endif
-static PyObject *Win_CheckUpdate(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_CheckUpdate(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Boolean _rv;
return _res;
}
-static PyObject *Win_MacFindWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_MacFindWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPartCode _rv;
return _res;
}
-static PyObject *Win_FrontWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_FrontWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_FrontNonFloatingWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_FrontNonFloatingWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Win_GetFrontWindowOfClass(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetFrontWindowOfClass(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
#if TARGET_API_MAC_CARBON
-static PyObject *Win_FindWindowOfClass(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_FindWindowOfClass(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_InitWindows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_InitWindows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
if (!PyArg_ParseTuple(_args, ""))
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_GetWMgrPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetWMgrPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
GrafPtr wPort;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_GetCWMgrPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetCWMgrPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
CGrafPtr wMgrCPort;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_InitFloatingWindows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_InitFloatingWindows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_InvalRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_InvalRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect badRect;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_InvalRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_InvalRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle badRgn;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_ValidRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_ValidRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
Rect goodRect;
#if !TARGET_API_MAC_CARBON
-static PyObject *Win_ValidRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_ValidRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle goodRgn;
}
#endif
-static PyObject *Win_CollapseAllWindows(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_CollapseAllWindows(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
OSStatus _err;
return _res;
}
-static PyObject *Win_PinRect(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_PinRect(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
long _rv;
return _res;
}
-static PyObject *Win_GetGrayRgn(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetGrayRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
RgnHandle _rv;
return _res;
}
-static PyObject *Win_GetWindowFromPort(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_GetWindowFromPort(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
WindowPtr _rv;
return _res;
}
-static PyObject *Win_WhichWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_WhichWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
}
-static PyObject *Win_FindWindow(_self, _args)
- PyObject *_self;
- PyObject *_args;
+static PyObject *Win_FindWindow(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
short _rv;
/* Return the object corresponding to the window, or NULL */
PyObject *
-WinObj_WhichWindow(w)
- WindowPtr w;
+WinObj_WhichWindow(WindowPtr w)
{
PyObject *it;
}
-void initWin()
+void initWin(void)
{
PyObject *m;
PyObject *d;
- PyMac_INIT_TOOLBOX_OBJECT_NEW(WinObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(WinObj_WhichWindow);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(WinObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(WindowPtr, WinObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(WindowPtr, WinObj_WhichWindow);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(WindowPtr, WinObj_Convert);
m = Py_InitModule("Win", Win_methods);
PropertyTag = OSTypeType("PropertyTag")
includestuff = includestuff + """
-#include <%s>""" % MACHEADERFILE + """
+#ifdef WITHOUT_FRAMEWORKS
+#include <Windows.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_WinObj_New(WindowRef);
/* Return the object corresponding to the window, or NULL */
PyObject *
-WinObj_WhichWindow(w)
- WindowPtr w;
+WinObj_WhichWindow(WindowPtr w)
{
PyObject *it;
"""
initstuff = initstuff + """
- PyMac_INIT_TOOLBOX_OBJECT_NEW(WinObj_New);
- PyMac_INIT_TOOLBOX_OBJECT_NEW(WinObj_WhichWindow);
- PyMac_INIT_TOOLBOX_OBJECT_CONVERT(WinObj_Convert);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(WindowPtr, WinObj_New);
+ PyMac_INIT_TOOLBOX_OBJECT_NEW(WindowPtr, WinObj_WhichWindow);
+ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(WindowPtr, WinObj_Convert);
"""
class MyObjectDefinition(GlobalObjectDefinition):
def outputCompare(self):
Output()
- Output("static int %s_compare(self, other)", self.prefix)
- IndentLevel()
- Output("%s *self, *other;", self.objecttype)
- DedentLevel()
+ Output("static int %s_compare(%s *self, %s *other)", self.prefix, self.objecttype, self.objecttype)
OutLbrace()
Output("if ( self->ob_itself > other->ob_itself ) return 1;")
Output("if ( self->ob_itself < other->ob_itself ) return -1;")
def outputHash(self):
Output()
- Output("static int %s_hash(self)", self.prefix)
- IndentLevel()
- Output("%s *self;", self.objecttype)
- DedentLevel()
+ Output("static int %s_hash(%s *self)", self.prefix, self.objecttype)
OutLbrace()
Output("return (int)self->ob_itself;")
OutRbrace()
def outputRepr(self):
Output()
- Output("static PyObject * %s_repr(self)", self.prefix)
- IndentLevel()
- Output("%s *self;", self.objecttype)
- DedentLevel()
+ Output("static PyObject * %s_repr(%s *self)", self.prefix, self.objecttype)
OutLbrace()
Output("char buf[100];")
Output("""sprintf(buf, "<Window object at 0x%%08.8x for 0x%%08.8x>", self, self->ob_itself);""")