MCPcopy Create free account
hub / github.com/cogentcore/core / Style

Method Style

core/tree.go:502–509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

500}
501
502func (tr *Tree) Style() {
503 if !tr.HasChildren() {
504 tr.SetClosed(true)
505 }
506 tr.WidgetBase.Style()
507 tr.Indent.ToDots(&tr.Styles.UnitContext)
508 tr.Indent.Dots = math32.Ceil(tr.Indent.Dots)
509}
510
511func (tr *Tree) setBranchState() {
512 br := tr.Branch

Callers 4

InitMethod · 0.95
SelectMethod · 0.95
UnselectMethod · 0.95
dragClearStatesMethod · 0.95

Calls 5

SetClosedMethod · 0.95
CeilFunction · 0.92
StyleMethod · 0.65
HasChildrenMethod · 0.45
ToDotsMethod · 0.45

Tested by

no test coverage detected