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

« back to all changes in this revision

Viewing changes to clutter-perl.h

  • 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
#ifndef _CLUTTER_PERL_H_
 
2
#define _CLUTTER_PERL_H_
 
3
 
 
4
#include <gperl.h>
 
5
 
 
6
#include <cairo-perl.h>
 
7
#include <pango-perl.h>
 
8
 
 
9
#include <cogl/cogl.h>
 
10
#include <cogl/cogl-pango.h>
 
11
#include <clutter/clutter.h>
 
12
 
 
13
#include "clutter-perl-autogen.h"
 
14
 
 
15
G_BEGIN_DECLS
 
16
 
 
17
const char *clutterperl_event_get_package (ClutterEvent *event);
 
18
 
 
19
gulong clutter_perl_animation_mode_from_sv (SV *sv);
 
20
SV *clutter_perl_animation_mode_to_sv (gulong mode);
 
21
 
 
22
gpointer cogl_perl_object_from_sv (SV *sv, const char *package);
 
23
SV *cogl_perl_object_to_sv (gpointer object, const char *package);
 
24
 
 
25
gpointer cogl_perl_struct_from_sv (SV *sv, const char *package);
 
26
SV *cogl_perl_struct_to_sv (gpointer object, const char *package);
 
27
 
 
28
SV *cogl_perl_handle_to_sv (CoglHandle handle);
 
29
 
 
30
void cogl_perl_color_from_sv (SV *sv, CoglColor *color);
 
31
SV *cogl_perl_color_to_sv (const CoglColor *color);
 
32
 
 
33
void cogl_perl_texture_vertex_from_sv (SV *sv, CoglTextureVertex *vertex);
 
34
SV *cogl_perl_texture_vertex_to_sv (const CoglTextureVertex *vertex);
 
35
 
 
36
/* CoglHandle */
 
37
typedef CoglHandle      CoglHandle_noinc;
 
38
typedef CoglHandle      CoglHandle_ornull;
 
39
#define SvCoglHandle(sv)                ((CoglHandle) cogl_perl_object_from_sv (sv, "Clutter::Cogl::Handle"))
 
40
#define SvCoglHandle_ornull(sv)         (((sv) && SvOK (sv)) ? SvCoglHandle(sv) : NULL)
 
41
#define newSVCoglHandle(object)         (cogl_perl_handle_to_sv (cogl_handle_ref (object)))
 
42
#define newSVCoglHandle_noinc(object)   (cogl_perl_handle_to_sv (object))
 
43
 
 
44
/* CoglMatrix */
 
45
typedef CoglMatrix      CoglMatrix_ornull;
 
46
#define SvCoglMatrix(sv)                ((CoglMatrix *) cogl_perl_struct_from_sv (sv, "Clutter::Cogl::Matrix"))
 
47
#define SvCoglMatrix_ornull(sv)         (((sv) && SvOK (sv)) ? SvCoglMatrix(sv) : NULL)
 
48
#define newSVCoglMatrix(object)         (cogl_perl_struct_to_sv ((object), "Clutter::Cogl::Matrix"))
 
49
#define newSVCoglMatrix_ornull(object)  ((object) == NULL ? &PL_sv_undef : newSVCoglMatrix(object))
 
50
 
 
51
/* custom structs */
 
52
SV *newSVCoglTextureVertex (CoglTextureVertex *vertex);
 
53
CoglTextureVertex *SvCoglTextureVertex (SV *sv);
 
54
 
 
55
SV *newSVCoglColor (CoglColor *color);
 
56
CoglColor *SvCoglColor (SV *sv);
 
57
 
 
58
G_END_DECLS
 
59
 
 
60
#endif /* _CLUTTER_PERL_H_ */