SetTopChild sets the Z coordinate of the specified panel to be on top of all other children of this panel. The function does not check if the specified panel is a child of this one.
(ipan IPanel)
| 223 | // The function does not check if the specified panel is a |
| 224 | // child of this one. |
| 225 | func (p *Panel) SetTopChild(ipan IPanel) { |
| 226 | |
| 227 | // Remove panel and if found appends to the end |
| 228 | found := p.Remove(ipan) |
| 229 | if found { |
| 230 | p.Add(ipan) |
| 231 | p.SetChanged(true) |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | // SetZLayerDelta sets the Z-layer of the panel relative to its parent. |
| 236 | func (p *Panel) SetZLayerDelta(zLayerDelta int) { |