65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
enum @beta Efl.Ui.Select_Mode {
|
|
[[Type of multi selectable object.]]
|
|
single, [[Only single child is selected. If a child is selected,
|
|
previous selected child will be unselected.]]
|
|
multi, [[Allow multiple selection of children.]]
|
|
none [[No child can be selected at all.]]
|
|
}
|
|
|
|
interface @beta Efl.Ui.Multi_Selectable extends Efl.Ui.Single_Selectable
|
|
{
|
|
[[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.]]
|
|
c_prefix: efl_ui;
|
|
methods
|
|
{
|
|
@property select_mode {
|
|
[[The mode type for children selection.]]
|
|
set {}
|
|
get {}
|
|
values {
|
|
mode: Efl.Ui.Select_Mode; [[Type of selection of children]]
|
|
}
|
|
}
|
|
selected_items_get {
|
|
[[Get the selected items in a iterator. The iterator sequence will be decided by selection.]]
|
|
return: iterator<Efl.Ui.Selectable> @move @no_unused; [[User has to free the iterator after usage.]]
|
|
}
|
|
select_range {
|
|
[[Select a range of @Efl.Ui.Selectable.
|
|
|
|
This will select the range of selectables from a to b or from b to a depending on which one comes first.
|
|
If a or b are not part of the widget, a error is returned, and no change is applied.
|
|
$null is not allowed as either of the parameters.
|
|
Both of the passed values will also be selected.
|
|
]]
|
|
params {
|
|
a : Efl.Ui.Selectable; [[One side of the range.]]
|
|
b : Efl.Ui.Selectable; [[The other side of the range.]]
|
|
}
|
|
}
|
|
unselect_range {
|
|
[[Unselect a range of @Efl.Ui.Selectable.
|
|
|
|
This will unselect the range of selectables from a to b or from b to a depending on which one comes first.
|
|
If a or b are not part of the widget, a error is returned, and no change is applied.
|
|
$null is not allowed as either of the parameters.
|
|
Both of the passed values will also be unselected.
|
|
]]
|
|
params {
|
|
a : Efl.Ui.Selectable; [[One side of the range.]]
|
|
b : Efl.Ui.Selectable; [[The other side of the range.]]
|
|
}
|
|
}
|
|
select_all {
|
|
[[Select all @Efl.Ui.Selectable]]
|
|
}
|
|
unselect_all {
|
|
[[Unselect all @Efl.Ui.Selectable]]
|
|
}
|
|
|
|
}
|
|
}
|