summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_selection.eo
blob: 2f836567a14f5bc30eba62f7c1a681f2ed815fba (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
import efl_selection_types;

mixin Efl.Selection {
   [[Efl Selection class]]
   data: null;
   methods {
      selection_set {
         [[Set the selection data to the object]]
         params {
            @in type: Efl.Selection.Type; [[Selection Type]]
            @in format: Efl.Selection.Format; [[Selection Format]]
            @in data: Eina.Slice;
            @in seat: uint;[[Specified seat for multiple seats case.]]
         }
         return: ptr(Eina.Future); [[Future for tracking when the selection is lost]]
      }
      selection_get {
         [[Get the data from the object that has selection]]
         params {
            @in type: Efl.Selection.Type; [[Selection Type]]
            @in format: Efl.Selection.Format; [[Selection Format]]
            @in data_func: Efl.Selection.Data_Ready; [[Data ready function pointer]]
            @in seat: uint;[[Specified seat for multiple seats case.]]
         }
      }
      selection_clear {
         [[Clear the selection data from the object]]
         params {
            @in type: Efl.Selection.Type; [[Selection Type]]
            @in seat: uint; [[Specified seat for multiple seats case.]]
         }
      }
      has_owner {
         [[Determine whether the selection data has owner]]
         params {
            @in type: Efl.Selection.Type; [[Selection type]]
            @in seat: uint; [[Specified seat for multiple seats case.]]
         }
         return: bool; [[EINA_TRUE if there is object owns selection, otherwise EINA_FALSE]]
      }
   }
   events {
      selection,changed; [[Called when display server's selection has changed]]
   }
}