aboutsummaryrefslogtreecommitdiff
path: root/go/ui/eventHandlers.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-09-03 14:26:21 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-09-03 14:26:21 +0200
commit24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e (patch)
tree40310c055521bad4fc2bd706e8fdb9b7dc1fb2cd /go/ui/eventHandlers.go
parent0587acd2dd03cb92d67ad0651eedda7275c084d7 (diff)
downloadmuhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.tar.gz
muhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.zip
add ui to packages and format code
Diffstat (limited to 'go/ui/eventHandlers.go')
-rw-r--r--go/ui/eventHandlers.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/go/ui/eventHandlers.go b/go/ui/eventHandlers.go
index 701190cf..d21b6e40 100644
--- a/go/ui/eventHandlers.go
+++ b/go/ui/eventHandlers.go
@@ -1,10 +1,12 @@
package ui
-type ClickHandler = func(int, int)
-type HoverHandler = func(bool, int, int)
-type ScrollHandler = func(int, int)
-type UpdateHandler = func() error
-type FocusHandler = func(bool)
+type (
+ ClickHandler = func(int, int)
+ HoverHandler = func(bool, int, int)
+ ScrollHandler = func(int, int)
+ UpdateHandler = func() error
+ FocusHandler = func(bool)
+)
type EventHandlers interface {
IsClickable() bool