{
PyObject *_res = NULL;
OSErr _err;
+#ifndef DisposeDrag
+ PyMac_PRECHECK(DisposeDrag);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = DisposeDrag(_self->ob_itself);
long dataPtr__len__;
int dataPtr__in_len__;
FlavorFlags theFlags;
+#ifndef AddDragItemFlavor
+ PyMac_PRECHECK(AddDragItemFlavor);
+#endif
if (!PyArg_ParseTuple(_args, "lO&z#l",
&theItemRef,
PyMac_GetOSType, &theType,
long dataPtr__len__;
int dataPtr__in_len__;
UInt32 dataOffset;
+#ifndef SetDragItemFlavorData
+ PyMac_PRECHECK(SetDragItemFlavorData);
+#endif
if (!PyArg_ParseTuple(_args, "lO&z#l",
&theItemRef,
PyMac_GetOSType, &theType,
RgnHandle imageRgn;
Point imageOffsetPt;
DragImageFlags theImageFlags;
+#ifndef SetDragImage
+ PyMac_PRECHECK(SetDragImage);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&l",
ResObj_Convert, &imagePixMap,
ResObj_Convert, &imageRgn,
OSErr _err;
DragBehaviors inBehaviorsToSet;
DragBehaviors inBehaviorsToClear;
+#ifndef ChangeDragBehaviors
+ PyMac_PRECHECK(ChangeDragBehaviors);
+#endif
if (!PyArg_ParseTuple(_args, "ll",
&inBehaviorsToSet,
&inBehaviorsToClear))
OSErr _err;
EventRecord theEvent;
RgnHandle theRegion;
+#ifndef TrackDrag
+ PyMac_PRECHECK(TrackDrag);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetEventRecord, &theEvent,
ResObj_Convert, &theRegion))
PyObject *_res = NULL;
OSErr _err;
UInt16 numItems;
+#ifndef CountDragItems
+ PyMac_PRECHECK(CountDragItems);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = CountDragItems(_self->ob_itself,
OSErr _err;
UInt16 index;
ItemReference theItemRef;
+#ifndef GetDragItemReferenceNumber
+ PyMac_PRECHECK(GetDragItemReferenceNumber);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&index))
return NULL;
OSErr _err;
ItemReference theItemRef;
UInt16 numFlavors;
+#ifndef CountDragItemFlavors
+ PyMac_PRECHECK(CountDragItemFlavors);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&theItemRef))
return NULL;
ItemReference theItemRef;
UInt16 index;
FlavorType theType;
+#ifndef GetFlavorType
+ PyMac_PRECHECK(GetFlavorType);
+#endif
if (!PyArg_ParseTuple(_args, "lH",
&theItemRef,
&index))
ItemReference theItemRef;
FlavorType theType;
FlavorFlags theFlags;
+#ifndef GetFlavorFlags
+ PyMac_PRECHECK(GetFlavorFlags);
+#endif
if (!PyArg_ParseTuple(_args, "lO&",
&theItemRef,
PyMac_GetOSType, &theType))
ItemReference theItemRef;
FlavorType theType;
Size dataSize;
+#ifndef GetFlavorDataSize
+ PyMac_PRECHECK(GetFlavorDataSize);
+#endif
if (!PyArg_ParseTuple(_args, "lO&",
&theItemRef,
PyMac_GetOSType, &theType))
long dataPtr__len__;
int dataPtr__in_len__;
UInt32 dataOffset;
+#ifndef GetFlavorData
+ PyMac_PRECHECK(GetFlavorData);
+#endif
if (!PyArg_ParseTuple(_args, "lO&il",
&theItemRef,
PyMac_GetOSType, &theType,
OSErr _err;
ItemReference theItemRef;
Rect itemBounds;
+#ifndef GetDragItemBounds
+ PyMac_PRECHECK(GetDragItemBounds);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&theItemRef))
return NULL;
OSErr _err;
ItemReference theItemRef;
Rect itemBounds;
+#ifndef SetDragItemBounds
+ PyMac_PRECHECK(SetDragItemBounds);
+#endif
if (!PyArg_ParseTuple(_args, "lO&",
&theItemRef,
PyMac_GetRect, &itemBounds))
PyObject *_res = NULL;
OSErr _err;
AEDesc dropLocation;
+#ifndef GetDropLocation
+ PyMac_PRECHECK(GetDropLocation);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetDropLocation(_self->ob_itself,
PyObject *_res = NULL;
OSErr _err;
AEDesc dropLocation;
+#ifndef SetDropLocation
+ PyMac_PRECHECK(SetDropLocation);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
AEDesc_Convert, &dropLocation))
return NULL;
PyObject *_res = NULL;
OSErr _err;
DragAttributes flags;
+#ifndef GetDragAttributes
+ PyMac_PRECHECK(GetDragAttributes);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetDragAttributes(_self->ob_itself,
OSErr _err;
Point mouse;
Point globalPinnedMouse;
+#ifndef GetDragMouse
+ PyMac_PRECHECK(GetDragMouse);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetDragMouse(_self->ob_itself,
PyObject *_res = NULL;
OSErr _err;
Point globalPinnedMouse;
+#ifndef SetDragMouse
+ PyMac_PRECHECK(SetDragMouse);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &globalPinnedMouse))
return NULL;
PyObject *_res = NULL;
OSErr _err;
Point globalInitialMouse;
+#ifndef GetDragOrigin
+ PyMac_PRECHECK(GetDragOrigin);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetDragOrigin(_self->ob_itself,
SInt16 modifiers;
SInt16 mouseDownModifiers;
SInt16 mouseUpModifiers;
+#ifndef GetDragModifiers
+ PyMac_PRECHECK(GetDragModifiers);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = GetDragModifiers(_self->ob_itself,
OSErr _err;
RgnHandle hiliteFrame;
Boolean inside;
+#ifndef ShowDragHilite
+ PyMac_PRECHECK(ShowDragHilite);
+#endif
if (!PyArg_ParseTuple(_args, "O&b",
ResObj_Convert, &hiliteFrame,
&inside))
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef HideDragHilite
+ PyMac_PRECHECK(HideDragHilite);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = HideDragHilite(_self->ob_itself);
OSErr _err;
SInt16 dH;
SInt16 dV;
+#ifndef DragPreScroll
+ PyMac_PRECHECK(DragPreScroll);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&dH,
&dV))
{
PyObject *_res = NULL;
OSErr _err;
+#ifndef DragPostScroll
+ PyMac_PRECHECK(DragPostScroll);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = DragPostScroll(_self->ob_itself);
PyObject *_res = NULL;
OSErr _err;
RgnHandle updateRgn;
+#ifndef UpdateDragHilite
+ PyMac_PRECHECK(UpdateDragHilite);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &updateRgn))
return NULL;
PyObject *_res = NULL;
OSErr _err;
DragRef theDrag;
+#ifndef NewDrag
+ PyMac_PRECHECK(NewDrag);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_err = NewDrag(&theDrag);
OSErr _err;
WindowPtr window;
RGBColor color;
+#ifndef GetDragHiliteColor
+ PyMac_PRECHECK(GetDragHiliteColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &window))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
Point initialMouse;
+#ifndef WaitMouseMoved
+ PyMac_PRECHECK(WaitMouseMoved);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &initialMouse))
return NULL;
Rect toRect;
SInt16 zoomSteps;
ZoomAcceleration acceleration;
+#ifndef ZoomRects
+ PyMac_PRECHECK(ZoomRects);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hh",
PyMac_GetRect, &fromRect,
PyMac_GetRect, &toRect,
Point zoomDistance;
SInt16 zoomSteps;
ZoomAcceleration acceleration;
+#ifndef ZoomRegion
+ PyMac_PRECHECK(ZoomRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&hh",
ResObj_Convert, ®ion,
PyMac_GetPoint, &zoomDistance,