2019-03-08 06:55:43 -08:00
enum @beta Efl.Ui.Select_Mode {
2018-04-22 23:13:59 -07:00
[[Type of multi selectable object.]]
single, [[Only single child is selected. if the child is selected,
previous selected child will be unselected.]]
single_always, [[Same as single select except, this will be selected
in every select calls though child is already been selected.]]
multi, [[allow multiple selection of children.]]
none [[Last value of select mode. child cannot be selected at all.]]
}
2019-08-06 10:55:40 -07:00
interface @beta Efl.Ui.Multi_Selectable extends Efl.Ui.Single_Selectable
2018-04-22 23:13:59 -07:00
{
2019-08-06 10:55:40 -07:00
[[Interface for getting access to a range of selected items.
The implementor of this interface provides the possibility to select multiple Selectables. (If not, only Efl.Ui.Single_Selectable should be implemented)]]
2019-05-09 07:16:42 -07:00
c_prefix: efl_ui;
2018-04-22 23:13:59 -07:00
methods
{
@property select_mode {
[[The mode type for children selection.]]
set {}
get {}
values {
mode: Efl.Ui.Select_Mode; [[Type of selection of children]]
}
}
2019-08-06 10:55:40 -07:00
selected_items_get {
[[Get the selected items in a iterator. The iterator sequence will be decided by selection.]]
return: iterator<Efl.Ui.Selectable> @owned @no_unused; [[User has to free the iterator after usage.]]
}
2018-04-22 23:13:59 -07:00
}
}