Compare commits

...

1 Commits

Author SHA1 Message Date
be7356d037 Added Pos methods to DisplayDrag{Enter,Move}Event. 2021-06-07 07:48:24 +02:00

View File

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