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

Method SetTopChild

gui/panel.go:225–233  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

223// The function does not check if the specified panel is a
224// child of this one.
225func (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.
236func (p *Panel) SetZLayerDelta(zLayerDelta int) {

Callers 8

updateMethod · 0.80
InsertAtMethod · 0.80
onMouseMethod · 0.80
onMouseMethod · 0.80
recalcMethod · 0.80
setVScrollBarMethod · 0.80
recalcMethod · 0.80
recalcMethod · 0.80

Calls 3

RemoveMethod · 0.95
AddMethod · 0.95
SetChangedMethod · 0.80

Tested by

no test coverage detected