File: ClutterBehaviourScale.xs

package info (click to toggle)
clutter-perl 0.8.0.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 652 kB
  • ctags: 42
  • sloc: perl: 645; ansic: 30; makefile: 3
file content (67 lines) | stat: -rw-r--r-- 2,295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Clutter.
 *
 * Perl bindings for the OpenGL based 'interactive canvas' library.
 *
 * Clutter Authored By Matthew Allum  <mallum@openedhand.com>
 * Perl bindings by Emmanuele Bassi  <ebassi@openedhand.com>
 * 
 * Copyright (C) 2006 OpenedHand
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include "clutterperl.h"

MODULE = Clutter::Behaviour::Scale    PACKAGE = Clutter::Behaviour::Scale   PREFIX = clutter_behaviour_scale_

=for enum ClutterGravity
=cut

ClutterBehaviour_noinc *
clutter_behaviour_scale_new (class, alpha=NULL, x_start, y_start, x_end, y_end)
        ClutterAlpha_ornull *alpha
        gdouble x_start
        gdouble y_start
        gdouble x_end
        gdouble y_end
    C_ARGS:
        alpha, x_start, y_start, x_end, y_end

void
clutter_behaviour_scale_set_bounds (scale, x_start, y_start, x_end, y_end)
        ClutterBehaviourScale *scale
        gdouble x_start
        gdouble y_start
        gdouble x_end
        gdouble y_end

=for apidoc
=for signature (x_start, y_start, x_end, y_end) = $scale->get_bounds
=cut
void
clutter_behaviour_scale_get_bounds (ClutterBehaviourScale *scale)
    PREINIT:
        gdouble x_start, x_end;
        gdouble y_start, y_end;
    PPCODE:
        clutter_behaviour_scale_get_bounds (scale,
                                            &x_start, &y_start,
                                            &x_end, &y_end);
        EXTEND (SP, 4);
        PUSHs (sv_2mortal (newSVnv (x_start)));
        PUSHs (sv_2mortal (newSVnv (y_start)));
        PUSHs (sv_2mortal (newSVnv (x_end)));
        PUSHs (sv_2mortal (newSVnv (y_end)));