{
PyObject *_res = NULL;
GrafPtr port;
+#ifndef MacSetPort
+ PyMac_PRECHECK(MacSetPort);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
{
PyObject *_res = NULL;
GrafPtr port;
+#ifndef GetPort
+ PyMac_PRECHECK(GetPort);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetPort(&port);
{
PyObject *_res = NULL;
short device;
+#ifndef GrafDevice
+ PyMac_PRECHECK(GrafDevice);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&device))
return NULL;
{
PyObject *_res = NULL;
BitMapPtr bm;
+#ifndef SetPortBits
+ PyMac_PRECHECK(SetPortBits);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
BMObj_Convert, &bm))
return NULL;
PyObject *_res = NULL;
short width;
short height;
+#ifndef PortSize
+ PyMac_PRECHECK(PortSize);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&width,
&height))
PyObject *_res = NULL;
short leftGlobal;
short topGlobal;
+#ifndef MovePortTo
+ PyMac_PRECHECK(MovePortTo);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&leftGlobal,
&topGlobal))
PyObject *_res = NULL;
short h;
short v;
+#ifndef SetOrigin
+ PyMac_PRECHECK(SetOrigin);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef SetClip
+ PyMac_PRECHECK(SetClip);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef GetClip
+ PyMac_PRECHECK(GetClip);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef ClipRect
+ PyMac_PRECHECK(ClipRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
PyObject *_res = NULL;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef BackPat
+ PyMac_PRECHECK(BackPat);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&pat__in__, &pat__in_len__))
return NULL;
static PyObject *Qd_InitCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef InitCursor
+ PyMac_PRECHECK(InitCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
InitCursor();
PyObject *_res = NULL;
Cursor *crsr__in__;
int crsr__in_len__;
+#ifndef MacSetCursor
+ PyMac_PRECHECK(MacSetCursor);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&crsr__in__, &crsr__in_len__))
return NULL;
static PyObject *Qd_HideCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef HideCursor
+ PyMac_PRECHECK(HideCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
HideCursor();
static PyObject *Qd_MacShowCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef MacShowCursor
+ PyMac_PRECHECK(MacShowCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
MacShowCursor();
static PyObject *Qd_ObscureCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ObscureCursor
+ PyMac_PRECHECK(ObscureCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ObscureCursor();
static PyObject *Qd_HidePen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef HidePen
+ PyMac_PRECHECK(HidePen);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
HidePen();
static PyObject *Qd_ShowPen(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ShowPen
+ PyMac_PRECHECK(ShowPen);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ShowPen();
{
PyObject *_res = NULL;
Point pt;
+#ifndef GetPen
+ PyMac_PRECHECK(GetPen);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetPen(&pt);
{
PyObject *_res = NULL;
PenState pnState__out__;
+#ifndef GetPenState
+ PyMac_PRECHECK(GetPenState);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetPenState(&pnState__out__);
PyObject *_res = NULL;
PenState *pnState__in__;
int pnState__in_len__;
+#ifndef SetPenState
+ PyMac_PRECHECK(SetPenState);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&pnState__in__, &pnState__in_len__))
return NULL;
PyObject *_res = NULL;
short width;
short height;
+#ifndef PenSize
+ PyMac_PRECHECK(PenSize);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&width,
&height))
{
PyObject *_res = NULL;
short mode;
+#ifndef PenMode
+ PyMac_PRECHECK(PenMode);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&mode))
return NULL;
PyObject *_res = NULL;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef PenPat
+ PyMac_PRECHECK(PenPat);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&pat__in__, &pat__in_len__))
return NULL;
static PyObject *Qd_PenNormal(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef PenNormal
+ PyMac_PRECHECK(PenNormal);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
PenNormal();
PyObject *_res = NULL;
short h;
short v;
+#ifndef MoveTo
+ PyMac_PRECHECK(MoveTo);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
PyObject *_res = NULL;
short dh;
short dv;
+#ifndef Move
+ PyMac_PRECHECK(Move);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&dh,
&dv))
PyObject *_res = NULL;
short h;
short v;
+#ifndef MacLineTo
+ PyMac_PRECHECK(MacLineTo);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
PyObject *_res = NULL;
short dh;
short dv;
+#ifndef Line
+ PyMac_PRECHECK(Line);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&dh,
&dv))
{
PyObject *_res = NULL;
long color;
+#ifndef ForeColor
+ PyMac_PRECHECK(ForeColor);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&color))
return NULL;
{
PyObject *_res = NULL;
long color;
+#ifndef BackColor
+ PyMac_PRECHECK(BackColor);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&color))
return NULL;
{
PyObject *_res = NULL;
short whichBit;
+#ifndef ColorBit
+ PyMac_PRECHECK(ColorBit);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&whichBit))
return NULL;
short top;
short right;
short bottom;
+#ifndef MacSetRect
+ PyMac_PRECHECK(MacSetRect);
+#endif
if (!PyArg_ParseTuple(_args, "hhhh",
&left,
&top,
Rect r;
short dh;
short dv;
+#ifndef MacOffsetRect
+ PyMac_PRECHECK(MacOffsetRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&dh,
Rect r;
short dh;
short dv;
+#ifndef MacInsetRect
+ PyMac_PRECHECK(MacInsetRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&dh,
Rect src1;
Rect src2;
Rect dstRect;
+#ifndef SectRect
+ PyMac_PRECHECK(SectRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &src1,
PyMac_GetRect, &src2))
Rect src1;
Rect src2;
Rect dstRect;
+#ifndef MacUnionRect
+ PyMac_PRECHECK(MacUnionRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &src1,
PyMac_GetRect, &src2))
Boolean _rv;
Rect rect1;
Rect rect2;
+#ifndef MacEqualRect
+ PyMac_PRECHECK(MacEqualRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &rect1,
PyMac_GetRect, &rect2))
PyObject *_res = NULL;
Boolean _rv;
Rect r;
+#ifndef EmptyRect
+ PyMac_PRECHECK(EmptyRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef MacFrameRect
+ PyMac_PRECHECK(MacFrameRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef PaintRect
+ PyMac_PRECHECK(PaintRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef EraseRect
+ PyMac_PRECHECK(EraseRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef MacInvertRect
+ PyMac_PRECHECK(MacInvertRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
Rect r;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef MacFillRect
+ PyMac_PRECHECK(MacFillRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
PyMac_GetRect, &r,
(char **)&pat__in__, &pat__in_len__))
{
PyObject *_res = NULL;
Rect r;
+#ifndef FrameOval
+ PyMac_PRECHECK(FrameOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef PaintOval
+ PyMac_PRECHECK(PaintOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef EraseOval
+ PyMac_PRECHECK(EraseOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef InvertOval
+ PyMac_PRECHECK(InvertOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
Rect r;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillOval
+ PyMac_PRECHECK(FillOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
PyMac_GetRect, &r,
(char **)&pat__in__, &pat__in_len__))
Rect r;
short ovalWidth;
short ovalHeight;
+#ifndef FrameRoundRect
+ PyMac_PRECHECK(FrameRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&ovalWidth,
Rect r;
short ovalWidth;
short ovalHeight;
+#ifndef PaintRoundRect
+ PyMac_PRECHECK(PaintRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&ovalWidth,
Rect r;
short ovalWidth;
short ovalHeight;
+#ifndef EraseRoundRect
+ PyMac_PRECHECK(EraseRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&ovalWidth,
Rect r;
short ovalWidth;
short ovalHeight;
+#ifndef InvertRoundRect
+ PyMac_PRECHECK(InvertRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&ovalWidth,
short ovalHeight;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillRoundRect
+ PyMac_PRECHECK(FillRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhs#",
PyMac_GetRect, &r,
&ovalWidth,
Rect r;
short startAngle;
short arcAngle;
+#ifndef FrameArc
+ PyMac_PRECHECK(FrameArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&startAngle,
Rect r;
short startAngle;
short arcAngle;
+#ifndef PaintArc
+ PyMac_PRECHECK(PaintArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&startAngle,
Rect r;
short startAngle;
short arcAngle;
+#ifndef EraseArc
+ PyMac_PRECHECK(EraseArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&startAngle,
Rect r;
short startAngle;
short arcAngle;
+#ifndef InvertArc
+ PyMac_PRECHECK(InvertArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&startAngle,
short arcAngle;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillArc
+ PyMac_PRECHECK(FillArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhs#",
PyMac_GetRect, &r,
&startAngle,
{
PyObject *_res = NULL;
RgnHandle _rv;
+#ifndef NewRgn
+ PyMac_PRECHECK(NewRgn);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = NewRgn();
static PyObject *Qd_OpenRgn(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef OpenRgn
+ PyMac_PRECHECK(OpenRgn);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
OpenRgn();
{
PyObject *_res = NULL;
RgnHandle dstRgn;
+#ifndef CloseRgn
+ PyMac_PRECHECK(CloseRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &dstRgn))
return NULL;
OSErr _err;
RgnHandle region;
BitMapPtr bMap;
+#ifndef BitMapToRegion
+ PyMac_PRECHECK(BitMapToRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, ®ion,
BMObj_Convert, &bMap))
PyObject *_res = NULL;
RgnHandle region;
Handle flattenedRgnDataHdl;
+#ifndef RgnToHandle
+ PyMac_PRECHECK(RgnToHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, ®ion,
ResObj_Convert, &flattenedRgnDataHdl))
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef DisposeRgn
+ PyMac_PRECHECK(DisposeRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
PyObject *_res = NULL;
RgnHandle srcRgn;
RgnHandle dstRgn;
+#ifndef MacCopyRgn
+ PyMac_PRECHECK(MacCopyRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &srcRgn,
ResObj_Convert, &dstRgn))
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef SetEmptyRgn
+ PyMac_PRECHECK(SetEmptyRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
short top;
short right;
short bottom;
+#ifndef MacSetRectRgn
+ PyMac_PRECHECK(MacSetRectRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhhh",
ResObj_Convert, &rgn,
&left,
PyObject *_res = NULL;
RgnHandle rgn;
Rect r;
+#ifndef RectRgn
+ PyMac_PRECHECK(RectRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &rgn,
PyMac_GetRect, &r))
RgnHandle rgn;
short dh;
short dv;
+#ifndef MacOffsetRgn
+ PyMac_PRECHECK(MacOffsetRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
ResObj_Convert, &rgn,
&dh,
RgnHandle rgn;
short dh;
short dv;
+#ifndef InsetRgn
+ PyMac_PRECHECK(InsetRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
ResObj_Convert, &rgn,
&dh,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef SectRgn
+ PyMac_PRECHECK(SectRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef MacUnionRgn
+ PyMac_PRECHECK(MacUnionRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef DiffRgn
+ PyMac_PRECHECK(DiffRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef MacXorRgn
+ PyMac_PRECHECK(MacXorRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
Boolean _rv;
Rect r;
RgnHandle rgn;
+#ifndef RectInRgn
+ PyMac_PRECHECK(RectInRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &r,
ResObj_Convert, &rgn))
Boolean _rv;
RgnHandle rgnA;
RgnHandle rgnB;
+#ifndef MacEqualRgn
+ PyMac_PRECHECK(MacEqualRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &rgnA,
ResObj_Convert, &rgnB))
PyObject *_res = NULL;
Boolean _rv;
RgnHandle rgn;
+#ifndef EmptyRgn
+ PyMac_PRECHECK(EmptyRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef MacFrameRgn
+ PyMac_PRECHECK(MacFrameRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef MacPaintRgn
+ PyMac_PRECHECK(MacPaintRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef EraseRgn
+ PyMac_PRECHECK(EraseRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef MacInvertRgn
+ PyMac_PRECHECK(MacInvertRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
RgnHandle rgn;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef MacFillRgn
+ PyMac_PRECHECK(MacFillRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
ResObj_Convert, &rgn,
(char **)&pat__in__, &pat__in_len__))
short dh;
short dv;
RgnHandle updateRgn;
+#ifndef ScrollRect
+ PyMac_PRECHECK(ScrollRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &r,
&dh,
Rect dstRect;
short mode;
RgnHandle maskRgn;
+#ifndef CopyBits
+ PyMac_PRECHECK(CopyBits);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&O&hO&",
BMObj_Convert, &srcBits,
BMObj_Convert, &dstBits,
Rect srcRect;
Rect maskRect;
Rect dstRect;
+#ifndef CopyMask
+ PyMac_PRECHECK(CopyMask);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&O&O&O&",
BMObj_Convert, &srcBits,
BMObj_Convert, &maskBits,
PyObject *_res = NULL;
PicHandle _rv;
Rect picFrame;
+#ifndef OpenPicture
+ PyMac_PRECHECK(OpenPicture);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &picFrame))
return NULL;
short kind;
short dataSize;
Handle dataHandle;
+#ifndef PicComment
+ PyMac_PRECHECK(PicComment);
+#endif
if (!PyArg_ParseTuple(_args, "hhO&",
&kind,
&dataSize,
static PyObject *Qd_ClosePicture(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ClosePicture
+ PyMac_PRECHECK(ClosePicture);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ClosePicture();
PyObject *_res = NULL;
PicHandle myPicture;
Rect dstRect;
+#ifndef DrawPicture
+ PyMac_PRECHECK(DrawPicture);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &myPicture,
PyMac_GetRect, &dstRect))
{
PyObject *_res = NULL;
PicHandle myPicture;
+#ifndef KillPicture
+ PyMac_PRECHECK(KillPicture);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &myPicture))
return NULL;
{
PyObject *_res = NULL;
PolyHandle _rv;
+#ifndef OpenPoly
+ PyMac_PRECHECK(OpenPoly);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = OpenPoly();
static PyObject *Qd_ClosePoly(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ClosePoly
+ PyMac_PRECHECK(ClosePoly);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ClosePoly();
{
PyObject *_res = NULL;
PolyHandle poly;
+#ifndef KillPoly
+ PyMac_PRECHECK(KillPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &poly))
return NULL;
PolyHandle poly;
short dh;
short dv;
+#ifndef OffsetPoly
+ PyMac_PRECHECK(OffsetPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
ResObj_Convert, &poly,
&dh,
{
PyObject *_res = NULL;
PolyHandle poly;
+#ifndef FramePoly
+ PyMac_PRECHECK(FramePoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &poly))
return NULL;
{
PyObject *_res = NULL;
PolyHandle poly;
+#ifndef PaintPoly
+ PyMac_PRECHECK(PaintPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &poly))
return NULL;
{
PyObject *_res = NULL;
PolyHandle poly;
+#ifndef ErasePoly
+ PyMac_PRECHECK(ErasePoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &poly))
return NULL;
{
PyObject *_res = NULL;
PolyHandle poly;
+#ifndef InvertPoly
+ PyMac_PRECHECK(InvertPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &poly))
return NULL;
PolyHandle poly;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillPoly
+ PyMac_PRECHECK(FillPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
ResObj_Convert, &poly,
(char **)&pat__in__, &pat__in_len__))
Point pt;
short h;
short v;
+#ifndef SetPt
+ PyMac_PRECHECK(SetPt);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
{
PyObject *_res = NULL;
Point pt;
+#ifndef LocalToGlobal
+ PyMac_PRECHECK(LocalToGlobal);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &pt))
return NULL;
{
PyObject *_res = NULL;
Point pt;
+#ifndef GlobalToLocal
+ PyMac_PRECHECK(GlobalToLocal);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &pt))
return NULL;
{
PyObject *_res = NULL;
short _rv;
+#ifndef Random
+ PyMac_PRECHECK(Random);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = Random();
Boolean _rv;
short h;
short v;
+#ifndef MacGetPixel
+ PyMac_PRECHECK(MacGetPixel);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
Point pt;
Rect srcRect;
Rect dstRect;
+#ifndef ScalePt
+ PyMac_PRECHECK(ScalePt);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
PyMac_GetPoint, &pt,
PyMac_GetRect, &srcRect,
Point pt;
Rect srcRect;
Rect dstRect;
+#ifndef MapPt
+ PyMac_PRECHECK(MapPt);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
PyMac_GetPoint, &pt,
PyMac_GetRect, &srcRect,
Rect r;
Rect srcRect;
Rect dstRect;
+#ifndef MapRect
+ PyMac_PRECHECK(MapRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
PyMac_GetRect, &r,
PyMac_GetRect, &srcRect,
RgnHandle rgn;
Rect srcRect;
Rect dstRect;
+#ifndef MapRgn
+ PyMac_PRECHECK(MapRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &rgn,
PyMac_GetRect, &srcRect,
PolyHandle poly;
Rect srcRect;
Rect dstRect;
+#ifndef MapPoly
+ PyMac_PRECHECK(MapPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &poly,
PyMac_GetRect, &srcRect,
Rect dstRect;
short mode;
RgnHandle maskRgn;
+#ifndef StdBits
+ PyMac_PRECHECK(StdBits);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&hO&",
BMObj_Convert, &srcBits,
PyMac_GetRect, &srcRect,
PyObject *_res = NULL;
Point src;
Point dst;
+#ifndef AddPt
+ PyMac_PRECHECK(AddPt);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &src,
PyMac_GetPoint, &dst))
Boolean _rv;
Point pt1;
Point pt2;
+#ifndef EqualPt
+ PyMac_PRECHECK(EqualPt);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &pt1,
PyMac_GetPoint, &pt2))
Boolean _rv;
Point pt;
Rect r;
+#ifndef MacPtInRect
+ PyMac_PRECHECK(MacPtInRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &pt,
PyMac_GetRect, &r))
Point pt1;
Point pt2;
Rect dstRect;
+#ifndef Pt2Rect
+ PyMac_PRECHECK(Pt2Rect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &pt1,
PyMac_GetPoint, &pt2))
Rect r;
Point pt;
short angle;
+#ifndef PtToAngle
+ PyMac_PRECHECK(PtToAngle);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &r,
PyMac_GetPoint, &pt))
PyObject *_res = NULL;
Point src;
Point dst;
+#ifndef SubPt
+ PyMac_PRECHECK(SubPt);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &src,
PyMac_GetPoint, &dst))
Boolean _rv;
Point pt;
RgnHandle rgn;
+#ifndef PtInRgn
+ PyMac_PRECHECK(PtInRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &pt,
ResObj_Convert, &rgn))
{
PyObject *_res = NULL;
PixMapHandle _rv;
+#ifndef NewPixMap
+ PyMac_PRECHECK(NewPixMap);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = NewPixMap();
{
PyObject *_res = NULL;
PixMapHandle pm;
+#ifndef DisposePixMap
+ PyMac_PRECHECK(DisposePixMap);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pm))
return NULL;
PyObject *_res = NULL;
PixMapHandle srcPM;
PixMapHandle dstPM;
+#ifndef CopyPixMap
+ PyMac_PRECHECK(CopyPixMap);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &srcPM,
ResObj_Convert, &dstPM))
{
PyObject *_res = NULL;
PixPatHandle _rv;
+#ifndef NewPixPat
+ PyMac_PRECHECK(NewPixPat);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = NewPixPat();
{
PyObject *_res = NULL;
PixPatHandle pp;
+#ifndef DisposePixPat
+ PyMac_PRECHECK(DisposePixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pp))
return NULL;
PyObject *_res = NULL;
PixPatHandle srcPP;
PixPatHandle dstPP;
+#ifndef CopyPixPat
+ PyMac_PRECHECK(CopyPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &srcPP,
ResObj_Convert, &dstPP))
{
PyObject *_res = NULL;
PixPatHandle pp;
+#ifndef PenPixPat
+ PyMac_PRECHECK(PenPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pp))
return NULL;
{
PyObject *_res = NULL;
PixPatHandle pp;
+#ifndef BackPixPat
+ PyMac_PRECHECK(BackPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pp))
return NULL;
PyObject *_res = NULL;
PixPatHandle _rv;
short patID;
+#ifndef GetPixPat
+ PyMac_PRECHECK(GetPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&patID))
return NULL;
PyObject *_res = NULL;
PixPatHandle pp;
RGBColor myColor;
+#ifndef MakeRGBPat
+ PyMac_PRECHECK(MakeRGBPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &pp,
QdRGB_Convert, &myColor))
PyObject *_res = NULL;
Rect r;
PixPatHandle pp;
+#ifndef FillCRect
+ PyMac_PRECHECK(FillCRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &r,
ResObj_Convert, &pp))
PyObject *_res = NULL;
Rect r;
PixPatHandle pp;
+#ifndef FillCOval
+ PyMac_PRECHECK(FillCOval);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &r,
ResObj_Convert, &pp))
short ovalWidth;
short ovalHeight;
PixPatHandle pp;
+#ifndef FillCRoundRect
+ PyMac_PRECHECK(FillCRoundRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &r,
&ovalWidth,
short startAngle;
short arcAngle;
PixPatHandle pp;
+#ifndef FillCArc
+ PyMac_PRECHECK(FillCArc);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhO&",
PyMac_GetRect, &r,
&startAngle,
PyObject *_res = NULL;
RgnHandle rgn;
PixPatHandle pp;
+#ifndef FillCRgn
+ PyMac_PRECHECK(FillCRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &rgn,
ResObj_Convert, &pp))
PyObject *_res = NULL;
PolyHandle poly;
PixPatHandle pp;
+#ifndef FillCPoly
+ PyMac_PRECHECK(FillCPoly);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &poly,
ResObj_Convert, &pp))
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef RGBForeColor
+ PyMac_PRECHECK(RGBForeColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &color))
return NULL;
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef RGBBackColor
+ PyMac_PRECHECK(RGBBackColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &color))
return NULL;
short h;
short v;
RGBColor cPix;
+#ifndef SetCPixel
+ PyMac_PRECHECK(SetCPixel);
+#endif
if (!PyArg_ParseTuple(_args, "hhO&",
&h,
&v,
{
PyObject *_res = NULL;
PixMapHandle pm;
+#ifndef SetPortPix
+ PyMac_PRECHECK(SetPortPix);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pm))
return NULL;
short h;
short v;
RGBColor cPix;
+#ifndef GetCPixel
+ PyMac_PRECHECK(GetCPixel);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef GetForeColor
+ PyMac_PRECHECK(GetForeColor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetForeColor(&color);
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef GetBackColor
+ PyMac_PRECHECK(GetBackColor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetBackColor(&color);
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef OpColor
+ PyMac_PRECHECK(OpColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &color))
return NULL;
{
PyObject *_res = NULL;
RGBColor color;
+#ifndef HiliteColor
+ PyMac_PRECHECK(HiliteColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &color))
return NULL;
{
PyObject *_res = NULL;
CTabHandle cTable;
+#ifndef DisposeCTable
+ PyMac_PRECHECK(DisposeCTable);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &cTable))
return NULL;
PyObject *_res = NULL;
CTabHandle _rv;
short ctID;
+#ifndef GetCTable
+ PyMac_PRECHECK(GetCTable);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&ctID))
return NULL;
PyObject *_res = NULL;
CCrsrHandle _rv;
short crsrID;
+#ifndef GetCCursor
+ PyMac_PRECHECK(GetCCursor);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&crsrID))
return NULL;
{
PyObject *_res = NULL;
CCrsrHandle cCrsr;
+#ifndef SetCCursor
+ PyMac_PRECHECK(SetCCursor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &cCrsr))
return NULL;
static PyObject *Qd_AllocCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef AllocCursor
+ PyMac_PRECHECK(AllocCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
AllocCursor();
{
PyObject *_res = NULL;
CCrsrHandle cCrsr;
+#ifndef DisposeCCursor
+ PyMac_PRECHECK(DisposeCCursor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &cCrsr))
return NULL;
PyObject *_res = NULL;
GDHandle _rv;
Rect globalRect;
+#ifndef GetMaxDevice
+ PyMac_PRECHECK(GetMaxDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &globalRect))
return NULL;
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetCTSeed
+ PyMac_PRECHECK(GetCTSeed);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetCTSeed();
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef GetDeviceList
+ PyMac_PRECHECK(GetDeviceList);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetDeviceList();
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef GetMainDevice
+ PyMac_PRECHECK(GetMainDevice);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetMainDevice();
PyObject *_res = NULL;
GDHandle _rv;
GDHandle curDevice;
+#ifndef GetNextDevice
+ PyMac_PRECHECK(GetNextDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &curDevice))
return NULL;
Boolean _rv;
GDHandle gdh;
short attribute;
+#ifndef TestDeviceAttribute
+ PyMac_PRECHECK(TestDeviceAttribute);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
ResObj_Convert, &gdh,
&attribute))
GDHandle gdh;
short attribute;
Boolean value;
+#ifndef SetDeviceAttribute
+ PyMac_PRECHECK(SetDeviceAttribute);
+#endif
if (!PyArg_ParseTuple(_args, "O&hb",
ResObj_Convert, &gdh,
&attribute,
short qdRefNum;
long mode;
GDHandle gdh;
+#ifndef InitGDevice
+ PyMac_PRECHECK(InitGDevice);
+#endif
if (!PyArg_ParseTuple(_args, "hlO&",
&qdRefNum,
&mode,
GDHandle _rv;
short refNum;
long mode;
+#ifndef NewGDevice
+ PyMac_PRECHECK(NewGDevice);
+#endif
if (!PyArg_ParseTuple(_args, "hl",
&refNum,
&mode))
{
PyObject *_res = NULL;
GDHandle gdh;
+#ifndef DisposeGDevice
+ PyMac_PRECHECK(DisposeGDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &gdh))
return NULL;
{
PyObject *_res = NULL;
GDHandle gd;
+#ifndef SetGDevice
+ PyMac_PRECHECK(SetGDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &gd))
return NULL;
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef GetGDevice
+ PyMac_PRECHECK(GetGDevice);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetGDevice();
PyObject *_res = NULL;
long _rv;
RGBColor myColor;
+#ifndef Color2Index
+ PyMac_PRECHECK(Color2Index);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &myColor))
return NULL;
PyObject *_res = NULL;
long index;
RGBColor aColor;
+#ifndef Index2Color
+ PyMac_PRECHECK(Index2Color);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&index))
return NULL;
{
PyObject *_res = NULL;
RGBColor myColor;
+#ifndef InvertColor
+ PyMac_PRECHECK(InvertColor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
InvertColor(&myColor);
PyObject *_res = NULL;
Boolean _rv;
RGBColor color;
+#ifndef RealColor
+ PyMac_PRECHECK(RealColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &color))
return NULL;
CTabHandle myColors;
short iTabRes;
CTabHandle targetTbl;
+#ifndef GetSubTable
+ PyMac_PRECHECK(GetSubTable);
+#endif
if (!PyArg_ParseTuple(_args, "O&hO&",
ResObj_Convert, &myColors,
&iTabRes,
CTabHandle cTabH;
ITabHandle iTabH;
short res;
+#ifndef MakeITable
+ PyMac_PRECHECK(MakeITable);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&h",
ResObj_Convert, &cTabH,
ResObj_Convert, &iTabH,
{
PyObject *_res = NULL;
short id;
+#ifndef SetClientID
+ PyMac_PRECHECK(SetClientID);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&id))
return NULL;
PyObject *_res = NULL;
short index;
Boolean protect;
+#ifndef ProtectEntry
+ PyMac_PRECHECK(ProtectEntry);
+#endif
if (!PyArg_ParseTuple(_args, "hb",
&index,
&protect))
PyObject *_res = NULL;
short index;
Boolean reserve;
+#ifndef ReserveEntry
+ PyMac_PRECHECK(ReserveEntry);
+#endif
if (!PyArg_ParseTuple(_args, "hb",
&index,
&reserve))
{
PyObject *_res = NULL;
short _rv;
+#ifndef QDError
+ PyMac_PRECHECK(QDError);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = QDError();
Rect dstRect;
short mode;
RgnHandle maskRgn;
+#ifndef CopyDeepMask
+ PyMac_PRECHECK(CopyDeepMask);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&O&O&O&hO&",
BMObj_Convert, &srcBits,
BMObj_Convert, &maskBits,
PyObject *_res = NULL;
PatHandle _rv;
short patternID;
+#ifndef GetPattern
+ PyMac_PRECHECK(GetPattern);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&patternID))
return NULL;
PyObject *_res = NULL;
CursHandle _rv;
short cursorID;
+#ifndef MacGetCursor
+ PyMac_PRECHECK(MacGetCursor);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&cursorID))
return NULL;
PyObject *_res = NULL;
PicHandle _rv;
short pictureID;
+#ifndef GetPicture
+ PyMac_PRECHECK(GetPicture);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&pictureID))
return NULL;
long _rv;
Point ptA;
Point ptB;
+#ifndef DeltaPoint
+ PyMac_PRECHECK(DeltaPoint);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &ptA,
PyMac_GetPoint, &ptB))
PyObject *_res = NULL;
Rect shieldRect;
Point offsetPt;
+#ifndef ShieldCursor
+ PyMac_PRECHECK(ShieldCursor);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &shieldRect,
PyMac_GetPoint, &offsetPt))
PyObject *_res = NULL;
short scrnHRes;
short scrnVRes;
+#ifndef ScreenRes
+ PyMac_PRECHECK(ScreenRes);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ScreenRes(&scrnHRes,
Pattern thePat__out__;
short patternListID;
short index;
+#ifndef GetIndPattern
+ PyMac_PRECHECK(GetIndPattern);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&patternListID,
&index))
PyObject *_res = NULL;
Fixed _rv;
short angle;
+#ifndef SlopeFromAngle
+ PyMac_PRECHECK(SlopeFromAngle);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&angle))
return NULL;
PyObject *_res = NULL;
short _rv;
Fixed slope;
+#ifndef AngleFromSlope
+ PyMac_PRECHECK(AngleFromSlope);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFixed, &slope))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsValidPort
+ PyMac_PRECHECK(IsValidPort);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
PixMapHandle _rv;
CGrafPtr port;
+#ifndef GetPortPixMap
+ PyMac_PRECHECK(GetPortPixMap);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
const BitMap * _rv;
CGrafPtr port;
+#ifndef GetPortBitMapForCopyBits
+ PyMac_PRECHECK(GetPortBitMapForCopyBits);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
Rect rect;
+#ifndef GetPortBounds
+ PyMac_PRECHECK(GetPortBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
RGBColor foreColor;
+#ifndef GetPortForeColor
+ PyMac_PRECHECK(GetPortForeColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
RGBColor backColor;
+#ifndef GetPortBackColor
+ PyMac_PRECHECK(GetPortBackColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
RGBColor opColor;
+#ifndef GetPortOpColor
+ PyMac_PRECHECK(GetPortOpColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
RGBColor hiliteColor;
+#ifndef GetPortHiliteColor
+ PyMac_PRECHECK(GetPortHiliteColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortTextFont
+ PyMac_PRECHECK(GetPortTextFont);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Style _rv;
CGrafPtr port;
+#ifndef GetPortTextFace
+ PyMac_PRECHECK(GetPortTextFace);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortTextMode
+ PyMac_PRECHECK(GetPortTextMode);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortTextSize
+ PyMac_PRECHECK(GetPortTextSize);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortChExtra
+ PyMac_PRECHECK(GetPortChExtra);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortFracHPenLocation
+ PyMac_PRECHECK(GetPortFracHPenLocation);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Fixed _rv;
CGrafPtr port;
+#ifndef GetPortSpExtra
+ PyMac_PRECHECK(GetPortSpExtra);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
short _rv;
CGrafPtr port;
+#ifndef GetPortPenVisibility
+ PyMac_PRECHECK(GetPortPenVisibility);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
RgnHandle _rv;
CGrafPtr port;
RgnHandle visRgn;
+#ifndef GetPortVisibleRegion
+ PyMac_PRECHECK(GetPortVisibleRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &visRgn))
RgnHandle _rv;
CGrafPtr port;
RgnHandle clipRgn;
+#ifndef GetPortClipRegion
+ PyMac_PRECHECK(GetPortClipRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &clipRgn))
PixPatHandle _rv;
CGrafPtr port;
PixPatHandle backPattern;
+#ifndef GetPortBackPixPat
+ PyMac_PRECHECK(GetPortBackPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &backPattern))
PixPatHandle _rv;
CGrafPtr port;
PixPatHandle penPattern;
+#ifndef GetPortPenPixPat
+ PyMac_PRECHECK(GetPortPenPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &penPattern))
PixPatHandle _rv;
CGrafPtr port;
PixPatHandle fillPattern;
+#ifndef GetPortFillPixPat
+ PyMac_PRECHECK(GetPortFillPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &fillPattern))
PyObject *_res = NULL;
CGrafPtr port;
Point penSize;
+#ifndef GetPortPenSize
+ PyMac_PRECHECK(GetPortPenSize);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
PyMac_GetPoint, &penSize))
PyObject *_res = NULL;
SInt32 _rv;
CGrafPtr port;
+#ifndef GetPortPenMode
+ PyMac_PRECHECK(GetPortPenMode);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
Point penLocation;
+#ifndef GetPortPenLocation
+ PyMac_PRECHECK(GetPortPenLocation);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
PyMac_GetPoint, &penLocation))
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsPortRegionBeingDefined
+ PyMac_PRECHECK(IsPortRegionBeingDefined);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsPortPictureBeingDefined
+ PyMac_PRECHECK(IsPortPictureBeingDefined);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsPortPolyBeingDefined
+ PyMac_PRECHECK(IsPortPolyBeingDefined);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsPortOffscreen
+ PyMac_PRECHECK(IsPortOffscreen);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef IsPortColor
+ PyMac_PRECHECK(IsPortColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
Rect rect;
+#ifndef SetPortBounds
+ PyMac_PRECHECK(SetPortBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
PyMac_GetRect, &rect))
PyObject *_res = NULL;
CGrafPtr port;
RGBColor opColor;
+#ifndef SetPortOpColor
+ PyMac_PRECHECK(SetPortOpColor);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
QdRGB_Convert, &opColor))
PyObject *_res = NULL;
CGrafPtr port;
RgnHandle visRgn;
+#ifndef SetPortVisibleRegion
+ PyMac_PRECHECK(SetPortVisibleRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &visRgn))
PyObject *_res = NULL;
CGrafPtr port;
RgnHandle clipRgn;
+#ifndef SetPortClipRegion
+ PyMac_PRECHECK(SetPortClipRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &clipRgn))
PyObject *_res = NULL;
CGrafPtr port;
PixPatHandle penPattern;
+#ifndef SetPortPenPixPat
+ PyMac_PRECHECK(SetPortPenPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &penPattern))
PyObject *_res = NULL;
CGrafPtr port;
PixPatHandle penPattern;
+#ifndef SetPortFillPixPat
+ PyMac_PRECHECK(SetPortFillPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &penPattern))
PyObject *_res = NULL;
CGrafPtr port;
PixPatHandle backPattern;
+#ifndef SetPortBackPixPat
+ PyMac_PRECHECK(SetPortBackPixPat);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &backPattern))
PyObject *_res = NULL;
CGrafPtr port;
Point penSize;
+#ifndef SetPortPenSize
+ PyMac_PRECHECK(SetPortPenSize);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
PyMac_GetPoint, &penSize))
PyObject *_res = NULL;
CGrafPtr port;
SInt32 penMode;
+#ifndef SetPortPenMode
+ PyMac_PRECHECK(SetPortPenMode);
+#endif
if (!PyArg_ParseTuple(_args, "O&l",
GrafObj_Convert, &port,
&penMode))
PyObject *_res = NULL;
CGrafPtr port;
short pnLocHFrac;
+#ifndef SetPortFracHPenLocation
+ PyMac_PRECHECK(SetPortFracHPenLocation);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
GrafObj_Convert, &port,
&pnLocHFrac))
PyObject *_res = NULL;
PixMapHandle pixMap;
Rect bounds;
+#ifndef GetPixBounds
+ PyMac_PRECHECK(GetPixBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pixMap))
return NULL;
PyObject *_res = NULL;
short _rv;
PixMapHandle pixMap;
+#ifndef GetPixDepth
+ PyMac_PRECHECK(GetPixDepth);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &pixMap))
return NULL;
{
PyObject *_res = NULL;
long _rv;
+#ifndef GetQDGlobalsRandomSeed
+ PyMac_PRECHECK(GetQDGlobalsRandomSeed);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetQDGlobalsRandomSeed();
{
PyObject *_res = NULL;
BitMap screenBits;
+#ifndef GetQDGlobalsScreenBits
+ PyMac_PRECHECK(GetQDGlobalsScreenBits);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsScreenBits(&screenBits);
{
PyObject *_res = NULL;
Cursor arrow__out__;
+#ifndef GetQDGlobalsArrow
+ PyMac_PRECHECK(GetQDGlobalsArrow);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsArrow(&arrow__out__);
{
PyObject *_res = NULL;
Pattern dkGray__out__;
+#ifndef GetQDGlobalsDarkGray
+ PyMac_PRECHECK(GetQDGlobalsDarkGray);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsDarkGray(&dkGray__out__);
{
PyObject *_res = NULL;
Pattern ltGray__out__;
+#ifndef GetQDGlobalsLightGray
+ PyMac_PRECHECK(GetQDGlobalsLightGray);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsLightGray(<Gray__out__);
{
PyObject *_res = NULL;
Pattern gray__out__;
+#ifndef GetQDGlobalsGray
+ PyMac_PRECHECK(GetQDGlobalsGray);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsGray(&gray__out__);
{
PyObject *_res = NULL;
Pattern black__out__;
+#ifndef GetQDGlobalsBlack
+ PyMac_PRECHECK(GetQDGlobalsBlack);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsBlack(&black__out__);
{
PyObject *_res = NULL;
Pattern white__out__;
+#ifndef GetQDGlobalsWhite
+ PyMac_PRECHECK(GetQDGlobalsWhite);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetQDGlobalsWhite(&white__out__);
{
PyObject *_res = NULL;
CGrafPtr _rv;
+#ifndef GetQDGlobalsThePort
+ PyMac_PRECHECK(GetQDGlobalsThePort);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetQDGlobalsThePort();
{
PyObject *_res = NULL;
long randomSeed;
+#ifndef SetQDGlobalsRandomSeed
+ PyMac_PRECHECK(SetQDGlobalsRandomSeed);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&randomSeed))
return NULL;
PyObject *_res = NULL;
Cursor *arrow__in__;
int arrow__in_len__;
+#ifndef SetQDGlobalsArrow
+ PyMac_PRECHECK(SetQDGlobalsArrow);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&arrow__in__, &arrow__in_len__))
return NULL;
PyObject *_res = NULL;
RgnHandle region;
Rect bounds;
+#ifndef GetRegionBounds
+ PyMac_PRECHECK(GetRegionBounds);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, ®ion))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
RgnHandle region;
+#ifndef IsRegionRectangular
+ PyMac_PRECHECK(IsRegionRectangular);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, ®ion))
return NULL;
{
PyObject *_res = NULL;
CGrafPtr _rv;
+#ifndef CreateNewPort
+ PyMac_PRECHECK(CreateNewPort);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = CreateNewPort();
{
PyObject *_res = NULL;
CGrafPtr port;
+#ifndef DisposePort
+ PyMac_PRECHECK(DisposePort);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
{
PyObject *_res = NULL;
OSErr err;
+#ifndef SetQDError
+ PyMac_PRECHECK(SetQDError);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&err))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef QDIsPortBuffered
+ PyMac_PRECHECK(QDIsPortBuffered);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
Boolean _rv;
CGrafPtr port;
+#ifndef QDIsPortBufferDirty
+ PyMac_PRECHECK(QDIsPortBufferDirty);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &port))
return NULL;
PyObject *_res = NULL;
CGrafPtr port;
RgnHandle region;
+#ifndef QDFlushPortBuffer
+ PyMac_PRECHECK(QDFlushPortBuffer);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
OptResObj_Convert, ®ion))
OSStatus _err;
CGrafPtr port;
RgnHandle rgn;
+#ifndef QDGetDirtyRegion
+ PyMac_PRECHECK(QDGetDirtyRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &rgn))
OSStatus _err;
CGrafPtr port;
RgnHandle rgn;
+#ifndef QDSetDirtyRegion
+ PyMac_PRECHECK(QDSetDirtyRegion);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
ResObj_Convert, &rgn))
{
PyObject *_res = NULL;
SInt16 _rv;
+#ifndef LMGetScrVRes
+ PyMac_PRECHECK(LMGetScrVRes);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetScrVRes();
{
PyObject *_res = NULL;
SInt16 value;
+#ifndef LMSetScrVRes
+ PyMac_PRECHECK(LMSetScrVRes);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&value))
return NULL;
{
PyObject *_res = NULL;
SInt16 _rv;
+#ifndef LMGetScrHRes
+ PyMac_PRECHECK(LMGetScrHRes);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetScrHRes();
{
PyObject *_res = NULL;
SInt16 value;
+#ifndef LMSetScrHRes
+ PyMac_PRECHECK(LMSetScrHRes);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&value))
return NULL;
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef LMGetMainDevice
+ PyMac_PRECHECK(LMGetMainDevice);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetMainDevice();
{
PyObject *_res = NULL;
GDHandle value;
+#ifndef LMSetMainDevice
+ PyMac_PRECHECK(LMSetMainDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef LMGetDeviceList
+ PyMac_PRECHECK(LMGetDeviceList);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetDeviceList();
{
PyObject *_res = NULL;
GDHandle value;
+#ifndef LMSetDeviceList
+ PyMac_PRECHECK(LMSetDeviceList);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef LMGetQDColors
+ PyMac_PRECHECK(LMGetQDColors);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetQDColors();
{
PyObject *_res = NULL;
Handle value;
+#ifndef LMSetQDColors
+ PyMac_PRECHECK(LMSetQDColors);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef LMGetWidthListHand
+ PyMac_PRECHECK(LMGetWidthListHand);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetWidthListHand();
{
PyObject *_res = NULL;
Handle value;
+#ifndef LMSetWidthListHand
+ PyMac_PRECHECK(LMSetWidthListHand);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
UInt8 _rv;
+#ifndef LMGetHiliteMode
+ PyMac_PRECHECK(LMGetHiliteMode);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetHiliteMode();
{
PyObject *_res = NULL;
UInt8 value;
+#ifndef LMSetHiliteMode
+ PyMac_PRECHECK(LMSetHiliteMode);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef LMGetWidthTabHandle
+ PyMac_PRECHECK(LMGetWidthTabHandle);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetWidthTabHandle();
{
PyObject *_res = NULL;
Handle value;
+#ifndef LMSetWidthTabHandle
+ PyMac_PRECHECK(LMSetWidthTabHandle);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
SInt32 _rv;
+#ifndef LMGetLastSPExtra
+ PyMac_PRECHECK(LMGetLastSPExtra);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetLastSPExtra();
{
PyObject *_res = NULL;
SInt32 value;
+#ifndef LMSetLastSPExtra
+ PyMac_PRECHECK(LMSetLastSPExtra);
+#endif
if (!PyArg_ParseTuple(_args, "l",
&value))
return NULL;
{
PyObject *_res = NULL;
Handle _rv;
+#ifndef LMGetLastFOND
+ PyMac_PRECHECK(LMGetLastFOND);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetLastFOND();
{
PyObject *_res = NULL;
Handle value;
+#ifndef LMSetLastFOND
+ PyMac_PRECHECK(LMSetLastFOND);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
UInt8 _rv;
+#ifndef LMGetFractEnable
+ PyMac_PRECHECK(LMGetFractEnable);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetFractEnable();
{
PyObject *_res = NULL;
UInt8 value;
+#ifndef LMSetFractEnable
+ PyMac_PRECHECK(LMSetFractEnable);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
{
PyObject *_res = NULL;
GDHandle _rv;
+#ifndef LMGetTheGDevice
+ PyMac_PRECHECK(LMGetTheGDevice);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetTheGDevice();
{
PyObject *_res = NULL;
GDHandle value;
+#ifndef LMSetTheGDevice
+ PyMac_PRECHECK(LMSetTheGDevice);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &value))
return NULL;
{
PyObject *_res = NULL;
RGBColor hiliteRGBValue;
+#ifndef LMGetHiliteRGB
+ PyMac_PRECHECK(LMGetHiliteRGB);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
LMGetHiliteRGB(&hiliteRGBValue);
{
PyObject *_res = NULL;
RGBColor hiliteRGBValue;
+#ifndef LMSetHiliteRGB
+ PyMac_PRECHECK(LMSetHiliteRGB);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
QdRGB_Convert, &hiliteRGBValue))
return NULL;
{
PyObject *_res = NULL;
Boolean _rv;
+#ifndef LMGetCursorNew
+ PyMac_PRECHECK(LMGetCursorNew);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetCursorNew();
{
PyObject *_res = NULL;
Boolean value;
+#ifndef LMSetCursorNew
+ PyMac_PRECHECK(LMSetCursorNew);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
{
PyObject *_res = NULL;
short font;
+#ifndef TextFont
+ PyMac_PRECHECK(TextFont);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&font))
return NULL;
{
PyObject *_res = NULL;
StyleParameter face;
+#ifndef TextFace
+ PyMac_PRECHECK(TextFace);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&face))
return NULL;
{
PyObject *_res = NULL;
short mode;
+#ifndef TextMode
+ PyMac_PRECHECK(TextMode);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&mode))
return NULL;
{
PyObject *_res = NULL;
short size;
+#ifndef TextSize
+ PyMac_PRECHECK(TextSize);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&size))
return NULL;
{
PyObject *_res = NULL;
Fixed extra;
+#ifndef SpaceExtra
+ PyMac_PRECHECK(SpaceExtra);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFixed, &extra))
return NULL;
{
PyObject *_res = NULL;
CharParameter ch;
+#ifndef DrawChar
+ PyMac_PRECHECK(DrawChar);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&ch))
return NULL;
{
PyObject *_res = NULL;
Str255 s;
+#ifndef DrawString
+ PyMac_PRECHECK(DrawString);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetStr255, s))
return NULL;
int textBuf__in_len__;
short firstByte;
short byteCount;
+#ifndef MacDrawText
+ PyMac_PRECHECK(MacDrawText);
+#endif
if (!PyArg_ParseTuple(_args, "s#hh",
&textBuf__in__, &textBuf__in_len__,
&firstByte,
PyObject *_res = NULL;
short _rv;
CharParameter ch;
+#ifndef CharWidth
+ PyMac_PRECHECK(CharWidth);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&ch))
return NULL;
PyObject *_res = NULL;
short _rv;
Str255 s;
+#ifndef StringWidth
+ PyMac_PRECHECK(StringWidth);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetStr255, s))
return NULL;
int textBuf__in_len__;
short firstByte;
short byteCount;
+#ifndef TextWidth
+ PyMac_PRECHECK(TextWidth);
+#endif
if (!PyArg_ParseTuple(_args, "s#hh",
&textBuf__in__, &textBuf__in_len__,
&firstByte,
{
PyObject *_res = NULL;
FontInfo info;
+#ifndef GetFontInfo
+ PyMac_PRECHECK(GetFontInfo);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetFontInfo(&info);
{
PyObject *_res = NULL;
Fixed extra;
+#ifndef CharExtra
+ PyMac_PRECHECK(CharExtra);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetFixed, &extra))
return NULL;
short width;
Str255 theString;
TruncCode truncWhere;
+#ifndef TruncString
+ PyMac_PRECHECK(TruncString);
+#endif
if (!PyArg_ParseTuple(_args, "hO&h",
&width,
PyMac_GetStr255, theString,
{
PyObject *_res = NULL;
GrafPtr thePort;
+#ifndef SetPort
+ PyMac_PRECHECK(SetPort);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
GrafObj_Convert, &thePort))
return NULL;
PyObject *_res = NULL;
CursHandle _rv;
short cursorID;
+#ifndef GetCursor
+ PyMac_PRECHECK(GetCursor);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&cursorID))
return NULL;
PyObject *_res = NULL;
Cursor *crsr__in__;
int crsr__in_len__;
+#ifndef SetCursor
+ PyMac_PRECHECK(SetCursor);
+#endif
if (!PyArg_ParseTuple(_args, "s#",
(char **)&crsr__in__, &crsr__in_len__))
return NULL;
static PyObject *Qd_ShowCursor(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef ShowCursor
+ PyMac_PRECHECK(ShowCursor);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
ShowCursor();
PyObject *_res = NULL;
short h;
short v;
+#ifndef LineTo
+ PyMac_PRECHECK(LineTo);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
short top;
short right;
short bottom;
+#ifndef SetRect
+ PyMac_PRECHECK(SetRect);
+#endif
if (!PyArg_ParseTuple(_args, "hhhh",
&left,
&top,
Rect r;
short dh;
short dv;
+#ifndef OffsetRect
+ PyMac_PRECHECK(OffsetRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&dh,
Rect r;
short dh;
short dv;
+#ifndef InsetRect
+ PyMac_PRECHECK(InsetRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
PyMac_GetRect, &r,
&dh,
Rect src1;
Rect src2;
Rect dstRect;
+#ifndef UnionRect
+ PyMac_PRECHECK(UnionRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &src1,
PyMac_GetRect, &src2))
Boolean _rv;
Rect rect1;
Rect rect2;
+#ifndef EqualRect
+ PyMac_PRECHECK(EqualRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetRect, &rect1,
PyMac_GetRect, &rect2))
{
PyObject *_res = NULL;
Rect r;
+#ifndef FrameRect
+ PyMac_PRECHECK(FrameRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
{
PyObject *_res = NULL;
Rect r;
+#ifndef InvertRect
+ PyMac_PRECHECK(InvertRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &r))
return NULL;
Rect r;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillRect
+ PyMac_PRECHECK(FillRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
PyMac_GetRect, &r,
(char **)&pat__in__, &pat__in_len__))
PyObject *_res = NULL;
RgnHandle srcRgn;
RgnHandle dstRgn;
+#ifndef CopyRgn
+ PyMac_PRECHECK(CopyRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &srcRgn,
ResObj_Convert, &dstRgn))
short top;
short right;
short bottom;
+#ifndef SetRectRgn
+ PyMac_PRECHECK(SetRectRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&hhhh",
ResObj_Convert, &rgn,
&left,
RgnHandle rgn;
short dh;
short dv;
+#ifndef OffsetRgn
+ PyMac_PRECHECK(OffsetRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&hh",
ResObj_Convert, &rgn,
&dh,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef UnionRgn
+ PyMac_PRECHECK(UnionRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
RgnHandle srcRgnA;
RgnHandle srcRgnB;
RgnHandle dstRgn;
+#ifndef XorRgn
+ PyMac_PRECHECK(XorRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&O&",
ResObj_Convert, &srcRgnA,
ResObj_Convert, &srcRgnB,
Boolean _rv;
RgnHandle rgnA;
RgnHandle rgnB;
+#ifndef EqualRgn
+ PyMac_PRECHECK(EqualRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &rgnA,
ResObj_Convert, &rgnB))
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef FrameRgn
+ PyMac_PRECHECK(FrameRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef PaintRgn
+ PyMac_PRECHECK(PaintRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
{
PyObject *_res = NULL;
RgnHandle rgn;
+#ifndef InvertRgn
+ PyMac_PRECHECK(InvertRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &rgn))
return NULL;
RgnHandle rgn;
Pattern *pat__in__;
int pat__in_len__;
+#ifndef FillRgn
+ PyMac_PRECHECK(FillRgn);
+#endif
if (!PyArg_ParseTuple(_args, "O&s#",
ResObj_Convert, &rgn,
(char **)&pat__in__, &pat__in_len__))
Boolean _rv;
short h;
short v;
+#ifndef GetPixel
+ PyMac_PRECHECK(GetPixel);
+#endif
if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
Boolean _rv;
Point pt;
Rect r;
+#ifndef PtInRect
+ PyMac_PRECHECK(PtInRect);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &pt,
PyMac_GetRect, &r))
int textBuf__in_len__;
short firstByte;
short byteCount;
+#ifndef DrawText
+ PyMac_PRECHECK(DrawText);
+#endif
if (!PyArg_ParseTuple(_args, "s#hh",
&textBuf__in__, &textBuf__in_len__,
&firstByte,