struct

CryTUI::Widgets::LinearSpinner

Inherits Struct < Value < Object

A row or column of slots with a lit window moving through it.

Horizontally the window scrolls and wraps; vertically a single lit slot bounces between the ends, which reads as an activity indicator beside a log or a list.

Constructors

new(tick : UInt64, total_slots : Int32 = 3, lit_slots : Int32 = 2, ticks_per_step : UInt64 = 3_u64, direction : Direction = Direction::Horizontal, flow : Flow = Flow::Forwards, linear_style : LinearStyle = LinearStyle::Classic, active_color : Color = Color::WHITE, inactive_color : Color = Color::DARK_GRAY, block : Block | Nil = nil, style : Style = Style.new)
Source

Instance methods

active_color
Source
block
Source
bounce_index
Source
direction
Source
flow
Source
horizontal_line
Source
inactive_color
Source
linear_style
Source
lines
Source
lit_slots
Source
render(area : Rect, buffer : Buffer) : Nil
Source
style
Source
tick
Source
ticks_per_step
Source
total_slots
Source
vertical_lines(height : Int32) : Array(Line)
Source