struct

CryTUI::Widgets::CircleSpinner

Inherits Struct < Value < Object

A braille dot ring with an arc rotating around it.

The ring is a midpoint-circle perimeter sorted by angle, so the arc is a contiguous run of that list and rotating it is a single index step. The unlit remainder of the ring stays visible in dim_color, which is what separates this from a bare chasing dot.

Constructors

new(tick : UInt64, radius : Int32 = 4, arc_len : Int32 = 0, ticks_per_step : UInt64 = 1_u64, spin : Spin = Spin::Clockwise, arc_color : Color = Color::WHITE, dim_color : Color = Color::DARK_GRAY, block : Block | Nil = nil, style : Style = Style.new, alignment : Alignment = Alignment::Left)
Source

Class methods

perimeter(radius : Int32) : Array(RingCoord)

Midpoint circle, reflected through all eight octants and then sorted clockwise from the top so index order is travel order.

Source

Instance methods

alignment
Source
arc_color
Source
arc_len
Source
block
Source
char_size
Source
dim_color
Source
lines
Source
radius
Source
render(area : Rect, buffer : Buffer) : Nil
Source
spin
Source
style
Source
tick
Source
ticks_per_step
Source