Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppList ¶
type AppList struct {
Width int
Height int
Apps []simulator.App
Cursor int
Viewport int
SearchMode bool
SearchQuery string
SimulatorName string
Keys *config.KeysConfig
}
AppList renders the app list view
func NewAppList ¶
NewAppList creates a new app list renderer
type Component ¶ added in v1.1.0
Component is implemented by view-state components (lists, viewers) that produce a title, body, and footer for Layout to compose.
type ContentBox ¶
ContentBox represents a content area with optional header
func NewContentBox ¶
func NewContentBox(width, height int) *ContentBox
NewContentBox creates a new content box
type DatabaseTableContent ¶
type DatabaseTableContent struct {
Width int
Height int
Table *simulator.TableInfo
TableData []map[string]any
DatabaseFile *simulator.FileInfo
Viewport int
DataOffset int
Keys *config.KeysConfig
}
DatabaseTableContent renders individual table content view
func NewDatabaseTableContent ¶
func NewDatabaseTableContent(width, height int) *DatabaseTableContent
NewDatabaseTableContent creates a new database table content renderer
func (*DatabaseTableContent) GetFooter ¶
func (dtc *DatabaseTableContent) GetFooter() string
GetFooter returns the footer for the table content view
func (*DatabaseTableContent) GetTitle ¶
func (dtc *DatabaseTableContent) GetTitle() string
GetTitle returns the title for the table content view
func (*DatabaseTableContent) Render ¶
func (dtc *DatabaseTableContent) Render() string
Render renders the table content
type DatabaseTableList ¶
type DatabaseTableList struct {
Width int
Height int
DatabaseInfo *simulator.DatabaseInfo
DatabaseFile *simulator.FileInfo
Cursor int
Viewport int
Keys *config.KeysConfig
}
DatabaseTableList renders the database table list view
func NewDatabaseTableList ¶
func NewDatabaseTableList(width, height int) *DatabaseTableList
NewDatabaseTableList creates a new database table list renderer
func (*DatabaseTableList) GetFooter ¶
func (dtl *DatabaseTableList) GetFooter() string
GetFooter returns the footer for the database table list
func (*DatabaseTableList) GetTitle ¶
func (dtl *DatabaseTableList) GetTitle() string
GetTitle returns the title for the database table list
func (*DatabaseTableList) Render ¶
func (dtl *DatabaseTableList) Render() string
Render renders the database table list content
func (*DatabaseTableList) Update ¶
func (dtl *DatabaseTableList) Update(dbInfo *simulator.DatabaseInfo, dbFile *simulator.FileInfo, cursor, viewport int, keys *config.KeysConfig)
Update updates the list data
type FileList ¶
type FileList struct {
Width int
Height int
Files []simulator.FileInfo
Cursor int
Viewport int
App *simulator.App
Breadcrumbs []string
Keys *config.KeysConfig
}
FileList renders the file list view
func NewFileList ¶
NewFileList creates a new file list renderer
type Layout ¶
Layout represents the main TUI layout structure
type SimulatorList ¶
type SimulatorList struct {
Width int
Height int
Simulators []simulator.Item
Cursor int
Viewport int
FilterActive bool
SearchMode bool
SearchQuery string
Keys *config.KeysConfig
}
SimulatorList renders the simulator list view
func NewSimulatorList ¶
func NewSimulatorList(width, height int) *SimulatorList
NewSimulatorList creates a new simulator list renderer
func (*SimulatorList) GetFooter ¶
func (sl *SimulatorList) GetFooter() string
GetFooter returns the footer for the simulator list
func (*SimulatorList) GetStatus ¶
func (sl *SimulatorList) GetStatus() string
GetStatus returns the status message for the simulator list
func (*SimulatorList) GetTitle ¶
func (sl *SimulatorList) GetTitle(totalCount int) string
GetTitle returns the title for the simulator list
func (*SimulatorList) Render ¶
func (sl *SimulatorList) Render() string
Render renders the simulator list content
func (*SimulatorList) Update ¶
func (sl *SimulatorList) Update(simulators []simulator.Item, cursor, viewport int, filterActive, searchMode bool, searchQuery string, keys *config.KeysConfig)
Update updates the list data
type StatusProvider ¶ added in v1.1.0
type StatusProvider interface {
GetStatus() string
}
StatusProvider is an optional extension: components that also emit a status-line message implement this. Only FileViewer currently does (for SVG rendering warnings).