diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 20:25:15 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 20:28:56 +0200 |
| commit | 5a4a5159b3dcc1caa01e81222f3f1beefcfb4b02 (patch) | |
| tree | 643fa1cdddca1f03d5e76719a2afb607009d91c1 /go/ui/widget.go | |
| parent | f64e8747e287e949ce7cbbb42303ad1cdfabec89 (diff) | |
| download | muhqs-game-5a4a5159b3dcc1caa01e81222f3f1beefcfb4b02.tar.gz muhqs-game-5a4a5159b3dcc1caa01e81222f3f1beefcfb4b02.zip | |
use any instead of interface{}
Diffstat (limited to 'go/ui/widget.go')
| -rw-r--r-- | go/ui/widget.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/widget.go b/go/ui/widget.go index da12929d..4082c828 100644 --- a/go/ui/widget.go +++ b/go/ui/widget.go @@ -6,7 +6,7 @@ import ( type Widget interface { Draw(*ebiten.Image) - FindObjectAt(int, int) interface{} + FindObjectAt(int, int) any Contains(int, int) bool Layout() (int, int) @@ -57,7 +57,7 @@ func (w *WidgetBase) Contains(x, y int) bool { return x >= 0 && y >= 0 && x >= w.X && x <= w.X+w.Width && y >= w.Y && y <= w.Y+w.Height } -func (w *WidgetBase) FindObjectAt(int, int) interface{} { +func (w *WidgetBase) FindObjectAt(int, int) any { return nil } |
