etui/widgets/spinner
Types
pub type Spinner {
Spinner(
style: SpinnerStyle,
label: String,
fg: style.Color,
bg: style.Color,
)
}
Constructors
-
Spinner( style: SpinnerStyle, label: String, fg: style.Color, bg: style.Color, )
pub type SpinnerStyle {
Dots
Line
Circle
Bounce
MiniDot
Jump
Pulse
Points
Globe
Moon
Monkey
Meter
Hamburger
Ellipsis
Custom(frames: List(String))
}
Constructors
-
Dots -
Line -
Circle -
Bounce -
MiniDot -
Jump -
Pulse -
Points -
Globe -
Moon -
Monkey -
Meter -
Hamburger -
Ellipsis -
Custom(frames: List(String))
Values
pub fn render(
buf: buffer.Buffer,
area: geometry.Rect,
s: Spinner,
frame: Int,
) -> buffer.Buffer
pub fn spinner_new() -> Spinner
pub fn with_colors(
s: Spinner,
fg: style.Color,
bg: style.Color,
) -> Spinner
pub fn with_render_style(s: Spinner, st: style.Style) -> Spinner
pub fn with_style(
s: Spinner,
spinner_style: SpinnerStyle,
) -> Spinner