summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_selection.eo
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2018-12-21 13:46:06 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-01-02 11:03:49 -0800
commit327593e9b443cf62c0cd9b3b73327b031fa52ea2 (patch)
tree66ebf4ff7f18921161d2f30510a768c9d4c79a5e /src/lib/elementary/efl_ui_selection.eo
parent28c4380eaac8d05b9cf93577bc0a118951713b7a (diff)
elementary: rename Efl.Selection -> Efl.Ui.Selection as it is only usable with User Interface related element.
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7505
Diffstat (limited to 'src/lib/elementary/efl_ui_selection.eo')
-rw-r--r--src/lib/elementary/efl_ui_selection.eo45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_selection.eo b/src/lib/elementary/efl_ui_selection.eo
new file mode 100644
index 0000000..89714ce
--- /dev/null
+++ b/src/lib/elementary/efl_ui_selection.eo
@@ -0,0 +1,45 @@
1import efl_ui_selection_types;
2
3mixin Efl.Ui.Selection {
4 [[Efl Ui Selection class]]
5 data: null;
6 methods {
7 selection_set {
8 [[Set the selection data to the object]]
9 params {
10 @in type: Efl.Ui.Selection_Type; [[Selection Type]]
11 @in format: Efl.Ui.Selection_Format; [[Selection Format]]
12 @in data: Eina.Slice;
13 @in seat: uint;[[Specified seat for multiple seats case.]]
14 }
15 return: future<void>; [[Future for tracking when the selection is lost]]
16 }
17 selection_get {
18 [[Get the data from the object that has selection]]
19 params {
20 @in type: Efl.Ui.Selection_Type; [[Selection Type]]
21 @in format: Efl.Ui.Selection_Format; [[Selection Format]]
22 @in data_func: Efl.Ui.Selection_Data_Ready; [[Data ready function pointer]]
23 @in seat: uint;[[Specified seat for multiple seats case.]]
24 }
25 }
26 selection_clear {
27 [[Clear the selection data from the object]]
28 params {
29 @in type: Efl.Ui.Selection_Type; [[Selection Type]]
30 @in seat: uint; [[Specified seat for multiple seats case.]]
31 }
32 }
33 has_owner {
34 [[Determine whether the selection data has owner]]
35 params {
36 @in type: Efl.Ui.Selection_Type; [[Selection type]]
37 @in seat: uint; [[Specified seat for multiple seats case.]]
38 }
39 return: bool; [[EINA_TRUE if there is object owns selection, otherwise EINA_FALSE]]
40 }
41 }
42 events {
43 selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]]
44 }
45}