aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_panes.eo
blob: 62594f3b22030a0452045f20c2f84d4e476055e8 (plain) (blame)
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
class Efl.Ui.Panes (Efl.Ui.Layout, Efl.Ui.Direction,
                    Efl.Ui.Clickable)
{
   [[Elementary panes class]]
   legacy_prefix: elm_panes;
   event_prefix: elm_panes;
   methods {
      @property split_ratio {
         [[Set the split ratio between panes widget first and second parts.

           By default it's homogeneous, i.e., both sides have the same size.

           If something different is required, it can be set with this function.
           For example, if the first content should be displayed over
           75% of the panes size, $ratio should be passed as 0.75.
           This way, second content will be resized to 25% of panes size.

           If displayed vertically, first content is displayed at top, and
           second content at bottom.

           Note: This ratio will change when user drags the panes bar.]]
           set {
             legacy: null;
           }
           get {
             legacy: null;
           }
         values {
            ratio: double; [[Value between 0.0 and 1.0 representing split ratio between panes first and second parts.]]
         }
      }
      @property fixed {
         [[Set whether the left and right panes can be resized by user interaction.

           By default panes' contents are resizable by user interaction.]]
         set {
         }
         get {
         }
         values {
            fixed: bool; [[Use $true to fix the left and right panes sizes and make
            them not to be resized by user interaction. Use $false to make them
            resizable.]]
         }
      }
   }
   parts {
      first: Efl.Ui.Panes_Part; [[The first half of the panes widget (left or top)]]
      second: Efl.Ui.Panes_Part; [[The second half of the panes widget (right or bottom)]]
   }
   implements {
      Efl.Object.constructor;
      Efl.Ui.Widget.theme_apply;
      Efl.Ui.Direction.direction { get; set; [[Only supports $vertical and $horizontal. Default is $vertical.]] }
      Efl.Part.part_get;
   }
   events {
      press: void; [[Called when panes got pressed]]
      unpress: void; [[Called when panes are no longer pressed]]
   }
}