Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::table_grid Class Reference

#include <table.h>

Public Types

using rows = std::vector< std::vector< table_cell > >
 

Public Member Functions

 table_grid ()
 
void clear ()
 
void begin_row (const std::shared_ptr< render_item > &row)
 
void add_cell (const std::shared_ptr< render_item > &el)
 
bool is_rowspanned (int r, int c)
 
void finish ()
 
table_cellcell (int t_col, int t_row)
 
table_columncolumn (int c)
 
table_rowrow (int r)
 
std::vector< std::shared_ptr< render_item > > & captions ()
 
int rows_count () const
 
int cols_count () const
 
void top_captions_height (int height)
 
int top_captions_height () const
 
void bottom_captions_height (int height)
 
int bottom_captions_height () const
 
void distribute_max_width (int width, int start, int end)
 
void distribute_min_width (int width, int start, int end)
 
void distribute_width (int width, int start, int end)
 
void distribute_width (int width, int start, int end, table_column_accessor *acc)
 
int calc_table_width (int block_width, bool is_auto, int &min_table_width, int &max_table_width)
 
void calc_horizontal_positions (const margins &table_borders, border_collapse bc, int bdr_space_x)
 
void calc_vertical_positions (const margins &table_borders, border_collapse bc, int bdr_space_y)
 
void calc_rows_height (int blockHeight, int borderSpacingY)
 

Private Attributes

int m_rows_count
 
int m_cols_count
 
rows m_cells
 
table_column::vector m_columns
 
table_row::vector m_rows
 
std::vector< std::shared_ptr< render_item > > m_captions
 
int m_top_captions_height
 
int m_bottom_captions_height
 

Member Typedef Documentation

◆ rows

using litehtml::table_grid::rows = std::vector<std::vector<table_cell> >

Constructor & Destructor Documentation

◆ table_grid()

litehtml::table_grid::table_grid ( )
inline

Member Function Documentation

◆ add_cell()

void litehtml::table_grid::add_cell ( const std::shared_ptr< render_item > &  el)

◆ begin_row()

void litehtml::table_grid::begin_row ( const std::shared_ptr< render_item > &  row)

◆ bottom_captions_height() [1/2]

int litehtml::table_grid::bottom_captions_height ( ) const
inline

◆ bottom_captions_height() [2/2]

void litehtml::table_grid::bottom_captions_height ( int  height)
inline

◆ calc_horizontal_positions()

void litehtml::table_grid::calc_horizontal_positions ( const margins table_borders,
border_collapse  bc,
int  bdr_space_x 
)

◆ calc_rows_height()

void litehtml::table_grid::calc_rows_height ( int  blockHeight,
int  borderSpacingY 
)

◆ calc_table_width()

int litehtml::table_grid::calc_table_width ( int  block_width,
bool  is_auto,
int &  min_table_width,
int &  max_table_width 
)

◆ calc_vertical_positions()

void litehtml::table_grid::calc_vertical_positions ( const margins table_borders,
border_collapse  bc,
int  bdr_space_y 
)

◆ captions()

std::vector< std::shared_ptr< render_item > > & litehtml::table_grid::captions ( )
inline

◆ cell()

litehtml::table_cell * litehtml::table_grid::cell ( int  t_col,
int  t_row 
)

◆ clear()

void litehtml::table_grid::clear ( )

◆ cols_count()

int litehtml::table_grid::cols_count ( ) const
inline

◆ column()

table_column & litehtml::table_grid::column ( int  c)
inline

◆ distribute_max_width()

void litehtml::table_grid::distribute_max_width ( int  width,
int  start,
int  end 
)

◆ distribute_min_width()

void litehtml::table_grid::distribute_min_width ( int  width,
int  start,
int  end 
)

◆ distribute_width() [1/2]

void litehtml::table_grid::distribute_width ( int  width,
int  start,
int  end 
)

◆ distribute_width() [2/2]

void litehtml::table_grid::distribute_width ( int  width,
int  start,
int  end,
table_column_accessor acc 
)

◆ finish()

void litehtml::table_grid::finish ( )

◆ is_rowspanned()

bool litehtml::table_grid::is_rowspanned ( int  r,
int  c 
)

◆ row()

table_row & litehtml::table_grid::row ( int  r)
inline

◆ rows_count()

int litehtml::table_grid::rows_count ( ) const
inline

◆ top_captions_height() [1/2]

int litehtml::table_grid::top_captions_height ( ) const
inline

◆ top_captions_height() [2/2]

void litehtml::table_grid::top_captions_height ( int  height)
inline

Member Data Documentation

◆ m_bottom_captions_height

int litehtml::table_grid::m_bottom_captions_height
private

◆ m_captions

std::vector<std::shared_ptr<render_item> > litehtml::table_grid::m_captions
private

◆ m_cells

rows litehtml::table_grid::m_cells
private

◆ m_cols_count

int litehtml::table_grid::m_cols_count
private

◆ m_columns

table_column::vector litehtml::table_grid::m_columns
private

◆ m_rows

table_row::vector litehtml::table_grid::m_rows
private

◆ m_rows_count

int litehtml::table_grid::m_rows_count
private

◆ m_top_captions_height

int litehtml::table_grid::m_top_captions_height
private

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