示例#1
0
static PyObject *
pycairo_get_font_options (PycairoContext *o) {
  cairo_font_options_t *options = cairo_font_options_create();
  cairo_get_font_options (o->ctx, options);
  /* there is no reference fn */
  return PycairoFontOptions_FromFontOptions (options);
}
示例#2
0
static PyObject *
surface_get_font_options (PycairoSurface *o)
{
    cairo_font_options_t *options = cairo_font_options_create();

    cairo_surface_get_font_options (o->surface, options);
    /* there is no reference fn */
    return PycairoFontOptions_FromFontOptions (options);
}
示例#3
0
static PyObject *
font_options_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
{
    return PycairoFontOptions_FromFontOptions (cairo_font_options_create());
}