Compare commits
2 Commits
6839870055
...
be7356d037
Author | SHA1 | Date | |
---|---|---|---|
be7356d037 | |||
b63fc999e1 |
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user