Raxol.UI.ElementRenderer (Raxol v2.0.1)

View Source

Handles rendering of specific UI element types (box, text, table, panel).

Summary

Functions

Builds table attributes with data and styles.

Calculates table width based on headers, data, and column widths.

Renders a text element.

Functions

build_table_attrs(table_element, headers, data, column_widths)

Builds table attributes with data and styles.

calculate_table_width(headers, data, column_widths)

Calculates table width based on headers, data, and column widths.

render_box(x, y, width, height, style, theme)

Renders a box element.

render_panel(x, y, width, height, panel_element, theme, parent_style)

Renders a panel element with children.

render_table(x, y, width, height, attrs, theme)

Renders a table element.

render_text(x, y, text, style, theme)

Renders a text element.