[cairo-commit] pycairo/cairo pycairo-context.c,1.74,1.75

Steve Chaplin commit at pdx.freedesktop.org
Wed Dec 27 02:32:25 PST 2006


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv8755/cairo

Modified Files:
	pycairo-context.c 
Log Message:
'SC'

Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- pycairo-context.c	16 May 2006 05:55:26 -0000	1.74
+++ pycairo-context.c	27 Dec 2006 10:32:21 -0000	1.75
@@ -195,6 +195,15 @@
 }
 
 static PyObject *
+pycairo_clip_extents (PycairoContext *o)
+{
+    double x1, y1, x2, y2;
+    cairo_clip_extents (o->ctx, &x1, &y1, &x2, &y2);
+    RETURN_NULL_IF_CONTEXT_STATUS_ERROR(o);
+    return Py_BuildValue("(dddd)", x1, y1, x2, y2);
+}
+
+static PyObject *
 pycairo_clip_preserve (PycairoContext *o)
 {
     cairo_clip_preserve (o->ctx);
@@ -322,6 +331,16 @@
 }
 
 static PyObject *
+pycairo_get_dash_count (PycairoContext *o)
+{
+    int count;
+    /* could add check for cairo_status */
+    /*cairo_status_t status = cairo_get_dash_count (o->ctx, &count);*/
+    cairo_get_dash_count (o->ctx, &count);
+    return PyInt_FromLong (count);
+}
+
+static PyObject *
 pycairo_get_fill_rule (PycairoContext *o)
 {
     return PyInt_FromLong(cairo_get_fill_rule (o->ctx));
@@ -1131,6 +1150,7 @@
     {"arc",             (PyCFunction)pycairo_arc,             METH_VARARGS},
     {"arc_negative",    (PyCFunction)pycairo_arc_negative,    METH_VARARGS},
     {"clip",            (PyCFunction)pycairo_clip,            METH_NOARGS},
+    {"clip_extents",    (PyCFunction)pycairo_clip_extents,    METH_NOARGS},
     {"clip_preserve",   (PyCFunction)pycairo_clip_preserve,   METH_NOARGS},
     {"close_path",      (PyCFunction)pycairo_close_path,      METH_NOARGS},
     {"copy_page",       (PyCFunction)pycairo_copy_page,       METH_NOARGS},
@@ -1146,6 +1166,7 @@
     {"font_extents",    (PyCFunction)pycairo_font_extents,    METH_NOARGS},
     {"get_antialias",   (PyCFunction)pycairo_get_antialias,   METH_NOARGS},
     {"get_current_point",(PyCFunction)pycairo_get_current_point,METH_NOARGS},
+    {"get_dash_count",  (PyCFunction)pycairo_get_dash_count,  METH_NOARGS},
     {"get_fill_rule",   (PyCFunction)pycairo_get_fill_rule,   METH_NOARGS},
     {"get_font_face",   (PyCFunction)pycairo_get_font_face,   METH_NOARGS},
     {"get_font_matrix", (PyCFunction)pycairo_get_font_matrix, METH_NOARGS},



More information about the cairo-commit mailing list