~ubuntu-branches/ubuntu/wily/clutter-perl/wily

« back to all changes in this revision

Viewing changes to xs/ClutterCairo.xs

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-09-25 14:21:14 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090925142114-r1uvxq7zytn04s0p
Tags: 1.0.1-0ubuntu1
* New upstream release.
* Clutter 0.8 -> 1.0 transition. (LP: #364630)
* debian/control:
 - Bump libclutter build dep,
 - Drop deprecated clutter-gst, clutter-gtk, and 
   clutter-cairo build deps.
* debian/patches/10_notify-osd_by_default.patch:
 - Disable POD generation to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "clutterperl.h"
2
 
 
3
 
MODULE = Clutter::Texture::Cairo PACKAGE = Clutter::Texture::Cairo PREFIX = clutter_cairo_
4
 
 
5
 
BOOT:
6
 
        gperl_set_isa ("Clutter::Cairo::Context", "Cairo::Context");
7
 
 
8
 
ClutterActor_noinc *
9
 
clutter_cairo_new (class, gint width, gint height)
10
 
    C_ARGS:
11
 
        width, height
12
 
 
13
 
SV *
14
 
clutter_cairo_create_context (ClutterCairo *texture)
15
 
    PREINIT:
16
 
        cairo_t *cr;
17
 
    CODE:
18
 
        /* We own cr. */
19
 
        cr = clutter_cairo_create (texture);
20
 
        RETVAL = newSV (0);
21
 
        sv_setref_pv (RETVAL, "Clutter::Cairo::Context", (void *) cr);
22
 
    OUTPUT:
23
 
        RETVAL
24
 
 
25
 
SV *
26
 
clutter_cairo_create_region_context (texture, x_offset, y_offset, width, height)
27
 
        ClutterCairo *texture
28
 
        gint x_offset
29
 
        gint y_offset
30
 
        guint width
31
 
        guint height
32
 
    PREINIT:
33
 
        cairo_t *cr;
34
 
    CODE:
35
 
        /* We own cr. */
36
 
        cr = clutter_cairo_create_region (texture,
37
 
                                          x_offset, y_offset,
38
 
                                          width, height);
39
 
        RETVAL = newSV (0);
40
 
        sv_setref_pv (RETVAL, "Clutter::Cairo::Context", (void *) cr);
41
 
    OUTPUT:
42
 
        RETVAL
43
 
 
44
 
void
45
 
clutter_cairo_surface_resize (texture, width, height)
46
 
        ClutterCairo *texture
47
 
        guint width
48
 
        guint height
49
 
 
50
 
void
51
 
clutter_cairo_set_source_color (cairo_t *cr, ClutterColor *color)