MCPcopy
hub / github.com/g3n/engine / SetLayout

Method SetLayout

gui/panel.go:610–616  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
610func (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
619func (p *Panel) Layout() ILayout {

Callers 1

newSliderMethod · 0.95

Calls 1

RecalcMethod · 0.65

Tested by

no test coverage detected