2016-11-29 23:18:46 -08:00
|
|
|
class Elm.Menu.Item(Elm.Widget.Item, Elm.Interface.Atspi.Selection,
|
|
|
|
Efl.Ui.Item)
|
2014-09-27 22:14:39 -07:00
|
|
|
{
|
2016-11-22 05:52:03 -08:00
|
|
|
[[Elementary menu item class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_menu_item;
|
2014-09-27 22:14:39 -07:00
|
|
|
eo_prefix: elm_obj_menu_item;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property icon_name {
|
2014-09-27 22:14:39 -07:00
|
|
|
get {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Get the string representation from the icon of a menu item
|
2014-09-27 22:14:39 -07:00
|
|
|
|
|
|
|
Once this icon is set, any previously set icon will be deleted.
|
|
|
|
To hide icon set it to "".
|
2015-07-31 07:23:56 -07:00
|
|
|
]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
set {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Set the icon of a menu item to the standard icon with the
|
|
|
|
given name.
|
2014-09-27 22:14:39 -07:00
|
|
|
|
|
|
|
Once this icon is set, any previously set icon will be deleted.
|
|
|
|
To hide icon set it to "".
|
2015-07-31 07:23:56 -07:00
|
|
|
]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
icon: string; [[The name of icon object.]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
index_get @const {
|
2016-11-22 05:52:03 -08:00
|
|
|
[[Get the item index]]
|
|
|
|
return: uint; [[Item index]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
subitems_clear {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Remove all sub-items (children) of the given item
|
2014-09-27 22:14:39 -07:00
|
|
|
|
2015-07-31 07:23:56 -07:00
|
|
|
This removes all items that are children (and their descendants)
|
|
|
|
of the given item $it.
|
2014-09-27 22:14:39 -07:00
|
|
|
|
2015-07-31 07:23:56 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
subitems_get @const {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Returns a list of $item's subitems.]]
|
2016-11-22 05:52:03 -08:00
|
|
|
return: const(list<Elm.Widget.Item>); [[A list of $item's subitems]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
is_separator @const {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Returns whether $item is a separator.]]
|
|
|
|
return: bool; [[$true if the item is a separator.]]
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
object_get @const {
|
2015-07-31 07:23:56 -07:00
|
|
|
[[Get the real Evas(Edje) object created to implement the view of
|
|
|
|
a given menu item.
|
2014-09-27 22:14:39 -07:00
|
|
|
|
2015-07-31 07:23:56 -07:00
|
|
|
Warning: Don't manipulate this object!
|
|
|
|
]]
|
2016-06-20 21:26:15 -07:00
|
|
|
return: Efl.Canvas.Object; [[The base Edje object containing the
|
2015-07-31 07:23:56 -07:00
|
|
|
swallowed content associated with the item.]]
|
2014-09-27 22:14:39 -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.disable;
|
|
|
|
Elm.Widget.Item.signal_emit;
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Widget.Item.part_text { get; set; }
|
|
|
|
Elm.Widget.Item.part_content { get; 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; }
|
2017-01-11 07:35:03 -08:00
|
|
|
Efl.Ui.Item.selected { get; set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Ui.Item.prev { get; }
|
|
|
|
Efl.Ui.Item.next { get; }
|
2014-09-27 22:14:39 -07:00
|
|
|
}
|
|
|
|
}
|