[Python-checkins] CVS: python/dist/src/Mac/Modules/qd _Qdmodule.c,1.6,1.7
Jack Jansen
jackjansen@users.sourceforge.net
Tue, 18 Dec 2001 07:37:05 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/qd
In directory usw-pr-cvs1:/tmp/cvs-serv15138/python/Mac/Modules/qd
Modified Files:
_Qdmodule.c
Log Message:
Updated to Universal Headers 3.4
Index: _Qdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/qd/_Qdmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** _Qdmodule.c 2001/12/08 18:02:53 1.6
--- _Qdmodule.c 2001/12/18 15:37:03 1.7
***************
*** 6,11 ****
--- 6,15 ----
+ #ifdef _WIN32
+ #include "pywintoolbox.h"
+ #else
#include "macglue.h"
#include "pymactoolbox.h"
+ #endif
/* Macro to test whether a weak-loaded CFM function exists */
***************
*** 1646,1649 ****
--- 1650,1672 ----
}
+ #if TARGET_API_MAC_CARBON
+
+ static PyObject *Qd_RgnToHandle(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ RgnHandle region;
+ Handle flattenedRgnDataHdl;
+ if (!PyArg_ParseTuple(_args, "O&O&",
+ ResObj_Convert, ®ion,
+ ResObj_Convert, &flattenedRgnDataHdl))
+ return NULL;
+ RgnToHandle(region,
+ flattenedRgnDataHdl);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+ #endif
+
static PyObject *Qd_DisposeRgn(PyObject *_self, PyObject *_args)
{
***************
*** 3503,3506 ****
--- 3526,3546 ----
}
+ #if TARGET_API_MAC_CARBON
+
+ static PyObject *Qd_IsValidPort(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Boolean _rv;
+ CGrafPtr port;
+ if (!PyArg_ParseTuple(_args, "O&",
+ GrafObj_Convert, &port))
+ return NULL;
+ _rv = IsValidPort(port);
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+ #endif
+
static PyObject *Qd_GetPortPixMap(PyObject *_self, PyObject *_args)
{
***************
*** 3879,3882 ****
--- 3919,3939 ----
#if TARGET_API_MAC_CARBON
+ static PyObject *Qd_IsPortPolyBeingDefined(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Boolean _rv;
+ CGrafPtr port;
+ if (!PyArg_ParseTuple(_args, "O&",
+ GrafObj_Convert, &port))
+ return NULL;
+ _rv = IsPortPolyBeingDefined(port);
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+ #endif
+
+ #if TARGET_API_MAC_CARBON
+
static PyObject *Qd_IsPortOffscreen(PyObject *_self, PyObject *_args)
{
***************
*** 3991,3994 ****
--- 4048,4067 ----
}
+ static PyObject *Qd_SetPortFillPixPat(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ CGrafPtr port;
+ PixPatHandle penPattern;
+ if (!PyArg_ParseTuple(_args, "O&O&",
+ GrafObj_Convert, &port,
+ ResObj_Convert, &penPattern))
+ return NULL;
+ SetPortFillPixPat(port,
+ penPattern);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
static PyObject *Qd_SetPortBackPixPat(PyObject *_self, PyObject *_args)
{
***************
*** 4348,4351 ****
--- 4421,4816 ----
}
+ #if TARGET_API_MAC_CARBON
+
+ static PyObject *Qd_QDGetDirtyRegion(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ OSStatus _err;
+ CGrafPtr port;
+ RgnHandle rgn;
+ if (!PyArg_ParseTuple(_args, "O&O&",
+ GrafObj_Convert, &port,
+ ResObj_Convert, &rgn))
+ return NULL;
+ _err = QDGetDirtyRegion(port,
+ rgn);
+ if (_err != noErr) return PyMac_Error(_err);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+ #endif
+
+ #if TARGET_API_MAC_CARBON
+
+ static PyObject *Qd_QDSetDirtyRegion(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ OSStatus _err;
+ CGrafPtr port;
+ RgnHandle rgn;
+ if (!PyArg_ParseTuple(_args, "O&O&",
+ GrafObj_Convert, &port,
+ ResObj_Convert, &rgn))
+ return NULL;
+ _err = QDSetDirtyRegion(port,
+ rgn);
+ if (_err != noErr) return PyMac_Error(_err);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+ #endif
+
+ static PyObject *Qd_LMGetScrVRes(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt16 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetScrVRes();
+ _res = Py_BuildValue("h",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetScrVRes(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt16 value;
+ if (!PyArg_ParseTuple(_args, "h",
+ &value))
+ return NULL;
+ LMSetScrVRes(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetScrHRes(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt16 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetScrHRes();
+ _res = Py_BuildValue("h",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetScrHRes(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt16 value;
+ if (!PyArg_ParseTuple(_args, "h",
+ &value))
+ return NULL;
+ LMSetScrHRes(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetMainDevice(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetMainDevice();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetMainDevice(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetMainDevice(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetDeviceList(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetDeviceList();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetDeviceList(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetDeviceList(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetQDColors(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetQDColors();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetQDColors(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetQDColors(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetWidthListHand(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetWidthListHand();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetWidthListHand(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetWidthListHand(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetHiliteMode(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetHiliteMode();
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetHiliteMode(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 value;
+ if (!PyArg_ParseTuple(_args, "b",
+ &value))
+ return NULL;
+ LMSetHiliteMode(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetWidthTabHandle(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetWidthTabHandle();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetWidthTabHandle(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetWidthTabHandle(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetLastSPExtra(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt32 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetLastSPExtra();
+ _res = Py_BuildValue("l",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetLastSPExtra(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ SInt32 value;
+ if (!PyArg_ParseTuple(_args, "l",
+ &value))
+ return NULL;
+ LMSetLastSPExtra(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetLastFOND(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetLastFOND();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetLastFOND(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Handle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetLastFOND(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetFractEnable(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetFractEnable();
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetFractEnable(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ UInt8 value;
+ if (!PyArg_ParseTuple(_args, "b",
+ &value))
+ return NULL;
+ LMSetFractEnable(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetTheGDevice(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetTheGDevice();
+ _res = Py_BuildValue("O&",
+ ResObj_New, _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetTheGDevice(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ GDHandle value;
+ if (!PyArg_ParseTuple(_args, "O&",
+ ResObj_Convert, &value))
+ return NULL;
+ LMSetTheGDevice(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetHiliteRGB(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ RGBColor hiliteRGBValue;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ LMGetHiliteRGB(&hiliteRGBValue);
+ _res = Py_BuildValue("O&",
+ QdRGB_New, &hiliteRGBValue);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetHiliteRGB(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ RGBColor hiliteRGBValue;
+ if (!PyArg_ParseTuple(_args, "O&",
+ QdRGB_Convert, &hiliteRGBValue))
+ return NULL;
+ LMSetHiliteRGB(&hiliteRGBValue);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
+ static PyObject *Qd_LMGetCursorNew(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Boolean _rv;
+ if (!PyArg_ParseTuple(_args, ""))
+ return NULL;
+ _rv = LMGetCursorNew();
+ _res = Py_BuildValue("b",
+ _rv);
+ return _res;
+ }
+
+ static PyObject *Qd_LMSetCursorNew(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ Boolean value;
+ if (!PyArg_ParseTuple(_args, "b",
+ &value))
+ return NULL;
+ LMSetCursorNew(value);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
static PyObject *Qd_TextFont(PyObject *_self, PyObject *_args)
{
***************
*** 4537,4540 ****
--- 5002,5025 ----
}
+ static PyObject *Qd_TruncString(PyObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ short _rv;
+ short width;
+ Str255 theString;
+ TruncCode truncWhere;
+ if (!PyArg_ParseTuple(_args, "hO&h",
+ &width,
+ PyMac_GetStr255, theString,
+ &truncWhere))
+ return NULL;
+ _rv = TruncString(width,
+ theString,
+ truncWhere);
+ _res = Py_BuildValue("h",
+ _rv);
+ return _res;
+ }
+
static PyObject *Qd_SetPort(PyObject *_self, PyObject *_args)
{
***************
*** 5170,5173 ****
--- 5655,5663 ----
{"BitMapToRegion", (PyCFunction)Qd_BitMapToRegion, 1,
"(RgnHandle region, BitMapPtr bMap) -> None"},
+
+ #if TARGET_API_MAC_CARBON
+ {"RgnToHandle", (PyCFunction)Qd_RgnToHandle, 1,
+ "(RgnHandle region, Handle flattenedRgnDataHdl) -> None"},
+ #endif
{"DisposeRgn", (PyCFunction)Qd_DisposeRgn, 1,
"(RgnHandle rgn) -> None"},
***************
*** 5404,5407 ****
--- 5894,5902 ----
{"AngleFromSlope", (PyCFunction)Qd_AngleFromSlope, 1,
"(Fixed slope) -> (short _rv)"},
+
+ #if TARGET_API_MAC_CARBON
+ {"IsValidPort", (PyCFunction)Qd_IsValidPort, 1,
+ "(CGrafPtr port) -> (Boolean _rv)"},
+ #endif
{"GetPortPixMap", (PyCFunction)Qd_GetPortPixMap, 1,
"(CGrafPtr port) -> (PixMapHandle _rv)"},
***************
*** 5456,5459 ****
--- 5951,5959 ----
#if TARGET_API_MAC_CARBON
+ {"IsPortPolyBeingDefined", (PyCFunction)Qd_IsPortPolyBeingDefined, 1,
+ "(CGrafPtr port) -> (Boolean _rv)"},
+ #endif
+
+ #if TARGET_API_MAC_CARBON
{"IsPortOffscreen", (PyCFunction)Qd_IsPortOffscreen, 1,
"(CGrafPtr port) -> (Boolean _rv)"},
***************
*** 5474,5477 ****
--- 5974,5979 ----
{"SetPortPenPixPat", (PyCFunction)Qd_SetPortPenPixPat, 1,
"(CGrafPtr port, PixPatHandle penPattern) -> None"},
+ {"SetPortFillPixPat", (PyCFunction)Qd_SetPortFillPixPat, 1,
+ "(CGrafPtr port, PixPatHandle penPattern) -> None"},
{"SetPortBackPixPat", (PyCFunction)Qd_SetPortBackPixPat, 1,
"(CGrafPtr port, PixPatHandle backPattern) -> None"},
***************
*** 5536,5539 ****
--- 6038,6107 ----
{"QDFlushPortBuffer", (PyCFunction)Qd_QDFlushPortBuffer, 1,
"(CGrafPtr port, RgnHandle region) -> None"},
+
+ #if TARGET_API_MAC_CARBON
+ {"QDGetDirtyRegion", (PyCFunction)Qd_QDGetDirtyRegion, 1,
+ "(CGrafPtr port, RgnHandle rgn) -> None"},
+ #endif
+
+ #if TARGET_API_MAC_CARBON
+ {"QDSetDirtyRegion", (PyCFunction)Qd_QDSetDirtyRegion, 1,
+ "(CGrafPtr port, RgnHandle rgn) -> None"},
+ #endif
+ {"LMGetScrVRes", (PyCFunction)Qd_LMGetScrVRes, 1,
+ "() -> (SInt16 _rv)"},
+ {"LMSetScrVRes", (PyCFunction)Qd_LMSetScrVRes, 1,
+ "(SInt16 value) -> None"},
+ {"LMGetScrHRes", (PyCFunction)Qd_LMGetScrHRes, 1,
+ "() -> (SInt16 _rv)"},
+ {"LMSetScrHRes", (PyCFunction)Qd_LMSetScrHRes, 1,
+ "(SInt16 value) -> None"},
+ {"LMGetMainDevice", (PyCFunction)Qd_LMGetMainDevice, 1,
+ "() -> (GDHandle _rv)"},
+ {"LMSetMainDevice", (PyCFunction)Qd_LMSetMainDevice, 1,
+ "(GDHandle value) -> None"},
+ {"LMGetDeviceList", (PyCFunction)Qd_LMGetDeviceList, 1,
+ "() -> (GDHandle _rv)"},
+ {"LMSetDeviceList", (PyCFunction)Qd_LMSetDeviceList, 1,
+ "(GDHandle value) -> None"},
+ {"LMGetQDColors", (PyCFunction)Qd_LMGetQDColors, 1,
+ "() -> (Handle _rv)"},
+ {"LMSetQDColors", (PyCFunction)Qd_LMSetQDColors, 1,
+ "(Handle value) -> None"},
+ {"LMGetWidthListHand", (PyCFunction)Qd_LMGetWidthListHand, 1,
+ "() -> (Handle _rv)"},
+ {"LMSetWidthListHand", (PyCFunction)Qd_LMSetWidthListHand, 1,
+ "(Handle value) -> None"},
+ {"LMGetHiliteMode", (PyCFunction)Qd_LMGetHiliteMode, 1,
+ "() -> (UInt8 _rv)"},
+ {"LMSetHiliteMode", (PyCFunction)Qd_LMSetHiliteMode, 1,
+ "(UInt8 value) -> None"},
+ {"LMGetWidthTabHandle", (PyCFunction)Qd_LMGetWidthTabHandle, 1,
+ "() -> (Handle _rv)"},
+ {"LMSetWidthTabHandle", (PyCFunction)Qd_LMSetWidthTabHandle, 1,
+ "(Handle value) -> None"},
+ {"LMGetLastSPExtra", (PyCFunction)Qd_LMGetLastSPExtra, 1,
+ "() -> (SInt32 _rv)"},
+ {"LMSetLastSPExtra", (PyCFunction)Qd_LMSetLastSPExtra, 1,
+ "(SInt32 value) -> None"},
+ {"LMGetLastFOND", (PyCFunction)Qd_LMGetLastFOND, 1,
+ "() -> (Handle _rv)"},
+ {"LMSetLastFOND", (PyCFunction)Qd_LMSetLastFOND, 1,
+ "(Handle value) -> None"},
+ {"LMGetFractEnable", (PyCFunction)Qd_LMGetFractEnable, 1,
+ "() -> (UInt8 _rv)"},
+ {"LMSetFractEnable", (PyCFunction)Qd_LMSetFractEnable, 1,
+ "(UInt8 value) -> None"},
+ {"LMGetTheGDevice", (PyCFunction)Qd_LMGetTheGDevice, 1,
+ "() -> (GDHandle _rv)"},
+ {"LMSetTheGDevice", (PyCFunction)Qd_LMSetTheGDevice, 1,
+ "(GDHandle value) -> None"},
+ {"LMGetHiliteRGB", (PyCFunction)Qd_LMGetHiliteRGB, 1,
+ "() -> (RGBColor hiliteRGBValue)"},
+ {"LMSetHiliteRGB", (PyCFunction)Qd_LMSetHiliteRGB, 1,
+ "(RGBColor hiliteRGBValue) -> None"},
+ {"LMGetCursorNew", (PyCFunction)Qd_LMGetCursorNew, 1,
+ "() -> (Boolean _rv)"},
+ {"LMSetCursorNew", (PyCFunction)Qd_LMSetCursorNew, 1,
+ "(Boolean value) -> None"},
{"TextFont", (PyCFunction)Qd_TextFont, 1,
"(short font) -> None"},
***************
*** 5562,5565 ****
--- 6130,6135 ----
{"CharExtra", (PyCFunction)Qd_CharExtra, 1,
"(Fixed extra) -> None"},
+ {"TruncString", (PyCFunction)Qd_TruncString, 1,
+ "(short width, Str255 theString, TruncCode truncWhere) -> (short _rv)"},
{"SetPort", (PyCFunction)Qd_SetPort, 1,
"(GrafPtr thePort) -> None"},