Compare commits

..

2 Commits

2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -69,7 +69,6 @@ func newCircle() ui.ImageSource {
func (d *dropFiles) Init(ctx ui.Context) error {
d.ctx = ctx
drop.Register(d)
_, err := ctx.Fonts().CreateFontPath("default", "../resources/font/OpenSans-Regular.ttf", 14)
if err != nil {