diskview

package
v0.0.0-...-4cb4cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskView

type DiskView struct {
	// contains filtered or unexported fields
}

DiskView contains the disk selection UI

func New

func New() *DiskView

New creates and returns a new DiskView.

func (*DiskView) HandleInput

func (dv *DiskView) HandleInput(event *tcell.EventKey) *tcell.EventKey

HandleInput handles custom input.

func (*DiskView) Initialize

func (dv *DiskView) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, cfg *configuration.Config, app *tview.Application, nextPage, previousPage, quit, refreshTitle func()) (err error)

Initialize initializes the view.

func (*DiskView) Name

func (dv *DiskView) Name() string

Name returns the friendly name of the view.

func (*DiskView) OnShow

func (dv *DiskView) OnShow()

OnShow gets called when the view is shown to the user

func (*DiskView) Primitive

func (dv *DiskView) Primitive() tview.Primitive

Primitive returns the primary primitive to be rendered for the view.

func (*DiskView) Reset

func (dv *DiskView) Reset() (err error)

Reset resets the page, undoing any user input.

func (*DiskView) Title

func (dv *DiskView) Title() string

Title returns the title of the view.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL