DropExternal creates and sends a Drop event with given values
(where image.Point, md mimedata.Mimes)
| 139 | |
| 140 | // DropExternal creates and sends a Drop event with given values |
| 141 | func (es *Source) DropExternal(where image.Point, md mimedata.Mimes) { |
| 142 | ev := NewExternalDrop(Drop, es.Last.MouseButton, where, es.Last.Mods, md) |
| 143 | es.Last.MousePos = where |
| 144 | ev.Init() |
| 145 | es.Deque.Send(ev) |
| 146 | } |
| 147 | |
| 148 | // Touch creates and sends a touch event with the given values. |
| 149 | // It also creates and sends a corresponding mouse event. |
no test coverage detected