Fixed rotating layouts; Added Shader layout
This commit is contained in:
13 files changed
+207
-93
No files matched your search
+3
-25
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user