SetLayout sets the layout to use to position the children of this panel To remove the layout, call this function passing nil as parameter.
(ilayout ILayout)
| 608 | // SetLayout sets the layout to use to position the children of this panel |
| 609 | // To remove the layout, call this function passing nil as parameter. |
| 610 | func (p *Panel) SetLayout(ilayout ILayout) { |
| 611 | |
| 612 | p.layout = ilayout |
| 613 | if p.layout != nil { |
| 614 | p.layout.Recalc(p) |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | // Layout returns this panel current layout |
| 619 | func (p *Panel) Layout() ILayout { |