class

Crubbletea::Bubbles::Progress::Model

Inherits Reference < Object

Constants

DEFAULT_DAMPING = 1.0
DEFAULT_EMPTY_CHAR = '░'
DEFAULT_FREQUENCY = 18.0
DEFAULT_FULL_CHAR = '▌'
DEFAULT_WIDTH = 40
FPS = 60

Constructors

new(full : Char = DEFAULT_FULL_CHAR, full_color : Lipgloss::Color = "#7571F9", empty : Char = DEFAULT_EMPTY_CHAR, empty_color : Lipgloss::Color = "#606060", show_percentage : Bool = true, percent_format : String = " %3.0f%%", percentage_style : Lipgloss::Style = Lipgloss::Style.new, width : Int32 = DEFAULT_WIDTH)
Source

Instance methods

animating?
Source
decr_percent(v : Float64) : Crubbletea::Cmd
Source
empty
Source
empty_color
Source
full
Source
full_color
Source
incr_percent(v : Float64) : Crubbletea::Cmd
Source
percent
Source
percent_format
Source
percentage_style
Source
set_percent(p : Float64) : Crubbletea::Cmd
Source
set_spring_options(frequency : Float64, damping : Float64) : Nil
Source
show_percentage
Source
view
Source
view_as(pct : Float64) : String
Source
width
Source
width=(w : Int32) : Nil
Source