summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_diskselector_item.eo
blob: 740364faa7c6405d566849a0b1e7e2b31dca1350 (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
class Elm.Diskselector.Item(Elm.Widget.Item, Efl.Ui.Legacy)
{
      [[Elementary diskselector item class]]
      legacy_prefix: elm_diskselector_item;
      eo_prefix: elm_obj_diskselector_item;
      methods {
           @property prev {
                get {
                     [[Get the item before $item in diskselector.

                       The list of items follows append order. So it will return item appended
                       just before $item and that wasn't deleted.

                       If it is the first item, $null will be returned.
                       First item can be get by \@ref elm_diskselector_first_item_get.

                       See also \@ref elm_diskselector_item_append,
                       \@ref elm_diskselector_items_get.
                    ]]
                }
                values {
                     item: Elm.Widget.Item; [[The item before $item, or $null if none or on failure.]]
                }
           }
           @property next {
                get {
                     [[Get the item after $item in diskselector.

                       The list of items follows append order. So it will return item appended
                       just after $item and that wasn't deleted.

                       If it is the last item, $null will be returned.
                       Last item can be get by \@ref elm_diskselector_last_item_get.

                       See also \@ref elm_diskselector_item_append,
                       \@ref elm_diskselector_items_get.
                     ]]
                }
                values {
                     item: Elm.Widget.Item; [[The item after $item, or $null if none or on failure.]]
                }
           }
           @property selected {
                get {
                     [[Get whether the $item is selected or not.

                       See also \@ref elm_diskselector_selected_item_set for details,
                       \@ref elm_diskselector_item_selected_get.
                     ]]
                }
                set {
                     [[Set the selected state of an item.

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

                      If a new item is selected the previously selected will be unselected.
                      Previously selected item can be get with function
                      \@ref elm_diskselector_selected_item_get.

                      If the $item is unselected, the first item of diskselector will
                      be selected.

                      Selected items will be visible on center position of diskselector.
                      So if it was on another position before selected, or was invisible,
                      diskselector will animate items until the selected item reaches center
                      position.

                      See also \@ref elm_diskselector_item_selected_get,
                      \@ref elm_diskselector_selected_item_get.
                    ]]
                }
                values {
                     selected: bool; [[The selected state]]
                }
           }
           /*      init { FIXME
                   params {
                   Evas_Smart_Cb func;
                   const(void_ptr) data;
                   }
                   }*/
      }
      implements {
           Efl.Object.constructor;
           Efl.Object.destructor;
           Elm.Widget.Item.part_text { get; set; }
           Elm.Widget.Item.part_content { get; set; }
      }
}