summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_dnd_types.eot
blob: 01fec18e3f277e15e7106198570df54371597622 (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
import efl_selection_types;

function Efl.Dnd.Drag_Icon_Create {
   [[Function pointer for creating icon at the drag side.]]
   params {
      @in win: Efl.Canvas.Object; [[The window to create the objects relative to]]
      @in drag_obj: Efl.Canvas.Object; [[The drag object]]
      @out off: Eina.Position2D;
   }
   return: Efl.Canvas.Object; [[The drag icon object]]
};

function Efl.Dnd.Drag_Data_Get {
   [[Function pointer for getting data and format at the drag side.]]
   params {
      @in obj: Efl.Canvas.Object; [[The container object]]
      @out format: Efl.Selection.Format; [[Data format]]
      @out drag_data: Eina.Rw_Slice; [[Data]]
      @out action: Efl.Selection.Action; [[The drag action]]
   }
};

function Efl.Dnd.Item_Get {
   [[Function pointer to find out which item is under position (x, y)]]
   params {
      @in obj: Efl.Canvas.Object; [[The container object]]
      @in pos: Eina.Position2D; [[The coordinates to get item]]
      @out posret: Eina.Position2D; [[position relative to item (left (-1), middle (0), right (1)]]
   }
   return: Efl.Object; [[Object under x,y coordinates or NULL if not found]]
};

function Efl.Dnd.Drag_Icon_List_Create {
   [[Function pointer to create list of icons at the drag side.
     These icons are used for animation on combining selection icons
     to one icon.]]
   params {
      @in obj: Efl.Canvas.Object; [[The container object]]
   }
   return: list<Efl.Canvas.Object>;
};

struct Efl.Dnd.Drag_Accept {
   accepted: bool;
}

struct Efl.Dnd.Drag_Pos {
   pos: Eina.Position2D; [[Evas Coordinate]]
   action: Efl.Selection.Action; [[The drag action]]
   format: Efl.Selection.Format; [[The drag format]]
   item: Efl.Canvas.Object; [[The item object. It is only available for container object.]]
}

struct Efl.Dnd.Drag_Item_Container_Drop {
   item: Efl.Canvas.Object; [[The item object]]
   data: Efl.Selection.Data; [[The selection data]]
   pos: Eina.Position2D; [[Position relative to item (left (-1), middle (0), right (1)]]
}