Table of Contents

Class SpinnerBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

An activity indicator. It's stateless: the frame comes from the app's clock, and while a spinner is drawn the app ticks every 100 ms so it animates.

public sealed class SpinnerBuilder
Inheritance
SpinnerBuilder
Inherited Members

Methods

Draw(Buffer, Rect)

Draw the spinner on the first row of area.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Frames(SpinnerFrames)

The animation. The default is Braille, drawn as Line in conhost, whose fonts lack braille.

public SpinnerBuilder Frames(SpinnerFrames frames)

Parameters

frames SpinnerFrames

Returns

SpinnerBuilder

Label(string?)

Text after the spinner.

public SpinnerBuilder Label(string? label)

Parameters

label string

Returns

SpinnerBuilder

Style(Style)

A style patched over the theme's info style for the spinner glyph.

public SpinnerBuilder Style(Style style)

Parameters

style Style

Returns

SpinnerBuilder