fork/gdu

git clone https://git.julia.blue/fork/gdu

Daniel Mildeci: use golangci-lint 2.6 (#449)8b8f1e9

subvolume
806 B23 linesraw
1// Package common contains commong logic and interfaces used across Gdu
2// nolint: revive //Why: this is common package
3package common
4
5import (
6	"github.com/gdamore/tcell/v2"
7	"github.com/rivo/tview"
8)
9
10// TermApplication is interface for the terminal UI app
11type TermApplication interface {
12	Run() error
13	Stop()
14	Suspend(f func()) bool
15	SetRoot(root tview.Primitive, fullscreen bool) *tview.Application
16	SetFocus(p tview.Primitive) *tview.Application
17	SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *tview.Application
18	SetMouseCapture(
19		capture func(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction),
20	) *tview.Application
21	QueueUpdateDraw(f func()) *tview.Application
22	SetBeforeDrawFunc(func(screen tcell.Screen) bool) *tview.Application
23}