summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_animation_translate.eo
blob: ed06dd567c2e8f0aa09b08e313bf23991d1b634b (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
class @beta Efl.Canvas.Animation_Translate extends Efl.Canvas.Animation
{
   [[Animated translation effect.

     The @Efl.Canvas.Object will move from one point to another.
     Coordinates for the origin and destination points can be relative to the object
     or absolute (relative to the containing canvas).

     Note: Changing an object's position using @Efl.Gfx.Entity.position while this
     animation is running might lead to unexpected results.
   ]]
   c_prefix: efl_animation_translate;
   data: Efl_Canvas_Animation_Translate_Data;
   methods {
      @property translate {
         [[Translation vector, relative to the starting position of the object.
           So, for example, if $from is $[(0,0)], the object will move from its
           current position to $to.
         ]]
         set {
         }
         get {
         }
         values {
            from : Eina.Position2D; [[Relative initial position.]]
            to : Eina.Position2D; [[Relative ending position.]]
         }
      }
      @property translate_absolute {
         [[Translation vector, relative to the canvas.
           So, for example, if $from is $[(0,0)], the object will always start from the
           origin of the canvas, regardless of the current object position.
         ]]
         set {
         }
         get {
         }
         values {
            from : Eina.Position2D; [[Absolute initial position.]]
            to : Eina.Position2D; [[Absolute ending position.]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Canvas.Animation.animation_apply;
   }
}