return _res;
}
+static PyObject *CGContextRefObj_SyncCGContextOriginWithPort(CGContextRefObject *_self, PyObject *_args)
+{
+ PyObject *_res = NULL;
+ CGrafPtr port;
+ if (!PyArg_ParseTuple(_args, "O&",
+ GrafObj_Convert, &port))
+ return NULL;
+ SyncCGContextOriginWithPort(_self->ob_itself,
+ port);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+}
+
static PyMethodDef CGContextRefObj_methods[] = {
{"CGContextSaveGState", (PyCFunction)CGContextRefObj_CGContextSaveGState, 1,
"() -> None"},
"() -> None"},
{"CGContextSetShouldAntialias", (PyCFunction)CGContextRefObj_CGContextSetShouldAntialias, 1,
"(int shouldAntialias) -> None"},
+ {"SyncCGContextOriginWithPort", (PyCFunction)CGContextRefObj_SyncCGContextOriginWithPort, 1,
+ "(CGrafPtr port) -> None"},
{NULL, NULL, 0}
};
from macsupport import *
+CGrafPtr = OpaqueByValueType("CGrafPtr", "GrafObj")
# Create the type objects
# ADD _methods initializer here
execfile(INPUTFILE)
+# manual method, lives in Quickdraw.h
+f = Method(void, 'SyncCGContextOriginWithPort',
+ (CGContextRef, 'ctx', InMode),
+ (CGrafPtr, 'port', InMode),
+)
+CGContextRef_methods.append(f)
+
CreateCGContextForPort_body = """\
GrafPtr port;
CGContextRef ctx;