Added Pos methods to DisplayDrag{Enter,Move}Event.
This commit is contained in:
parent
b63fc999e1
commit
2bef601230
10
ui/event.go
10
ui/event.go
@ -12,15 +12,23 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
type DisplayDragMoveEnter struct {
|
type DisplayDragMoveEvent struct {
|
||||||
EventBase
|
EventBase
|
||||||
X, Y float32
|
X, Y float32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e DisplayDragMoveEvent) Pos() geom.PointF32 {
|
||||||
|
return geom.PtF32(e.X, e.Y)
|
||||||
|
}
|
||||||
|
|
||||||
type DisplayDropEvent struct {
|
type DisplayDropEvent struct {
|
||||||
EventBase
|
EventBase
|
||||||
X, Y float32
|
X, Y float32
|
||||||
|
Loading…
Reference in New Issue
Block a user