2016-05-12 03:37:43 -07:00
|
|
|
class Elm.Index.Item(Elm.Widget.Item, Elm.Interface.Atspi_Widget_Action)
|
2014-09-27 22:14:58 -07:00
|
|
|
{
|
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 {
|
|
|
|
Eo.Base.constructor;
|
2014-09-17 06:44:05 -07:00
|
|
|
Eo.Base.destructor;
|
2016-05-12 03:21:36 -07:00
|
|
|
Elm.Widget.Item.access_register;
|
2016-05-12 03:37:43 -07:00
|
|
|
Elm.Interface.Atspi_Accessible.name.get;
|
|
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
|
2014-09-27 22:14:58 -07:00
|
|
|
}
|
|
|
|
}
|