summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_object_animation.eo
blob: 49146a6b81432d5691eede60acc00259a0b3f628 (plain)
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
mixin @beta Efl.Canvas.Object_Animation requires Efl.Object
{
  methods {
    @property animation {
      [[The animation that is currently played on the canvas object.

        $null in case that there is no animation running.]]
      get {

      }
      values {
        animation : Efl.Canvas.Animation; [[The animation which is currently applied on this object.]]
      }
    }
    @property animation_progress {
      [[The current progress of the animation, between 0.0 and 1.0.

        Even if the animation is going backwards (speed < 0.0). the progress will still go from 0.0 to 1.0.

        If there is no animation going on, this will return -1.0.
      ]]
      get {

      }
      values {
        progress : double; [[The progress the animation applying is currently in.]]
      }
    }
    @property animation_pause {
      [[Pause the animation

        The animation will not be unset. When $pause is unset, the animation will be resumed at the same progress it has right now.
      ]]
      values {
        pause : bool;
      }
    }
    animation_start {
      [[Start a new animation.

        If there is a animation going on, this is stopped. The previous @.animation object will be replaced. The lifetime is adjusted accordingly.
      ]]
      params {
        animation : Efl.Canvas.Animation @move; [[The animation to start. When not needed anymore, the reference that was passed is given up.]]
        speed : double; [[The speed of the playback. `1.0` is normal playback. Negative values mean backward playback.]]
        starting_progress : double; [[The progress to start, must be between 0.0 and 1.0.]]
      }
    }
    animation_stop {
      [[Stop the animation.

        After this call, @.animation will return $null. The reference that was taken during @.animation_start will be given up on.
      ]]
    }
  }
  events {
      animation,changed: Efl.Canvas.Animation; [[The animation object got changed.]]
      animation_progress,updated : double; [[The animation progress got changed.]]
  }
}