2017-08-01 18:32:30 -07:00
|
|
|
class Efl.Ui.Panes (Elm.Layout, Efl.Orientation,
|
|
|
|
Efl.Ui.Clickable)
|
2014-03-24 23:37:43 -07:00
|
|
|
{
|
2016-11-24 02:46:51 -08:00
|
|
|
[[Elementary panes class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_panes;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_panes;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property content_left_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Set the size proportion of panes widget's left side.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
By default it's homogeneous, i.e., both sides have the same size.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
If something different is required, it can be set with this function.
|
|
|
|
For example, if the left content should be displayed over
|
|
|
|
75% of the panes size, $size should be passed as 0.75.
|
|
|
|
This way, right content will be resized to 25% of panes size.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
If displayed vertically, left content is displayed at top, and
|
|
|
|
right content at bottom.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: This proportion will change when user drags the panes bar.]]
|
|
|
|
set {
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-07-31 08:16:13 -07:00
|
|
|
size: double; [[Value between 0.0 and 1.0 representing size proportion of left side.]]
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property fixed {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Set whether the left and right panes can be resized by user interaction.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
By default panes' contents are resizable by user interaction.]]
|
|
|
|
set {
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-07-31 08:16:13 -07:00
|
|
|
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.]]
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property content_right_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Set the size proportion of panes widget's right side.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
By default it's homogeneous, i.e., both sides have the same size.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
If something different is required, it can be set with this function.
|
|
|
|
For example, if the right content should be displayed over
|
|
|
|
75% of the panes size, $size should be passed as 0.75.
|
|
|
|
This way, left content will be resized to 25% of panes size.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
If displayed vertically, left content is displayed at top, and
|
|
|
|
right content at bottom.
|
2014-03-24 23:37:43 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: This proportion will change when user drags the panes bar.]]
|
|
|
|
set {
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-07-31 08:16:13 -07:00
|
|
|
size: double; [[Value between 0.0 and 1.0 representing size proportion of right side.]]
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property content_left_min_relative_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Controls the relative minimum size of panes widget's left side.
|
2014-06-16 18:23:30 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
proportion of minimum size of left side.
|
2015-02-13 20:29:20 -08:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: If displayed vertically, left content is displayed at top.]]
|
|
|
|
set {
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-24 02:46:51 -08:00
|
|
|
size: double; [[Value between 0.0 and 1.0 representing size proportion of minimum size of left side.]]
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property content_right_min_relative_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Set the relative minimum size of panes widget's right side.
|
2014-06-16 18:23:30 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: If displayed vertically, right content is displayed at bottom.]]
|
|
|
|
set {
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-24 02:46:51 -08:00
|
|
|
size: double; [[Value between 0.0 and 1.0 representing size proportion of minimum size of right side.]]
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property content_left_min_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Set the absolute minimum size of panes widget's left side.
|
2014-06-16 18:23:30 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: If displayed vertically, left content is displayed at top.]]
|
|
|
|
set {
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2017-05-15 01:23:11 -07:00
|
|
|
size: int; [[Value representing minimum size of left side in pixels.]]
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property content_right_min_size {
|
2015-07-31 08:16:13 -07:00
|
|
|
[[Control the absolute minimum size of panes widget's right side.
|
2014-06-16 18:23:30 -07:00
|
|
|
|
2015-07-31 08:16:13 -07:00
|
|
|
Note: If displayed vertically, right content is displayed at bottom.]]
|
|
|
|
set {
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2017-05-15 01:23:11 -07:00
|
|
|
size: int; [[Value representing minimum size of right side in pixels.]]
|
2014-06-16 18:23:30 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.theme_apply;
|
2017-01-11 07:35:03 -08:00
|
|
|
Efl.Orientation.orientation { get; set; }
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-24 02:46:51 -08:00
|
|
|
press; [[Called when panes got pressed]]
|
|
|
|
unpress; [[Called when panes are no longer pressed]]
|
2014-03-24 23:37:43 -07:00
|
|
|
}
|
|
|
|
}
|