summaryrefslogtreecommitdiff
path: root/src/lib/elm_menu_item.eo
blob: 543de9d8b086ce67fbf77e22702b7666809c1a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
class Elm.Menu_Item(Elm.Widget_Item, Elm_Interface_Atspi_Selection)
{
   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: const (char)*; [[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: Evas.Object*; [[The base Edje object containing the
                                     swallowed content associated with the item.]]
        }
   }
   implements {
        Eo.Base.constructor;
        Eo.Base.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;
   }
}