its all events LETS GO - I still need to make it be all events
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"esdi/tui/internal/models"
|
||||
|
||||
"github.com/rivo/tview"
|
||||
)
|
||||
|
||||
// Main controller events
|
||||
|
||||
type LogEv struct {
|
||||
Log string
|
||||
}
|
||||
|
||||
type PrintLogEv struct {
|
||||
Log string
|
||||
}
|
||||
|
||||
type RedrawEv struct{}
|
||||
|
||||
type ChangeFocusEv struct {
|
||||
Target tview.Primitive
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Layout events
|
||||
|
||||
type CreateWindowEv struct {
|
||||
Window models.Window
|
||||
}
|
||||
|
||||
type WindowCreatedEv struct {
|
||||
Window models.Window
|
||||
}
|
||||
|
||||
type ErrorCreateWindowEv struct {
|
||||
Error error
|
||||
}
|
||||
|
||||
type ErrorFormParseEv struct {
|
||||
Error error
|
||||
}
|
||||
Reference in New Issue
Block a user