summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_naviframe_item.eo
blob: 3bfceed41684c65f0b0d468e51ca6f8df589f8d6 (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
type Elm_Naviframe_Item_Pop_Cb: __undefined_type; [[Elementary naviframe item pop callback type]]

class Elm.Naviframe.Item(Elm.Widget.Item, Efl.Ui.Legacy)
{
   [[Elementary naviframe item class]]
   legacy_prefix: elm_naviframe_item;
   eo_prefix: elm_obj_naviframe_item;
   methods {
      pop_to {
            [[Pop the top item and delete the items between the top and the
              above one on the given item.

              The items between the top and the given item will be deleted
              first, and then the top item will be popped at last.

              Warning: The pop callback function set by
              elm_naviframe_item_pop_cb_set is not called for items between the
              top item and the destination item since those items are deleted
              without being popped.
            ]]
        }
      title_enabled_get @const {
            [[Get a value whether title area is enabled or not.]]
            return: bool; [[If $true, title area will be enabled, disabled otherwise]]
        }
      title_enabled_set {
            [[Enable/Disable the title area with transition effect

              When the title area is disabled, then the controls would be
              hidden so as to expand the content area to full-size.
            ]]
            params {
                @in enable: bool; [[If $true, title area will be enabled, disabled otherwise]]
                @in transition: bool; [[If $true, transition effect of the title will be visible, invisible otherwise]]
            }
        }
      promote {
            [[Promote an item already in the naviframe stack to the top of
              the stack.

              This will take the indicated item and promote it to the top of
              the stack as if it had been pushed there. The item must already
              be inside the naviframe stack to work.
            ]]
        }

      pop_cb_set {
            [[Set a function to be called when an item of the naviframe is
              going to be popped.

              Warning: Don't set "clicked" callback to the prev button
              additionally if the function does an exact same logic with
              this $func. When hardware back key is pressed then both
              callbacks will be called.
              Warning: The pop callback function is called only if the item is
              popped. Therefore, the pop callback function is not called if the
              item is deleted without being popped.

              @since 1.8
            ]]
            params {
                  @in func: Elm_Naviframe_Item_Pop_Cb @nullable; [[The callback function.]]
                  @in data: void_ptr @optional; [[Data to be passed to func call.]]
            }
        }
   }
   implements {
        Efl.Object.constructor;
        Efl.Object.destructor;
        Elm.Widget.Item.signal_emit;
        Elm.Widget.Item.part_text { get; set; }
        Elm.Widget.Item.part_content { get; set; }
        Elm.Widget.Item.part_content_unset;
        Elm.Widget.Item.style { set; }
        Efl.Access.Object.access_children { get; }
   }
}