progressbar

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressBar

type ProgressBar struct {
	*tview.Box
	// contains filtered or unexported fields
}

ProgressBar represents a progressbar primitive.

func NewProgressBar

func NewProgressBar() *ProgressBar

NewProgressBar returns a new progress bar.

func (*ProgressBar) Draw

func (p *ProgressBar) Draw(screen tcell.Screen)

Draw renders this primitive onto the screen.

func (*ProgressBar) GetHeight

func (p *ProgressBar) GetHeight() int

GetHeight returns the height of the progressbar.

func (*ProgressBar) SetChangedFunc

func (p *ProgressBar) SetChangedFunc(handler func()) *ProgressBar

SetChangedFunc sets a callback that will be invoked when the status or progress changes for the progressbar.

func (*ProgressBar) SetFillColor

func (p *ProgressBar) SetFillColor(color tcell.Color) *ProgressBar

SetFillColor sets the color of progress bar itself.

func (*ProgressBar) SetLabelColor

func (p *ProgressBar) SetLabelColor(color tcell.Color) *ProgressBar

SetLabelColor sets the color of text in the progress bar primitive.

func (*ProgressBar) SetProgress

func (p *ProgressBar) SetProgress(progress int)

SetProgress sets the completed progress of the progressbar.

func (*ProgressBar) SetStatus

func (p *ProgressBar) SetStatus(status string)

SetStatus sets the status label of the progressbar.

Jump to

Keyboard shortcuts

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