Compare commits

...

1 Commits

Author SHA1 Message Date
2bef601230 Added Pos methods to DisplayDrag{Enter,Move}Event. 2021-06-07 07:50:23 +02:00

View File

@ -12,15 +12,23 @@ type DisplayDragEnterEvent struct {
Files []string
}
func (e DisplayDragEnterEvent) Pos() geom.PointF32 {
return geom.PtF32(e.X, e.Y)
}
type DisplayDragLeaveEvent struct {
EventBase
}
type DisplayDragMoveEnter struct {
type DisplayDragMoveEvent struct {
EventBase
X, Y float32
}
func (e DisplayDragMoveEvent) Pos() geom.PointF32 {
return geom.PtF32(e.X, e.Y)
}
type DisplayDropEvent struct {
EventBase
X, Y float32