2017-09-28 00:27:32 -07:00
|
|
|
class Efl.Ui.Frame (Efl.Ui.Layout, Efl.Ui.Clickable, Efl.Text, Efl.Text.Markup,
|
2017-10-16 04:58:46 -07:00
|
|
|
Efl.Ui.Translatable, Efl.Container)
|
2014-03-18 00:01:28 -07:00
|
|
|
{
|
2016-07-04 04:10:29 -07:00
|
|
|
[[Frame widget
|
|
|
|
|
|
|
|
The Frame widget allows for collapsing and expanding the content widget
|
|
|
|
by clicking on the frame label.
|
|
|
|
the label and content can be set using text_set and content_set api.
|
|
|
|
]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_frame;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property collapse {
|
2014-03-18 00:01:28 -07:00
|
|
|
set {
|
2015-07-29 06:44:12 -07:00
|
|
|
[[Manually collapse a frame without animations
|
|
|
|
Use this to toggle the collapsed state of a frame, bypassing animations.
|
|
|
|
]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-29 06:44:12 -07:00
|
|
|
[[Determine the collapse state of a frame
|
|
|
|
Use this to determine the collapse state of a frame.
|
|
|
|
]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-29 06:44:12 -07:00
|
|
|
collapse: bool; [[$true to collapse, $false to expand.]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property autocollapse {
|
2014-03-18 00:01:28 -07:00
|
|
|
set {
|
2015-07-29 06:44:12 -07:00
|
|
|
[[Toggle autocollapsing of a frame
|
|
|
|
When $enable is $true, clicking a frame's label will collapse the frame
|
|
|
|
vertically, shrinking it to the height of the label.
|
|
|
|
By default, this is DISABLED.
|
|
|
|
]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-29 06:44:12 -07:00
|
|
|
[[Determine autocollapsing of a frame
|
2014-03-18 00:01:28 -07:00
|
|
|
|
2015-07-29 06:44:12 -07:00
|
|
|
When this returns $true, clicking a frame's label will collapse the frame
|
|
|
|
vertically, shrinking it to the height of the label.
|
|
|
|
By default, this is DISABLED.
|
|
|
|
]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-29 06:44:12 -07:00
|
|
|
autocollapse: bool; [[Whether to enable autocollapse.]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
collapse_go {
|
2015-07-29 06:44:12 -07:00
|
|
|
[[Manually collapse a frame with animations
|
|
|
|
Use this to toggle the collapsed state of a frame, triggering animations.
|
|
|
|
]]
|
2014-03-18 00:01:28 -07:00
|
|
|
params {
|
2015-07-29 06:44:12 -07:00
|
|
|
@in collapse: bool; [[$true to collapse, $false to expand.]]
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_calculate;
|
2017-07-27 20:10:27 -07:00
|
|
|
Efl.Text.text { get; set; }
|
2017-09-28 00:27:32 -07:00
|
|
|
Efl.Text.Markup.markup { get; set; }
|
2017-09-25 00:12:28 -07:00
|
|
|
Efl.Ui.Translatable.translatable_text { get; set; }
|
2017-10-16 04:58:46 -07:00
|
|
|
Efl.Container.content { get; set; }
|
|
|
|
Efl.Container.content_unset;
|
2014-03-18 00:01:28 -07:00
|
|
|
}
|
|
|
|
}
|