[cairo-commit] pycairo/cairo pycairo-surface.c,1.66,1.67
Steve Chaplin
commit at pdx.freedesktop.org
Sat May 6 19:48:56 PDT 2006
- Previous message: [cairo-commit] pycairo ChangeLog, 1.208, 1.209 configure.ac, 1.43,
1.44 NOTES, 1.21, 1.22
- Next message: [cairo-commit] cairo-perl .cvsignore, 1.1, 1.2 Cairo.pm, 1.10,
1.11 Cairo.xs, 1.8, 1.9 CairoFont.xs, 1.4, 1.5 CairoMatrix.xs,
1.5, 1.6 CairoPattern.xs, 1.6, 1.7 CairoSurface.xs, 1.8,
1.9 ChangeLog, 1.17, 1.18 MANIFEST, 1.6, 1.7 MANIFEST.SKIP,
1.5, 1.6 MakeHelper.pm, 1.4, 1.5 Makefile.PL, 1.12,
1.13 cairo-perl-private.h, NONE, 1.1 cairo-perl.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: stevech1097
Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv15938/cairo
Modified Files:
pycairo-surface.c
Log Message:
'SC'
Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- pycairo-surface.c 1 May 2006 02:20:15 -0000 1.66
+++ pycairo-surface.c 7 May 2006 02:48:54 -0000 1.67
@@ -832,6 +832,20 @@
}
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);
+ if (Pycairo_Check_Status (cairo_surface_status (o->surface)))
+ return NULL;
+ Py_RETURN_NONE;
+}
+
+static PyObject *
ps_surface_set_dpi (PycairoPSSurface *o, PyObject *args)
{
double x_dpi, y_dpi;
@@ -842,8 +856,22 @@
Py_RETURN_NONE;
}
+static PyObject *
+ps_surface_set_size (PycairoPSSurface *o, PyObject *args)
+{
+ double width_in_points, height_in_points;
+
+ if (!PyArg_ParseTuple(args, "dd:PSSurface.set_size",
+ &width_in_points, &height_in_points))
+ return NULL;
+ cairo_ps_surface_set_size (o->surface, width_in_points, height_in_points);
+ Py_RETURN_NONE;
+}
+
static PyMethodDef ps_surface_methods[] = {
- {"set_dpi", (PyCFunction)ps_surface_set_dpi, METH_VARARGS },
+ {"dsc_comment", (PyCFunction)ps_surface_dsc_comment, METH_VARARGS },
+ {"set_dpi", (PyCFunction)ps_surface_set_dpi, METH_VARARGS },
+ {"set_size", (PyCFunction)ps_surface_set_size, METH_VARARGS },
{NULL, NULL, 0, NULL},
};
- Previous message: [cairo-commit] pycairo ChangeLog, 1.208, 1.209 configure.ac, 1.43,
1.44 NOTES, 1.21, 1.22
- Next message: [cairo-commit] cairo-perl .cvsignore, 1.1, 1.2 Cairo.pm, 1.10,
1.11 Cairo.xs, 1.8, 1.9 CairoFont.xs, 1.4, 1.5 CairoMatrix.xs,
1.5, 1.6 CairoPattern.xs, 1.6, 1.7 CairoSurface.xs, 1.8,
1.9 ChangeLog, 1.17, 1.18 MANIFEST, 1.6, 1.7 MANIFEST.SKIP,
1.5, 1.6 MakeHelper.pm, 1.4, 1.5 Makefile.PL, 1.12,
1.13 cairo-perl-private.h, NONE, 1.1 cairo-perl.h, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list