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

Method onMouse

gui/folder.go:120–135  ·  view source on GitHub ↗

onMouse receives mouse button events over the folder panel.

(evname string, ev interface{})

Source from the content-addressed store, hash-verified

118
119// onMouse receives mouse button events over the folder panel.
120func (f *Folder) onMouse(evname string, ev interface{}) {
121
122 switch evname {
123 case OnMouseDown:
124 cont := f.contentPanel.GetPanel()
125 if !cont.Visible() {
126 cont.SetVisible(true)
127 } else {
128 cont.SetVisible(false)
129 }
130 f.update()
131 f.recalc()
132 default:
133 return
134 }
135}
136
137// onCursor receives cursor events over the folder panel
138func (f *Folder) onCursor(evname string, ev interface{}) {

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
recalcMethod · 0.95
GetPanelMethod · 0.65
VisibleMethod · 0.65
SetVisibleMethod · 0.65

Tested by

no test coverage detected