summaryrefslogtreecommitdiff
path: root/src/lib/edje/efl_canvas_layout_part.eo
blob: 87cacafbefed4a9973240e2652929141a84e814c (plain) (blame)
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
import edje_types;

class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx, Efl.Ui.Drag)
{
   [[Common class for part proxy objects for $Efl.Canvas.Layout.

     As an @Efl.Part implementation class, all objects of this class are meant
     to be used for one and only one function call. In pseudo-code, the use
     of object of this type looks like the following:
       rect = layout.part("somepart").geometry_get();

     @since 1.20
   ]]
   methods {
      @property state {
         [[The name and value of the current state of this part (read-only).

           This is the state name as it appears in EDC description blocks. A
           state has both a name and a value (double). The default state is
           "default" 0.0.
         ]]
         get {}
         values {
            state: string("default"); [[The name of the state.]]
            val: double; [[The value of the state.]]
         }
      }
      @property part_type {
         [[Type of this part in the layout.]]
         get {
            [[Returns the type of the part.]]
         }
         values {
            type: Efl.Canvas.Layout.Part_Type(Efl.Canvas.Layout.Part_Type.none);
               [[One of the types or $none if not an existing part.]]
         }
      }
   }
   implements {
      Efl.Object.finalize;
      Efl.Gfx.geometry { get; }
      Efl.Ui.Drag.drag_value { set; get; }
      Efl.Ui.Drag.drag_size { set; get; }
      Efl.Ui.Drag.drag_dir { get; }
      Efl.Ui.Drag.drag_step { set; get; }
      Efl.Ui.Drag.drag_step_move;
      Efl.Ui.Drag.drag_page { set; get; }
      Efl.Ui.Drag.drag_page_move;
   }
}