summaryrefslogtreecommitdiff
path: root/src/lib/edje/efl_canvas_layout_part.eo
blob: 9346cc68d5d10ce52747b2174d1b529366c57034 (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
import efl_canvas_layout_types;

class @beta Efl.Canvas.Layout_Part extends Efl.Object implements Efl.Gfx.Entity, 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();
   ]]
   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, but this function will return "" if the part is
           invalid.
         ]]
         get {}
         values {
            state: string(""); [[The name of the state.]]
            val: double(0.0); [[The value of the state.]]
         }
      }
      @property part_type {
         [[Type of this part in the layout.]]
         get {
         }
         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.Entity.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;
   }
}