efl/src/lib/elementary/elm_menu_item.eo

94 lines
3.1 KiB
Plaintext

class Elm.Menu.Item(Elm.Widget.Item, Elm.Interface.Atspi.Selection)
{
legacy_prefix: elm_menu_item;
eo_prefix: elm_obj_menu_item;
methods {
@property icon_name {
get {
[[Get the string representation from the icon of a menu item
Once this icon is set, any previously set icon will be deleted.
To hide icon set it to "".
]]
}
set {
[[Set the icon of a menu item to the standard icon with the
given name.
Once this icon is set, any previously set icon will be deleted.
To hide icon set it to "".
]]
}
values {
icon: string; [[The name of icon object.]]
}
}
@property selected {
get {
[[Get the selected state of $item.]]
}
set {
[[Set the selected state of $item.]]
}
values {
selected: bool; [[The selection state.]]
}
}
prev_get @const {
[[Get the previous item in the menu.]]
return: Elm.Widget.Item;
}
next_get @const {
[[Get the next item in the menu.]]
return: Elm.Widget.Item;
}
index_get @const {
[[Get the next item in the menu.]]
return: uint;
}
subitems_clear {
[[Remove all sub-items (children) of the given item
This removes all items that are children (and their descendants)
of the given item $it.
@since 1.8
]]
}
subitems_get @const {
[[Returns a list of $item's subitems.]]
return: const(list<Elm.Widget.Item>); [[a list of $item's subitems]]
}
is_separator @const {
[[Returns whether $item is a separator.]]
return: bool; [[$true if the item is a separator.]]
}
object_get @const {
[[Get the real Evas(Edje) object created to implement the view of
a given menu item.
Warning: Don't manipulate this object!
]]
return: Efl.Canvas.Object; [[The base Edje object containing the
swallowed content associated with the item.]]
}
}
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Elm.Widget.Item.disable;
Elm.Widget.Item.signal_emit;
Elm.Widget.Item.part_text.get;
Elm.Widget.Item.part_text.set;
Elm.Widget.Item.part_content.get;
Elm.Widget.Item.part_content.set;
Elm.Interface.Atspi_Accessible.children.get;
Elm.Interface.Atspi_Accessible.parent.get;
Elm.Interface.Atspi_Accessible.role.get;
Elm.Interface.Atspi_Accessible.name.get;
Elm.Interface.Atspi_Accessible.state_set.get;
Elm.Interface.Atspi.Selection.selected_children_count.get;
Elm.Interface.Atspi.Selection.selected_child.get;
}
}