summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_panes.eo
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-08-09 20:45:02 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-08-10 15:15:50 +0900
commit599bb616ec501bacd5af8cae3c9e5226509b3303 (patch)
treedaec1bd9cbb69fe5a4339d54c26938eb41070e48 /src/lib/elementary/efl_ui_panes.eo
parentaaaf1a282a82f2f10b01f561ea210d5643707a1a (diff)
Efl.Ui.Panes: rename left/right_size_set to split_ratio
This name makes more sense and one api does the job of two. We never needed two apis at first place though. Mark left/right_size_set as legacy apis too. This patch also implements min_split_ratio on parts. @feature refer T5359
Diffstat (limited to 'src/lib/elementary/efl_ui_panes.eo')
-rw-r--r--src/lib/elementary/efl_ui_panes.eo80
1 files changed, 17 insertions, 63 deletions
diff --git a/src/lib/elementary/efl_ui_panes.eo b/src/lib/elementary/efl_ui_panes.eo
index 6c1300868e..79a4fa6b9b 100644
--- a/src/lib/elementary/efl_ui_panes.eo
+++ b/src/lib/elementary/efl_ui_panes.eo
@@ -5,26 +5,28 @@ class Efl.Ui.Panes (Efl.Ui.Layout, Efl.Orientation,
5 legacy_prefix: elm_panes; 5 legacy_prefix: elm_panes;
6 event_prefix: elm_panes; 6 event_prefix: elm_panes;
7 methods { 7 methods {
8 @property content_left_size { 8 @property split_ratio {
9 [[Set the size proportion of panes widget's left side. 9 [[Set the split ratio between panes widget first and second parts.
10 10
11 By default it's homogeneous, i.e., both sides have the same size. 11 By default it's homogeneous, i.e., both sides have the same size.
12 12
13 If something different is required, it can be set with this function. 13 If something different is required, it can be set with this function.
14 For example, if the left content should be displayed over 14 For example, if the first content should be displayed over
15 75% of the panes size, $size should be passed as 0.75. 15 75% of the panes size, $ratio should be passed as 0.75.
16 This way, right content will be resized to 25% of panes size. 16 This way, second content will be resized to 25% of panes size.
17 17
18 If displayed vertically, left content is displayed at top, and 18 If displayed vertically, first content is displayed at top, and
19 right content at bottom. 19 second content at bottom.
20 20
21 Note: This proportion will change when user drags the panes bar.]] 21 Note: This ratio will change when user drags the panes bar.]]
22 set { 22 set {
23 } 23 legacy: null;
24 get { 24 }
25 } 25 get {
26 legacy: null;
27 }
26 values { 28 values {
27 size: double; [[Value between 0.0 and 1.0 representing size proportion of left side.]] 29 ratio: double; [[Value between 0.0 and 1.0 representing split ratio between panes first and second parts.]]
28 } 30 }
29 } 31 }
30 @property fixed { 32 @property fixed {
@@ -41,54 +43,6 @@ class Efl.Ui.Panes (Efl.Ui.Layout, Efl.Orientation,
41 resizable.]] 43 resizable.]]
42 } 44 }
43 } 45 }
44 @property content_right_size {
45 [[Set the size proportion of panes widget's right side.
46
47 By default it's homogeneous, i.e., both sides have the same size.
48
49 If something different is required, it can be set with this function.
50 For example, if the right content should be displayed over
51 75% of the panes size, $size should be passed as 0.75.
52 This way, left content will be resized to 25% of panes size.
53
54 If displayed vertically, left content is displayed at top, and
55 right content at bottom.
56
57 Note: This proportion will change when user drags the panes bar.]]
58 set {
59 }
60 get {
61 }
62 values {
63 size: double; [[Value between 0.0 and 1.0 representing size proportion of right side.]]
64 }
65 }
66 @property content_left_min_relative_size {
67 [[Controls the relative minimum size of panes widget's left side.
68
69 proportion of minimum size of left side.
70
71 Note: If displayed vertically, left content is displayed at top.]]
72 set {
73 }
74 get {
75 }
76 values {
77 size: double; [[Value between 0.0 and 1.0 representing size proportion of minimum size of left side.]]
78 }
79 }
80 @property content_right_min_relative_size {
81 [[Set the relative minimum size of panes widget's right side.
82
83 Note: If displayed vertically, right content is displayed at bottom.]]
84 set {
85 }
86 get {
87 }
88 values {
89 size: double; [[Value between 0.0 and 1.0 representing size proportion of minimum size of right side.]]
90 }
91 }
92 } 46 }
93 implements { 47 implements {
94 class.constructor; 48 class.constructor;