class

Obsctl::TUI::Model

Inherits Reference < Object

Constants

MAX_LOG_ENTRIES = 200

Constructors

new(theme : Obsctl::TUI::Theme = Theme.default, show_icons : Bool = true, advanced_ui : Bool = true, command_palette_prefix : String = "/", locale : String = "en")
Source

Instance methods

advanced_ui
Source
advanced_ui=(advanced_ui : Bool)
Source
anim
Source
anim=(anim : AnimClock)
Source
audio_cursor
Source
audio_cursor=(audio_cursor : Int32)
Source
audio_inputs
Source
bitrate_history
Source
bitrate_history=(bitrate_history : Array(Float64))
Source
clamp_cursors
Source
collection_cursor
Source
collection_cursor=(collection_cursor : Int32)
Source
command_palette
Source
command_palette=(command_palette : CommandPaletteState)
Source
command_palette_prefix
Source
command_palette_prefix=(command_palette_prefix : String)
Source
connected_to_daemon
Source
connected_to_daemon=(connected_to_daemon : Bool)
Source
cpu_history
Source
cpu_history=(cpu_history : Array(Float64))
Source
current_profile
Source
current_scene
Source
current_scene_collection
Source
cursor(panel : FocusPanel = @focus) : Int32
Source
focus
Source
focus=(focus : FocusPanel)
Source
focused_audio
Source
focused_scene
Source
fps_history
Source
fps_history=(fps_history : Array(Float64))
Source
item_count(panel : FocusPanel = @focus) : Int32
Source
last_result
Source
last_result=(last_result : String | Nil)
Source
last_result_frame
Source
last_result_frame=(last_result_frame : UInt64)
Source
locale
Source
locale=(locale : String)
Source
logs
Source
logs=(logs : Array(LogEntry))
Source
meter_levels
Source
meter_levels=(meter_levels : Hash(String, Float64))
Source
meter_peak(input_name : String) : Float64 | Nil

How far up the meter the peak marker has fallen to by now, or nil once it has slid all the way back to the floor.

Source
meter_peaks

The highest point each meter has reached and the frame it reached it on. Storing the frame rather than decaying the value every tick keeps the peak marker a pure function of the clock, so nothing has to run between renders for it to fall.

Source
meter_peaks=(meter_peaks : Hash(String, Tuple(Float64, UInt64)))

The highest point each meter has reached and the frame it reached it on. Storing the frame rather than decaying the value every tick keeps the peak marker a pure function of the clock, so nothing has to run between renders for it to fall.

Source
move_bottom
Source
move_by(delta : Int32)
Source
move_down
Source
move_to(index : Int32)

Cursor moves are clamped rather than wrapped: G on the last item and a half page past the end both stop at the end, the way they do in vim.

Source
move_top
Source
move_up
Source
obs_connected?
Source
pending_sequence

Keys of a multi-key binding pressed so far, e.g. <leader>f. Non-empty means the which-key menu is open and the next key completes or cancels.

Source
pending_sequence=(pending_sequence : String)

Keys of a multi-key binding pressed so far, e.g. <leader>f. Non-empty means the which-key menu is open and the next key completes or cancels.

Source
preview_audio_volume(input_name : String, percent : Int32) : Nil

Applies an optimistic volume value so rapid keyboard changes render immediately while the debounced OBS command is still pending.

Source
profile_cursor
Source
profile_cursor=(profile_cursor : Int32)
Source
profiles
Source
push_log(entry : LogEntry)
Source
record_duration_ms
Source
record_meter_level(input_name : String, level : Float64) : Nil

Records a meter reading and raises the peak hold when the reading beats whatever is left of the last one.

Source
record_metric_sample
Source
recording?
Source
revealed_last_result(characters_per_frame : Int32) : String | Nil
Source
rich_ui?
Source
scene_collections
Source
scene_cursor
Source
scene_cursor=(scene_cursor : Int32)
Source
scene_flash
Source
scene_flash=(scene_flash : Tuple(String, UInt64) | Nil)
Source
scenes
Source
set_last_result(message : String)
Source
settings_cursor
Source
settings_cursor=(settings_cursor : Int32)
Source
show_icons
Source
show_icons=(show_icons : Bool)
Source
snapshot
Source
snapshot=(snapshot : OBS::State::ObsSnapshot | Nil)
Source
stats
Source
stream_bitrate_kbps
Source
stream_duration_ms
Source
streaming?
Source
symbol(rich : String, fallback : String) : String
Source
theme
Source
theme=(theme : Theme)
Source
theme_preview_origin
Source
theme_preview_origin=(theme_preview_origin : Theme | Nil)
Source
view
Source
view=(view : View)
Source