efl/src/lib/elementary/efl_ui_panes.eo

62 lines
2.1 KiB
Plaintext
Raw Normal View History

class Efl.Ui.Panes (Efl.Ui.Layout, Efl.Ui.Direction,
2017-08-01 18:32:30 -07:00
Efl.Ui.Clickable)
2014-03-24 23:37:43 -07:00
{
[[Elementary panes class]]
legacy_prefix: elm_panes;
event_prefix: elm_panes;
2015-05-07 09:32:53 -07:00
methods {
@property split_ratio {
[[Set the split ratio between panes widget first and second parts.
2014-03-24 23:37:43 -07:00
By default it's homogeneous, i.e., both sides have the same size.
2014-03-24 23:37:43 -07:00
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;
}
2014-03-24 23:37:43 -07:00
values {
ratio: double; [[Value between 0.0 and 1.0 representing split ratio between panes first and second parts.]]
2014-03-24 23:37:43 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property fixed {
[[Set whether the left and right panes can be resized by user interaction.
2014-03-24 23:37:43 -07:00
By default panes' contents are resizable by user interaction.]]
set {
2014-03-24 23:37:43 -07:00
}
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.]]
2014-03-24 23:37:43 -07:00
}
}
}
2018-01-16 05:36:04 -08:00
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)]]
}
2014-03-24 23:37:43 -07:00
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;
2014-03-24 23:37:43 -07:00
}
events {
press; [[Called when panes got pressed]]
unpress; [[Called when panes are no longer pressed]]
2014-03-24 23:37:43 -07:00
}
}