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

Method DropExternal

events/source.go:141–146  ·  view source on GitHub ↗

DropExternal creates and sends a Drop event with given values

(where image.Point, md mimedata.Mimes)

Source from the content-addressed store, hash-verified

139
140// DropExternal creates and sends a Drop event with given values
141func (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.

Callers 1

DropEventMethod · 0.80

Calls 3

NewExternalDropFunction · 0.85
InitMethod · 0.65
SendMethod · 0.45

Tested by

no test coverage detected