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

Method UnselectEvent

core/tree.go:856–861  ·  view source on GitHub ↗

UnselectEvent unselects this node (if selected), and root sends a selection event.

()

Source from the content-addressed store, hash-verified

854// UnselectEvent unselects this node (if selected),
855// and root sends a selection event.
856func (tr *Tree) UnselectEvent() {
857 if tr.StateIs(states.Selected) {
858 tr.Unselect()
859 tr.sendSelectEvent()
860 }
861}
862
863//////////////////////////////////////////////////////////////////////////////
864// Moving

Callers 1

selectUpdateMethod · 0.95

Calls 3

UnselectMethod · 0.95
sendSelectEventMethod · 0.95
StateIsMethod · 0.80

Tested by

no test coverage detected