Fixed rotating layouts; Added Shader layout

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:54 +01:00
1 parent 86aad51e37
commit 0196bb3707
13 files changed
+207 -93

No files matched your search

+3 -25
View File
@@ -7,11 +7,9 @@ import (
)
type base struct {
name string
widgets []app.Widget
visible bool
onButtonPress func(app.Context)
onButtonLongPress func(app.Context)
name string
widgets []app.Widget
visible bool
}
func (l *base) log() *logrus.Entry {
@@ -50,23 +48,3 @@ func (l *base) Show(ctx app.Context) {
}
l.visible = true
}
func (i *base) OnButtonPress(action func(app.Context)) {
i.onButtonPress = action
}
func (i *base) OnButtonLongPress(action func(app.Context)) {
i.onButtonLongPress = action
}
func (l *base) HandleButtonPress(ctx app.Context) {
if l.onButtonPress != nil {
l.onButtonPress(ctx)
}
}
func (l *base) HandleButtonLongPress(ctx app.Context) {
if l.onButtonLongPress != nil {
l.onButtonLongPress(ctx)
}
}