summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_panel.eo
blob: 4eec9cd88c788dc7ed9f861446d583a8c4118d5b (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
enum Elm.Panel.Orient
{
   [[Panel orientation mode]]

   top, [[Panel (dis)appears from the top]]
   bottom, [[Panel (dis)appears from the bottom]]
   left, [[Panel (dis)appears from the left]]
   right [[Panel (dis)appears from the right]]
}

class Elm.Panel (Elm.Layout, Elm.Interface_Scrollable,
                 Elm.Interface.Atspi_Widget_Action)
{
   eo_prefix: elm_obj_panel;
   methods {
      @property orient {
         set {
            [[Set the orientation of the panel

              Set from where the panel will (dis)appear.
            ]]
         }
         get {
            [[Get the orientation of the panel.]]
         }
         values {
            orient: Elm.Panel.Orient(Elm.Panel.Orient.left); [[The panel orientation.]]
         }
      }
      @property hidden {
         set {
            [[Set the state of the panel.]]
         }
         get {
            [[Get the state of the panel.]]
         }
         values {
            hidden: bool; [[If true, the panel will run the animation to disappear.]]
         }
      }
      @property scrollable {
         set {
            [[Set the scrollability of the panel.]]
         }
         get {
            [[Get the state of the scrollability.

              @since 1.12
            ]]
         }
         values {
            scrollable: bool; [[The scrollable state.]]
         }
      }
      @property scrollable_content_size {
         set {
            [[Set the size of the scrollable panel.]]
         }
         values {
            ratio: double;
         }
      }
      toggle {
         [[Toggle the hidden state of the panel from code]]
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Evas.Object.Smart.add;
      Evas.Object.Smart.member_add;
      Evas.Object.Smart.del;
      Evas.Object.Smart.resize;
      Evas.Object.Smart.move;
      Elm.Widget.theme_apply;
      Elm.Widget.focus_next_manager_is;
      Elm.Widget.focus_next;
      Elm.Widget.disable;
      Elm.Widget.access;
      Elm.Widget.event;
      Elm.Widget.on_focus_region;
      Efl.Container.content.get;
      Efl.Container.content_unset;
      Efl.Container.content.set;
      Elm.Layout.sizing_eval;
      Elm.Interface.Atspi_Widget_Action.elm_actions.get;
   }
}