static PyObject * ps_surface_dsc_begin_setup (PycairoPSSurface *o) { cairo_ps_surface_dsc_begin_setup (o->surface); RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }
static PyObject * surface_flush (PycairoSurface *o) { cairo_surface_flush (o->surface); RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }
static PyObject * surface_show_page (PycairoSurface *o) { Py_BEGIN_ALLOW_THREADS cairo_surface_show_page (o->surface); Py_END_ALLOW_THREADS RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }
static PyObject * ps_surface_dsc_comment (PycairoPSSurface *o, PyObject *args) { const char *comment; if (!PyArg_ParseTuple(args, "s:PSSurface.dsc_comment", &comment)) return NULL; cairo_ps_surface_dsc_comment (o->surface, comment); RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }
static PyObject * surface_mark_dirty_rectangle (PycairoSurface *o, PyObject *args) { int x, y, width, height; if (!PyArg_ParseTuple(args, "iiii:Surface.mark_dirty_rectangle", &x, &y, &width, &height)) return NULL; cairo_surface_mark_dirty_rectangle (o->surface, x, y, width, height); RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }
static PyObject * surface_mark_dirty (PycairoSurface *o, PyObject *args, PyObject *kwds) { static char *kwlist[] = {"x", "y", "width", "height", NULL}; int x = 0, y = 0, width = -1, height = -1; if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iiii:Surface.mark_dirty", kwlist, &x, &y, &width, &height)) return NULL; cairo_surface_mark_dirty_rectangle (o->surface, x, y, width, height); RETURN_NULL_IF_CAIRO_SURFACE_ERROR(o->surface); Py_RETURN_NONE; }