MCPcopy Index your code
hub / github.com/g3n/engine / level

Method level

gui/tree.go:344–353  ·  view source on GitHub ↗

level returns the level of this node from the start of the tree

()

Source from the content-addressed store, hash-verified

342
343// level returns the level of this node from the start of the tree
344func (n *TreeNode) level() int {
345
346 level := 0
347 parNode := n.parNode
348 for parNode != nil {
349 parNode = parNode.parNode
350 level++
351 }
352 return level
353}
354
355// applyStyles applies the specified style to this tree node
356func (n *TreeNode) applyStyle(s *TreeNodeStyle) {

Callers 2

insertMethod · 0.95
insertItemsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected