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

Method SetSliceBase

core/list.go:394–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392}
393
394func (lb *ListBase) SetSliceBase() {
395 lb.SelectMode = false
396 lb.MakeIter = 0
397 lb.StartIndex = 0
398 lb.VisibleRows = lb.MinRows
399 if !lb.IsReadOnly() {
400 lb.SelectedIndex = -1
401 }
402 lb.ResetSelectedIndexes()
403}
404
405// SetSlice sets the source slice that we are viewing.
406// This ReMakes the view for this slice if different.

Callers 3

SetSliceMethod · 0.95
SetTableMethod · 0.80
SetSliceMethod · 0.80

Calls 2

ResetSelectedIndexesMethod · 0.95
IsReadOnlyMethod · 0.45

Tested by

no test coverage detected