summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_panel.eo
blob: 57d716b86916e82c1234a41bae9c6ac7fc070173 (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
enum @beta Efl.Ui.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]]
}

struct @beta Efl.Ui.Panel_Scroll_Info
{
   [[Panel scroll information]]
   rel_x: double; [[content scrolled position (0.0 ~ 1.0) in the panel]]
   rel_y: double; [[content scrolled position (0.0 ~ 1.0) in the panel]]
}

class @beta Efl.Ui.Panel extends Efl.Ui.Layout_Base
                         implements Efl.Ui.Focus.Layer, Efl.Content,
                                    Efl.Access.Widget.Action
                         composites Efl.Ui.Scrollable
{
   [[Elementary panel class]]
   methods {
      @property orient {
         [[The orientation of the panel

           Sets from where the panel will (dis)appear.
         ]]
         set {
         }
         get {
         }
         values {
            orient: Efl.Ui.Panel_Orient; [[The panel orientation.]]
         }
      }
      @property hidden {
         [[The state of the panel.]]
         set {
         }
         get {
         }
         values {
            hidden: bool; [[If $true, the panel will run the animation to disappear.]]
         }
      }
      @property scrollable {
         [[The scrollability of the panel.]]
         set {
         }
         get {
         }
         values {
            scrollable: bool; [[The scrollable state.]]
         }
      }
      @property scrollable_content_size {
         [[The size of the scrollable panel.]]
         set {
         }
         get {
         }
         values {
            ratio: double; [[Size ratio]]
         }
      }
      toggle {
         [[Toggle the hidden state of the panel from code]]
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Gfx.Entity.size { set; }
      Efl.Canvas.Group.group_member_add;
      Efl.Canvas.Group.group_calculate;
      Efl.Ui.Widget.theme_apply;
      Efl.Ui.Widget.disabled {set;}
      Efl.Ui.Widget.on_access_update;
      Efl.Ui.Widget.widget_input_event_handler;
      Efl.Ui.Widget.interest_region { get; }
      Efl.Access.Widget.Action.elm_actions { get; }
      Efl.Ui.I18n.mirrored { set; }
      Efl.Content.content { get; set; }
      Efl.Content.content_unset;
   }
   events {
      toggled: void; [[Called when the hidden state was toggled]]
   }
}