summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_animator.eo
blob: c2eb9d57ea7a0c51d56bf11663b88e9746bb6842 (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
import ecore_types;

class Ecore.Animator (Eo.Base)
{
   [[Helper to simplify creating animations.

   Creating an animation is as simple as saying for how long it
   should be run and having a callback that does the animation.
   ]]

   legacy_prefix: ecore_animator;
   eo_prefix: ecore_animator;
   methods {
      timeline_constructor {
         [[Timeline constructor.]]
         legacy: null;
         params {
            @in runtime: double; [[Animation runtime in seconds.]]
            @in func: Ecore_Timeline_Cb; [[Animation callback function.]]
            @in data: const(void_ptr); [[Private data passed to callback functions.]]
         }
      }
      constructor {
         [[Constructor.]]
         legacy: null;
         params {
            @in func: Ecore_Task_Cb; [[Animation callback function.]]
            @in data: const(void_ptr); [[Private data passed to callback functions.]]
         }
      }
   }
   implements {
      Eo.Base.destructor;
      Eo.Base.finalize;
      Eo.Base.event_freeze;
      Eo.Base.event_thaw;
   }
   constructors {
      .constructor;
      .timeline_constructor;
   }
}