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

Method update

gui/folder.go:153–160  ·  view source on GitHub ↗

update updates the folder visual state

()

Source from the content-addressed store, hash-verified

151
152// update updates the folder visual state
153func (f *Folder) update() {
154
155 if f.cursorOver {
156 f.applyStyle(&f.styles.Over)
157 return
158 }
159 f.applyStyle(&f.styles.Normal)
160}
161
162// applyStyle applies the specified style
163func (f *Folder) applyStyle(s *FolderStyle) {

Callers 4

InitializeMethod · 0.95
SetStylesMethod · 0.95
onMouseMethod · 0.95
onCursorMethod · 0.95

Calls 1

applyStyleMethod · 0.95

Tested by

no test coverage detected