GetBar returns Bar layout widget at given side, nil if not there.
(side styles.SideIndexes)
| 109 | |
| 110 | // GetBar returns Bar layout widget at given side, nil if not there. |
| 111 | func (sc *Scene) GetBar(side styles.SideIndexes) *Frame { |
| 112 | nm := strings.ToLower(side.String()) + "-bar" |
| 113 | bar := sc.ChildByName(nm) |
| 114 | if bar != nil { |
| 115 | return bar.(*Frame) |
| 116 | } |
| 117 | return nil |
| 118 | } |
| 119 | |
| 120 | // GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise. |
| 121 | func (sc *Scene) GetTopAppBar() *Toolbar { |
no test coverage detected