GCC Middle and Back End API Reference
text_art::table_cell_sizes Class Reference

#include <table.h>

Collaboration diagram for text_art::table_cell_sizes:

Public Member Functions

 table_cell_sizes (table_dimension_sizes &col_widths, table_dimension_sizes &row_heights)
void pass_1 (const table &table)
void pass_2 (const table &table)
canvas::size_t get_canvas_size (const table::rect_t &rect) const

Data Fields

table_dimension_sizesm_col_widths
table_dimension_sizesm_row_heights

Detailed Description

A workspace for computing the row heights and column widths
of a table (in canvas units).
The col_widths and row_heights could be shared between multiple
instances, for aligning multiple tables vertically or horizontally.   

Constructor & Destructor Documentation

◆ table_cell_sizes()

text_art::table_cell_sizes::table_cell_sizes ( table_dimension_sizes & col_widths,
table_dimension_sizes & row_heights )
inline

References m_col_widths, and m_row_heights.

Member Function Documentation

◆ get_canvas_size()

◆ pass_1()

◆ pass_2()

void table_cell_sizes::pass_2 ( const table & table)

Field Documentation

◆ m_col_widths

table_dimension_sizes& text_art::table_cell_sizes::m_col_widths

◆ m_row_heights

table_dimension_sizes& text_art::table_cell_sizes::m_row_heights

The documentation for this class was generated from the following files: