Documentation ¶
Index ¶
- type ProgressBar
- func (p *ProgressBar) Draw(screen tcell.Screen)
- func (p *ProgressBar) GetHeight() int
- func (p *ProgressBar) SetChangedFunc(handler func()) *ProgressBar
- func (p *ProgressBar) SetFillColor(color tcell.Color) *ProgressBar
- func (p *ProgressBar) SetLabelColor(color tcell.Color) *ProgressBar
- func (p *ProgressBar) SetProgress(progress int)
- func (p *ProgressBar) SetStatus(status string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
ProgressBar represents a progressbar primitive.
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.
Click to show internal directories.
Click to hide internal directories.