summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_list_item.eo
blob: ece25d2e82cd53eb0e35bedd255ac5646a2c455a (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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
class Elm.List.Item(Elm.Widget.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: Evas.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)* 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 {
           Eo.Base.constructor;
           Elm.Widget.Item.disable;
           Elm.Widget.Item.del_pre;
           Elm.Widget.Item.signal_emit;
           Elm.Widget.Item.focus.set;
           Elm.Widget.Item.focus.get;
           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.Widget.Item.part_content_unset;
           Elm.Interface.Atspi_Accessible.name.get;
           Elm.Interface.Atspi_Accessible.state_set.get;
      }
}