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

Method windowName

core/windowgeometry.go:209–214  ·  view source on GitHub ↗

windowName returns window name before first colon, if exists. This is the part of the name used to record settings

(winName string)

Source from the content-addressed store, hash-verified

207// windowName returns window name before first colon, if exists.
208// This is the part of the name used to record settings
209func (ws *windowGeometrySaver) windowName(winName string) string {
210 if ci := strings.Index(winName, ":"); ci > 0 {
211 return winName[:ci]
212 }
213 return winName
214}
215
216// settingStart turns on SettingNoSave to prevent subsequent redundant calls to
217// save a geometry that was being set from already-saved settings.

Callers 2

recordPrefMethod · 0.95
prefMethod · 0.95

Calls 1

IndexMethod · 0.45

Tested by

no test coverage detected