2017-11-15 18:31:26 -08:00
|
|
|
class Elm.Index.Item(Elm.Widget.Item, Efl.Access.Widget.Action)
|
2014-09-27 22:14:58 -07:00
|
|
|
{
|
2016-11-23 02:46:01 -08:00
|
|
|
[[Elementary index item class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_index_item;
|
2014-09-27 22:14:58 -07:00
|
|
|
eo_prefix: elm_obj_index_item;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property selected {
|
2014-09-27 22:14:58 -07:00
|
|
|
set {
|
2015-08-06 06:59:32 -07:00
|
|
|
[[Set the selected state of an item.
|
2014-09-27 22:14:58 -07:00
|
|
|
|
2015-08-06 06:59:32 -07:00
|
|
|
This sets the selected state of the given item $it.
|
|
|
|
$true for selected, $false for not selected.
|
2014-09-27 22:14:58 -07:00
|
|
|
|
2015-08-06 06:59:32 -07:00
|
|
|
If a new item is selected the previously selected will be unselected.
|
|
|
|
Previously selected item can be get with function
|
|
|
|
elm_index_selected_item_get().
|
2014-09-27 22:14:58 -07:00
|
|
|
|
2015-08-06 06:59:32 -07:00
|
|
|
Selected items will be highlighted.]]
|
2014-09-27 22:14:58 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-06 06:59:32 -07:00
|
|
|
selected: bool; [[$true if selected, $false otherwise]]
|
2014-09-27 22:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
2015-08-04 06:55:18 -07:00
|
|
|
@property priority {
|
|
|
|
set {
|
2015-08-06 06:59:32 -07:00
|
|
|
[[Sets the priority of an item.
|
2015-08-04 06:55:18 -07:00
|
|
|
|
2015-08-06 06:59:32 -07:00
|
|
|
The priority is -1 by default, which means that the item doesn't belong to a group.
|
|
|
|
The value of the priority starts from 0.
|
2015-08-04 06:55:18 -07:00
|
|
|
|
2015-08-06 06:59:32 -07:00
|
|
|
In elm_index_level_go, the items are sorted in ascending order according to priority.
|
|
|
|
Items of the same priority make a group and the primary group is shown by default.]]
|
2015-08-04 06:55:18 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-06 06:59:32 -07:00
|
|
|
priority: int; [[The priority]]
|
2015-08-04 06:55:18 -07:00
|
|
|
}
|
|
|
|
}
|
2014-09-27 22:14:58 -07:00
|
|
|
letter_get @const {
|
2015-08-06 06:59:32 -07:00
|
|
|
[[Get the letter (string) set on a given index widget item.]]
|
2016-05-31 08:02:26 -07:00
|
|
|
return: string; [[The letter string set on $item]]
|
2014-09-27 22:14:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2016-05-12 03:21:36 -07:00
|
|
|
Elm.Widget.Item.access_register;
|
2017-10-18 18:13:54 -07:00
|
|
|
Efl.Access.name { get; }
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2014-09-27 22:14:58 -07:00
|
|
|
}
|
|
|
|
}
|