1class @beta Efl.Ui.Frame extends Efl.Ui.Layout_Base implements Efl.Input.Clickable, Efl.Text, Efl.Text_Markup, 2 Efl.Content 3{ 4 [[Frame widget 5 6 The Frame widget allows for collapsing and expanding the content widget 7 by clicking on the frame label. 8 the label and content can be set using text_set and content_set api. 9 ]] 10 methods { 11 @property collapse { 12 [[Manually collapse a frame without animations. 13 Use this to toggle the collapsed state of a frame, bypassing animations. 14 ]] 15 set { 16 } 17 get { 18 } 19 values { 20 collapse: bool; [[$true to collapse, $false to expand.]] 21 } 22 } 23 @property autocollapse { 24 [[Toggle autocollapsing of a frame. 25 When $enable is $true, clicking a frame's label will collapse the frame 26 vertically, shrinking it to the height of the label. 27 By default, this is DISABLED. 28 ]] 29 set { 30 } 31 get { 32 } 33 values { 34 autocollapse: bool; [[Whether to enable autocollapse.]] 35 } 36 } 37 collapse_go { 38 [[Manually collapse a frame with animations 39 Use this to toggle the collapsed state of a frame, triggering animations. 40 ]] 41 params { 42 @in collapse: bool; [[$true to collapse, $false to expand.]] 43 } 44 } 45 } 46 implements { 47 Efl.Object.constructor; 48 Efl.Canvas.Group.group_calculate; 49 Efl.Text.text { get; set; } 50 Efl.Text_Markup.markup { get; set; } 51 Efl.Ui.L10n.l10n_text { get; set; } 52 Efl.Content.content { get; set; } 53 Efl.Content.content_unset; 54 } 55} 56