summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_segment_control_item.eo
blob: dab3f9cc2402de2dfec0f878fdfb8fefd1b07640 (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
class Elm.Segment_Control.Item(Elm.Widget.Item, Efl.Ui.Focus.Object, Efl.Ui.Legacy)
{
   [[Elementary segment control item class]]
   legacy_prefix: elm_segment_control_item;
   eo_prefix: elm_obj_segment_control_item;
   methods {
      index_get @const {
             [[Get the index of an item.

               Index is the position of an item in segment control widget. Its
               range is from 0 to (count - 1).
               Count is the number of items, that can be get with elm_segment_control_item_count_get()]]

             return: int(-1); [[The position of item in segment control widget.]]
        }
      object_get @const {
             [[Get the real Evas(Edje) object created to implement the view of a given segment_control item.

               Base object is the @Efl.Canvas.Object that represents that item.]]
             return: Efl.Canvas.Object; [[The base Edje object associated with $it]]
        }
      selected_set {
             [[Set the selected state of an 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.
               Selected item can be got with function elm_segment_control_item_selected_get().

               The selected item always will be highlighted on segment control.]]

             params {
                  selected: bool; [[The selected state.]]
             }
        }
   }
   implements {
        Efl.Object.constructor;
        Efl.Object.destructor;
        Elm.Widget.Item.access_register;
        Elm.Widget.Item.part_text { get; set; }
        Elm.Widget.Item.part_content { get; set; }
        Efl.Ui.Focus.Object.focus_geometry {get; }
   }
}