eulaview

package
v0.0.0-...-b5ee18e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EulaView

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

EulaView contains the EULA UI

func New

func New() *EulaView

New creates and returns a new EulaView.

func (*EulaView) HandleInput

func (ev *EulaView) HandleInput(event *tcell.EventKey) *tcell.EventKey

HandleInput handles custom input.

func (*EulaView) Initialize

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

Initialize initializes the view.

func (*EulaView) Name

func (ev *EulaView) Name() string

Name returns the friendly name of the view.

func (*EulaView) OnShow

func (ev *EulaView) OnShow()

OnShow gets called when the view is shown to the user

func (*EulaView) Primitive

func (ev *EulaView) Primitive() tview.Primitive

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

func (*EulaView) Reset

func (ev *EulaView) Reset() (err error)

Reset resets the page, undoing any user input.

func (*EulaView) Title

func (ev *EulaView) Title() string

Title returns the title of the view.

Jump to

Keyboard shortcuts

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