File: ClutterBehaviourBspline.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 (69 lines) | stat: -rw-r--r-- 2,087 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
68
69
#include "clutterperl.h"

MODULE = Clutter::Behaviour::Bspline PACKAGE = Clutter::Behaviour::Bspline PREFIX = clutter_behaviour_bspline_

ClutterBehaviour_noinc *
clutter_behaviour_bspline_new (class, alpha, knot=NULL, ...)
        ClutterAlpha_ornull *alpha
        ClutterKnot_ornull *knot
    PREINIT:
        ClutterBehaviourBspline *bspline;
        int i;
    CODE:
        RETVAL = clutter_behaviour_bspline_new (alpha, NULL, 0);
        bspline = CLUTTER_BEHAVIOUR_BSPLINE (RETVAL);
        for (i = 2; i < items; i++) {
                clutter_behaviour_bspline_append_knot (bspline, 
                                                       SvClutterKnot (ST (i)));
        }
    OUTPUT:
        RETVAL

=for apidoc
=for arg knot (__hide__)
=for arg ... list of knots
=cut
void
clutter_behaviour_bspline_append_knot (bspline, knot, ...)
        ClutterBehaviourBspline *bspline
        ClutterKnot *knot
    PREINIT:
        int i;
    CODE:
        clutter_behaviour_bspline_append_knot (bspline, knot);
        for (i = 2; i < items; i++) {
                clutter_behaviour_bspline_append_knot (bspline,
                                                       SvClutterKnot (ST (i)));
        }

void
clutter_behaviour_bspline_truncate (ClutterBehaviourBspline *bspline, guint offset)

void
clutter_behaviour_bspline_join (ClutterBehaviourBspline *bspline1, ClutterBehaviourBspline *bspline2)

ClutterBehaviour_noinc *
clutter_behaviour_bspline_split (ClutterBehaviourBspline *bspline, guint offset)

void
clutter_behaviour_bspline_clear (ClutterBehaviourBspline *bspline)

void
clutter_behaviour_bspline_adjust (bspline, offset, knot)
        ClutterBehaviourBspline *bspline
        guint offset
        ClutterKnot *knot

void
clutter_behaviour_bspline_set_origin (ClutterBehaviourBspline *bspline, ClutterKnot *knot)

ClutterKnot_copy *
clutter_behaviour_bspline_get_origin (ClutterBehaviourBspline *bspline)
    PREINIT:
        ClutterKnot knot;
    CODE:
        clutter_behaviour_bspline_get_origin (bspline, &knot);
        RETVAL = &knot;
    OUTPUT:
        RETVAL