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

Method SetStyles

gui/tree.go:68–73  ·  view source on GitHub ↗

SetStyles sets the tree styles overriding the default style.

(s *TreeStyles)

Source from the content-addressed store, hash-verified

66
67// SetStyles sets the tree styles overriding the default style.
68func (t *Tree) SetStyles(s *TreeStyles) {
69
70 t.styles = s
71 t.List.SetStyles(t.styles.List)
72 t.update()
73}
74
75// InsertAt inserts a child panel at the specified position in the tree.
76func (t *Tree) InsertAt(pos int, child IPanel) {

Callers 1

InitializeMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected