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

« back to all changes in this revision

Viewing changes to xs/ClutterBehaviour.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:
23
23
 * Boston, MA 02111-1307, USA.
24
24
 */
25
25
 
26
 
#include "clutterperl.h"
 
26
#include "clutter-perl-private.h"
27
27
 
28
28
static void
29
29
clutterperl_behaviour_alpha_notify (ClutterBehaviour *behaviour,
30
 
                                    guint32           alpha_value)
 
30
                                    gdouble           alpha_value)
31
31
{
32
32
        HV *stash = gperl_object_stash_from_type (G_OBJECT_TYPE (behaviour));
33
33
        GV *slot = gv_fetchmethod (stash, "ALPHA_NOTIFY");
41
41
 
42
42
                EXTEND (SP, 2);
43
43
                PUSHs (newSVClutterBehaviour (behaviour));
44
 
                PUSHs (sv_2mortal (newSVuv (alpha_value)));
 
44
                PUSHs (sv_2mortal (newSVnv (alpha_value)));
45
45
 
46
46
                PUTBACK;
47
47
                call_sv ((SV *) GvCV (slot), G_VOID | G_DISCARD);
82
82
 
83
83
MODULE = Clutter::Behaviour     PACKAGE = Clutter::Behaviour    PREFIX = clutter_behaviour_
84
84
 
 
85
=for object Clutter::Behaviour - Class for providing behaviours to actors
 
86
=cut
 
87
 
85
88
=for position DESCRIPTION
86
89
 
87
90
=head1 DESCRIPTION
117
120
 
118
121
=item o $behaviour (Clutter::Behaviour)
119
122
 
120
 
=item o $alpha_value (integer) The value computed by the alpha function
 
123
=item o $alpha_value (float) The value computed by the alpha function
121
124
 
122
125
=back
123
126
 
143
146
clutter_behaviour_is_applied (ClutterBehaviour *behaviour, ClutterActor *actor)
144
147
 
145
148
void
146
 
clutter_behaviour_actors_foreach (behaviour, func, data)
 
149
clutter_behaviour_actors_foreach (behaviour, func, data=NULL)
147
150
        ClutterBehaviour *behaviour
148
151
        SV *func
149
152
        SV *data