summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_panes.eo
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-25 08:37:43 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-31 08:18:15 +0300
commit308320ae7d5eb9244b50ffe7b4dee46de7203ef2 (patch)
tree738cc0d18268563a5f40bd91c52e8f5430614491 /legacy/elementary/src/lib/elm_panes.eo
parent87ed15534a067027a148568650e9bd84fccb3a8c (diff)
Eolian: Integration of Panes
Diffstat (limited to 'legacy/elementary/src/lib/elm_panes.eo')
-rw-r--r--legacy/elementary/src/lib/elm_panes.eo160
1 files changed, 160 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_panes.eo b/legacy/elementary/src/lib/elm_panes.eo
new file mode 100644
index 0000000000..3fdefd4bca
--- /dev/null
+++ b/legacy/elementary/src/lib/elm_panes.eo
@@ -0,0 +1,160 @@
1class Elm_Panes (Elm_Layout)
2{
3 eo_prefix: elm_obj_panes;
4 properties {
5 content_left_size {
6 set {
7 /*@
8 Set the size proportion of panes widget's left side.
9
10 By default it's homogeneous, i.e., both sides have the same size.
11
12 If something different is required, it can be set with this function.
13 For example, if the left content should be displayed over
14 75% of the panes size, @p size should be passed as @c 0.75.
15 This way, right content will be resized to 25% of panes size.
16
17 If displayed vertically, left content is displayed at top, and
18 right content at bottom.
19
20 @note This proportion will change when user drags the panes bar.
21
22 @see elm_panes_content_left_size_get()
23
24 @ingroup Panes */
25 }
26 get {
27 /*@
28 Get the size proportion of panes widget's left side.
29
30 @return float value between 0.0 and 1.0 representing size proportion
31 of left side.
32
33 @see elm_panes_content_left_size_set() for more details.
34
35 @ingroup Panes */
36 }
37 values {
38 double size; /*@ Value between 0.0 and 1.0 representing size proportion
39 of left side. */
40 }
41 }
42 horizontal {
43 set {
44 /*@
45 Set how to split and dispose each content.
46
47 Use this function to change how your panes is to be disposed:
48 vertically or horizontally.
49 Horizontal panes have "top" and "bottom" contents, vertical panes have
50 "left" and "right" contents.
51
52 By default panes is in a vertical mode.
53
54 @see elm_panes_horizontal_get()
55
56 @ingroup Panes */
57 }
58 get {
59 /*@
60 Retrieve the split direction of a given panes widget.
61
62 @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
63 @c EINA_FALSE if it's @b vertical (and on errors).
64
65 @see elm_panes_horizontal_set() for more details.
66
67 @ingroup Panes */
68 }
69 values {
70 Eina_Bool horizontal; /*@ Use @c EINA_TRUE to make @p obj to split panes
71 horizontally ("top" and "bottom" contents). @c EINA_FALSE to make it
72 vertically ("left" and "right" contents) */
73 }
74 }
75 fixed {
76 set {
77 /*@
78 Set whether the left and right panes can be resized by user interaction.
79
80 By default panes' contents are resizable by user interaction.
81
82 @see elm_panes_fixed_get()
83 @see elm_panes_content_left_size_set()
84 @see elm_panes_content_right_size_set()
85
86 @ingroup Panes */
87 }
88 get {
89 /*@
90 Retrieve the resize mode for the panes of a given panes widget.
91
92 @return @c EINA_TRUE, if @p obj is set to be resizable by user interaction.
93
94 @see elm_panes_fixed_set() for more details.
95 @see elm_panes_content_left_size_get()
96 @see elm_panes_content_right_size_get()
97
98 @ingroup Panes */
99 }
100 values {
101 Eina_Bool fixed; /*@ Use @c EINA_TRUE to fix the left and right panes sizes and make
102 them not to be resized by user interaction. Use @c EINA_FALSE to make them
103 resizable. */
104 }
105 }
106 content_right_size {
107 set {
108 /*@
109 Set the size proportion of panes widget's right side.
110
111 By default it's homogeneous, i.e., both sides have the same size.
112
113 If something different is required, it can be set with this function.
114 For example, if the right content should be displayed over
115 75% of the panes size, @p size should be passed as @c 0.75.
116 This way, left content will be resized to 25% of panes size.
117
118 If displayed vertically, left content is displayed at top, and
119 right content at bottom.
120
121 @note This proportion will change when user drags the panes bar.
122
123 @see elm_panes_content_right_size_get()
124
125 @ingroup Panes */
126 }
127 get {
128 /*@
129 Get the size proportion of panes widget's right side.
130
131 @return float value between 0.0 and 1.0 representing size proportion
132 of right side.
133
134 @see elm_panes_content_right_size_set() for more details.
135
136 @ingroup Panes */
137 }
138 values {
139 double size; /*@ Value between 0.0 and 1.0 representing size proportion
140 of right side. */
141 }
142 }
143 }
144 implements {
145 class::constructor;
146 Eo_Base::constructor;
147 Evas_Smart::add;
148 Elm_Widget::focus_next_manager_is;
149 Elm_Widget::focus_next;
150 Elm_Widget::theme_apply;
151 Elm_Layout::content_aliases::get;
152 }
153 events {
154 clicked;
155 press;
156 unpress;
157 clicked,double;
158 }
159
160}