2018-12-21 13:46:06 -08:00
|
|
|
import efl_ui_selection_types;
|
2018-01-08 22:34:12 -08:00
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
mixin @beta Efl.Ui.Selection {
|
2018-12-21 13:46:06 -08:00
|
|
|
[[Efl Ui Selection class]]
|
2018-01-08 22:34:12 -08:00
|
|
|
data: null;
|
|
|
|
methods {
|
|
|
|
selection_set {
|
|
|
|
[[Set the selection data to the object]]
|
|
|
|
params {
|
2018-12-21 13:46:06 -08:00
|
|
|
@in type: Efl.Ui.Selection_Type; [[Selection Type]]
|
|
|
|
@in format: Efl.Ui.Selection_Format; [[Selection Format]]
|
2019-03-20 06:12:35 -07:00
|
|
|
@in data: Eina.Slice; [[Selection data]]
|
2018-01-08 22:34:12 -08:00
|
|
|
@in seat: uint;[[Specified seat for multiple seats case.]]
|
|
|
|
}
|
2018-05-03 08:13:28 -07:00
|
|
|
return: future<void>; [[Future for tracking when the selection is lost]]
|
2018-01-08 22:34:12 -08:00
|
|
|
}
|
|
|
|
selection_get {
|
|
|
|
[[Get the data from the object that has selection]]
|
|
|
|
params {
|
2018-12-21 13:46:06 -08:00
|
|
|
@in type: Efl.Ui.Selection_Type; [[Selection Type]]
|
|
|
|
@in format: Efl.Ui.Selection_Format; [[Selection Format]]
|
|
|
|
@in data_func: Efl.Ui.Selection_Data_Ready; [[Data ready function pointer]]
|
2018-01-08 22:34:12 -08:00
|
|
|
@in seat: uint;[[Specified seat for multiple seats case.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selection_clear {
|
|
|
|
[[Clear the selection data from the object]]
|
|
|
|
params {
|
2018-12-21 13:46:06 -08:00
|
|
|
@in type: Efl.Ui.Selection_Type; [[Selection Type]]
|
2018-01-08 22:34:12 -08:00
|
|
|
@in seat: uint; [[Specified seat for multiple seats case.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
has_owner {
|
|
|
|
[[Determine whether the selection data has owner]]
|
|
|
|
params {
|
2018-12-21 13:46:06 -08:00
|
|
|
@in type: Efl.Ui.Selection_Type; [[Selection type]]
|
2018-01-08 22:34:12 -08:00
|
|
|
@in seat: uint; [[Specified seat for multiple seats case.]]
|
|
|
|
}
|
|
|
|
return: bool; [[EINA_TRUE if there is object owns selection, otherwise EINA_FALSE]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
2019-03-20 07:01:23 -07:00
|
|
|
wm_selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]]
|
2018-01-08 22:34:12 -08:00
|
|
|
}
|
|
|
|
}
|