类型 SpinnerLayout

API 文档由 Go 源码生成,内容为英文。

type SpinnerLayout struct {
	Bounds ui.Rect
	Phase  SpinnerPhase
	Label  string
}

SpinnerLayout reports the fitted icon geometry and semantic label.

构造函数

PaintSpinner#

func PaintSpinner(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, phase SpinnerPhase) SpinnerLayout

PaintSpinner paints one caller-selected static frame of the official size-4 loader. The brightest spoke is the phase and the fade trails behind it, so advancing the phase turns the indicator clockwise. It never starts a timer, schedules a frame, or retains phase.