summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_ui_item.eo
blob: 49ef31b6d554daddbada67d93a3f3ebf2d1ed137 (plain)
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
interface Efl.Ui.Item {
   [[Efl UI item interface]]
   legacy_prefix: null;
   methods {
      @property prev {
         get {
            [[Get the item before this one in the widget's list of items.

              See also @.next.
            ]]
         }
         values {
            item: Efl.Ui.Item; [[The item before the object in its parent's
                                list. If there is no previous item or in case
                                of error, $null is returned.]]
         }
      }
      @property next {
         get {
            [[Get the item after this one in the widget's list of items.

              See also @.prev.
            ]]
         }
         values {
            item: Efl.Ui.Item; [[The item after the object in its parent's
                                list. If there is no next item or in case
                                of error, $null is returned.]]
         }
      }
      @property selected {
         [[Indicates whether this item is currently selected.]]
         get {
            [[Get the selected state of this item.]]
         }
         set {
             [[Set the selected state of $item.

               This sets the selected state of the given item $it.
               $true for selected, $false for not selected.

               If a new item is selected the previously selected will
               be unselected. Previously selected item can be retrieved
               with @Efl.Ui.Menu.selected_item.get.

               Selected items will be highlighted.
             ]]
         }
         values {
            selected: bool; [[The selection state.]]
         }
      }
   }
}