Cogs.Core
Public Types | Public Member Functions | Private Attributes | List of all members
litehtml::table_grid Class Reference

Public Types

typedef std::vector< std::vector< table_cell > > rows
 

Public Member Functions

void clear ()
 
void begin_row (element::ptr &row)
 
void add_cell (element::ptr &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)
 
int rows_count ()
 
int cols_count ()
 
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 (margins &table_borders, border_collapse bc, int bdr_space_x)
 
void calc_vertical_positions (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
 

Detailed Description

Definition at line 200 of file table.h.

Member Typedef Documentation

◆ rows

typedef std::vector< std::vector<table_cell> > litehtml::table_grid::rows

Definition at line 203 of file table.h.

Constructor & Destructor Documentation

◆ table_grid()

litehtml::table_grid::table_grid ( )
inline

Definition at line 212 of file table.h.

Member Function Documentation

◆ add_cell()

void litehtml::table_grid::add_cell ( element::ptr &  el)

Definition at line 10 of file table.cpp.

◆ begin_row()

void litehtml::table_grid::begin_row ( element::ptr &  row)

Definition at line 32 of file table.cpp.

◆ calc_horizontal_positions()

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

Definition at line 396 of file table.cpp.

◆ calc_rows_height()

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

Definition at line 460 of file table.cpp.

◆ calc_table_width()

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

Definition at line 294 of file table.cpp.

◆ calc_vertical_positions()

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

Definition at line 428 of file table.cpp.

◆ cell()

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

Definition at line 145 of file table.cpp.

◆ clear()

void litehtml::table_grid::clear ( )

Definition at line 387 of file table.cpp.

◆ cols_count()

int litehtml::table_grid::cols_count ( )
inline

Definition at line 228 of file table.h.

◆ column()

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

Definition at line 224 of file table.h.

◆ distribute_max_width()

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

Definition at line 154 of file table.cpp.

◆ distribute_min_width()

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

Definition at line 160 of file table.cpp.

◆ distribute_width() [1/2]

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

Definition at line 196 of file table.cpp.

◆ distribute_width() [2/2]

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

Definition at line 166 of file table.cpp.

◆ finish()

void litehtml::table_grid::finish ( )

Definition at line 60 of file table.cpp.

◆ is_rowspanned()

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

Definition at line 42 of file table.cpp.

◆ row()

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

Definition at line 225 of file table.h.

◆ rows_count()

int litehtml::table_grid::rows_count ( )
inline

Definition at line 227 of file table.h.

Member Data Documentation

◆ m_cells

rows litehtml::table_grid::m_cells
private

Definition at line 207 of file table.h.

◆ m_cols_count

int litehtml::table_grid::m_cols_count
private

Definition at line 206 of file table.h.

◆ m_columns

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

Definition at line 208 of file table.h.

◆ m_rows

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

Definition at line 209 of file table.h.

◆ m_rows_count

int litehtml::table_grid::m_rows_count
private

Definition at line 205 of file table.h.


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