Module ui_layout_utils

Module ui_layout_utils 

Source
Expand description

UI layout calculation utilities

This module contains pure utility functions for calculating UI dimensions, scrolling, and layout-related operations without coupling to the main TUI state.

Functions§

calculate_available_data_rows
Calculate the number of data rows available for display in the terminal This accounts for all UI chrome including input area, status bar, table header, and borders
calculate_table_data_rows
Calculate the number of data rows available for a table area This accounts only for table chrome (header, borders)
extract_timing_from_debug_string
Extract timing information from debug strings Parses strings like “total=123µs” or “total=1.5ms” and returns milliseconds as f64