class

Opal::UI::Meter

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

High-density progress and telemetry meter utilizing 1/8th Unicode fractional block characters for ultra-precise terminal data visualization.

Constructors

new(value : Float64 = 0.0, orientation : MeterOrientation = MeterOrientation::Horizontal, gradient : MeterGradient = MeterGradient::Heat, show_label : Bool = true, width : Int32 | Nil = nil, height : Int32 | Nil = nil)
Source

Instance methods

gradient
Source
gradient=(gradient : MeterGradient)
Source
label_format
Source
label_format=(label_format : String)
Source
orientation
Source
orientation=(orientation : MeterOrientation)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
show_label=(show_label : Bool)
Source
show_label?
Source
solid_color
Source
solid_color=(solid_color : Color)
Source
value
Source
value=(value : Float64)
Source