efl/src/lib/elementary/elm_list_item.eo

122 lines
4.2 KiB
Plaintext

class Elm.List.Item(Elm.Widget.Item, Efl.Ui.Legacy)
{
[[Elementary list item class]]
legacy_prefix: elm_list_item;
eo_prefix: elm_obj_list_item;
methods {
@property separator {
get {
[[Get a value whether item is a separator or not.]]
}
set {
[[Set or unset item as a separator.
Items aren't set as separator by default.
If set as separator it will display separator theme,
so won't display icons or label.
]]
}
values {
setting: bool; [[$true means item $it is a separator.
$false indicates it's not.]]
}
}
@property selected {
get {
[[Get whether the item is selected or not.]]
}
set {
[[Set the selected state of an item.
This sets the selected state of the given item.
If a new item is selected the previously selected
will be unselected, unless multiple selection is
enabled with \@ref elm_list_multi_select_set.
Previously selected item can be get with function
\@ref elm_list_selected_item_get.
Selected items will be highlighted.
]]
}
values {
selected: bool; [[The selected state.]]
}
}
@property object {
get {
[[Get the real Evas(Edje) object created to implement
the view of a given list item.
Base object is the $Evas_Object that represents that
item.
]]
}
values {
obj: Efl.Canvas.Object; [[The base Edje object associated with the item.]]
}
}
@property prev {
get {
[[Get the item before the item in list.
Note: If it is the first item, $null will be returned.
]]
legacy: elm_list_item_prev;
}
values {
item: Elm.Widget.Item; [[The item before or $null.]]
}
}
@property next {
get {
[[Get the item after the item in list.
Note: If it is the last item, $null will be returned.
]]
legacy: elm_list_item_next;
}
values {
item: Elm.Widget.Item; [[The item after or $null.]]
}
}
/* init { FIXME
params {
Evas_Smart_Cb func;
const(void_ptr) data;
}
}*/
show {
[[Show item in the list view.
It won't animate list until item is visible. If such
behavior is wanted, use @.bring_in instead.
]]
}
bring_in {
[[Bring in the given item to list view.
This causes list to jump to the given item and show it
(by scrolling), if it is not fully visible.
This may use animation to do so and take a period of time.
If animation isn't wanted, @.show can be used.
]]
}
}
implements {
Efl.Object.constructor;
Elm.Widget.Item.disable;
Elm.Widget.Item.del_pre;
Elm.Widget.Item.signal_emit;
Elm.Widget.Item.focus { get; set; }
Elm.Widget.Item.part_text { get; set; }
Elm.Widget.Item.part_content { get; set; }
Elm.Widget.Item.part_content_unset;
Efl.Access.name { get; }
Efl.Access.state_set { get; }
}
}