{
PyObject *_res = NULL;
Point pt;
- if (!PyArg_ParseTuple(_args, "O&",
- PyMac_GetPoint, &pt))
+ if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetPen(&pt);
_res = Py_BuildValue("O&",
Point pt;
short h;
short v;
- if (!PyArg_ParseTuple(_args, "O&hh",
- PyMac_GetPoint, &pt,
+ if (!PyArg_ParseTuple(_args, "hh",
&h,
&v))
return NULL;
{"ShowPen", (PyCFunction)Qd_ShowPen, 1,
"() -> None"},
{"GetPen", (PyCFunction)Qd_GetPen, 1,
- "(Point pt) -> (Point pt)"},
+ "() -> (Point pt)"},
{"GetPenState", (PyCFunction)Qd_GetPenState, 1,
"() -> (PenState pnState)"},
{"SetPenState", (PyCFunction)Qd_SetPenState, 1,
{"FillPoly", (PyCFunction)Qd_FillPoly, 1,
"(PolyHandle poly, Pattern pat) -> None"},
{"SetPt", (PyCFunction)Qd_SetPt, 1,
- "(Point pt, short h, short v) -> (Point pt)"},
+ "(short h, short v) -> (Point pt)"},
{"LocalToGlobal", (PyCFunction)Qd_LocalToGlobal, 1,
"(Point pt) -> (Point pt)"},
{"GlobalToLocal", (PyCFunction)Qd_GlobalToLocal, 1,
functions.append(f)
f = Function(void, 'GetPen',
- (Point, 'pt', InOutMode),
+ (Point, 'pt', OutMode),
)
functions.append(f)
functions.append(f)
f = Function(void, 'SetPt',
- (Point, 'pt', InOutMode),
+ (Point, 'pt', OutMode),
(short, 'h', InMode),
(short, 'v', InMode),
)
('short', 'byteCount', 'InMode')],
[('TextThingie', '*', '*'), ('*', '*', '*'), ('*', '*', '*')]),
+ # GetPen and SetPt use a point-pointer as output-only:
+ ('GetPen', [('Point', '*', 'OutMode')], [('*', '*', 'OutMode')]),
+ ('SetPt', [('Point', '*', 'OutMode')], [('*', '*', 'OutMode')]),
+
+ # All others use it as input/output:
([('Point', '*', 'OutMode')],
[('*', '*', 'InOutMode')]),