diff options
Diffstat (limited to 'src/lib/elementary/efl_selection.eo')
-rw-r--r-- | src/lib/elementary/efl_selection.eo | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_selection.eo b/src/lib/elementary/efl_selection.eo new file mode 100644 index 0000000000..9db0de597b --- /dev/null +++ b/src/lib/elementary/efl_selection.eo @@ -0,0 +1,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: future<void>; [[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: Efl.Selection_Changed; [[Called when display server's selection has changed]] + } +} |