类型 FileDropEvent
API 文档由 Go 源码生成,内容为英文。
type FileDropEvent struct {
Phase FileDropPhase
X, Y float32
Target ID
// Paths are absolute file system paths, in the order the system gave them;
// set only for FileDropDrop. Folders are included as folders.
Paths []string
}FileDropEvent is files dragged from the system over, or dropped on, a window. Target is the hit under the point, as for a pointer event, so the application need not hit-test itself. Return Handled for FileDropOver and FileDropDrop when the target takes files: it is what the system shows to the user as an accepted drop. Repaint paints the window again, to show where the files would land.