Type Skeleton

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

Skeleton is one static loading placeholder. It intentionally has no timer or shimmer worker: applications that want animation must explicitly schedule it.

Constructors

BeginSkeleton#

func BeginSkeleton(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) Skeleton

BeginSkeleton starts a neutral placeholder declaration.

Methods

Circle#

func (skeleton Skeleton) Circle() Skeleton

Circle makes the placeholder circular within the shorter bound.

Paint#

func (skeleton Skeleton) Paint()

Paint emits one quiet neutral surface and no interaction region.

Phase#

func (skeleton Skeleton) Phase(phase float32) Skeleton

Phase explicitly supplies a repeating 0..1 animation phase. The component never schedules frames itself; callers opt into animation and repaint only while a loading transition is active.

Radius#

func (skeleton Skeleton) Radius(radius float32) Skeleton

Radius overrides the corner radius.