Documentation ¶
Overview ¶
Created by Navid Yaghoobi and adopted from https://github.com/navidys/tvxwidgets/blob/b555c093da2ad329f1c79eb0f0631a1b9c616efe/spinner.go License text: https://github.com/navidys/tvxwidgets/blob/b555c093da2ad329f1c79eb0f0631a1b9c616efe/LICENSE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
Spinner represents a spinner widget.
func (*Spinner) Draw ¶
func (s *Spinner) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*Spinner) SetCustomStyle ¶
SetCustomStyle sets a list of runes as custom frames to show as the spinner.
func (*Spinner) SetStyle ¶
func (s *Spinner) SetStyle(style SpinnerStyle) *Spinner
SetStyle sets the spinner style.
type SpinnerStyle ¶
type SpinnerStyle int
const ( SpinnerDotsCircling SpinnerStyle = iota SpinnerDotsUpDown SpinnerBounce SpinnerLine SpinnerCircleQuarters SpinnerSquareCorners SpinnerCircleHalves SpinnerCorners SpinnerArrows SpinnerHamburger SpinnerStack SpinnerGrowHorizontal SpinnerGrowVertical SpinnerStar SpinnerBoxBounce )
type StartStopper ¶
type StartStopper interface { Start() Stop() }
Click to show internal directories.
Click to hide internal directories.