onMouse receives mouse button events over the folder panel.
(evname string, ev interface{})
| 118 | |
| 119 | // onMouse receives mouse button events over the folder panel. |
| 120 | func (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 |
| 138 | func (f *Folder) onCursor(evname string, ev interface{}) { |
nothing calls this directly
no test coverage detected