diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 20:25:15 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:33 +0200 |
| commit | 84d69cf805e1b998768a5a340f0388cf68307ff2 (patch) | |
| tree | c6578326dafade6fd00ccdee525af288f140fe8f /go/ui/widget.go | |
| parent | 81e9ab9db504e09e24523482b169726a25d9a3b1 (diff) | |
| download | muhqs-game-84d69cf805e1b998768a5a340f0388cf68307ff2.tar.gz muhqs-game-84d69cf805e1b998768a5a340f0388cf68307ff2.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 } |
