ELinks 0.16.1.1
table.h File Reference
#include "util/color.h"
Include dependency graph for table.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  html_start_end
struct  table_cell
struct  table_column
struct  table_colors
struct  table

Macros

#define table   table_elinks
#define ALIGN_TR   -1
#define VALIGN_TR   -1
#define VALIGN_TOP   0
#define VALIGN_MIDDLE   1
#define VALIGN_BOTTOM   2
#define VALIGN_BASELINE   VALIGN_TOP /* Not implemented. */
#define WIDTH_AUTO   -1
#define WIDTH_RELATIVE   -2
#define TABLE_FRAME_VOID   0
#define TABLE_FRAME_ABOVE   1
#define TABLE_FRAME_BELOW   2
#define TABLE_FRAME_HSIDES   (TABLE_FRAME_ABOVE | TABLE_FRAME_BELOW)
#define TABLE_FRAME_LHS   4
#define TABLE_FRAME_RHS   8
#define TABLE_FRAME_VSIDES   (TABLE_FRAME_LHS | TABLE_FRAME_RHS)
#define TABLE_FRAME_BOX   (TABLE_FRAME_HSIDES | TABLE_FRAME_VSIDES)
#define TABLE_RULE_NONE   0
#define TABLE_RULE_ROWS   1
#define TABLE_RULE_COLS   2
#define TABLE_RULE_ALL   3
#define TABLE_RULE_GROUPS   4
#define CELL(table, col, row)

Functions

struct tableparse_table (char *html, char *eof, char **end, char *attr, int sh, struct html_context *html_context)
struct tablenew_table (void)
void free_table (struct table *table)
void new_columns (struct table *table, int span, int width, int align, int valign, int group)
struct table_cellnew_cell (struct table *table, int dest_col, int dest_row)
void set_td_width (struct table *table, int col, int width, int force)

Macro Definition Documentation

◆ ALIGN_TR

#define ALIGN_TR   -1

◆ CELL

#define CELL ( table,
col,
row )
Value:
(&(table)->cells[(row) * (table)->real_cols + (col)])
#define table
Definition kbdbind.c:27

◆ table

#define table   table_elinks

◆ TABLE_FRAME_ABOVE

#define TABLE_FRAME_ABOVE   1

◆ TABLE_FRAME_BELOW

#define TABLE_FRAME_BELOW   2

◆ TABLE_FRAME_BOX

#define TABLE_FRAME_BOX   (TABLE_FRAME_HSIDES | TABLE_FRAME_VSIDES)

◆ TABLE_FRAME_HSIDES

#define TABLE_FRAME_HSIDES   (TABLE_FRAME_ABOVE | TABLE_FRAME_BELOW)

◆ TABLE_FRAME_LHS

#define TABLE_FRAME_LHS   4

◆ TABLE_FRAME_RHS

#define TABLE_FRAME_RHS   8

◆ TABLE_FRAME_VOID

#define TABLE_FRAME_VOID   0

◆ TABLE_FRAME_VSIDES

#define TABLE_FRAME_VSIDES   (TABLE_FRAME_LHS | TABLE_FRAME_RHS)

◆ TABLE_RULE_ALL

#define TABLE_RULE_ALL   3

◆ TABLE_RULE_COLS

#define TABLE_RULE_COLS   2

◆ TABLE_RULE_GROUPS

#define TABLE_RULE_GROUPS   4

◆ TABLE_RULE_NONE

#define TABLE_RULE_NONE   0

◆ TABLE_RULE_ROWS

#define TABLE_RULE_ROWS   1

◆ VALIGN_BASELINE

#define VALIGN_BASELINE   VALIGN_TOP /* Not implemented. */

◆ VALIGN_BOTTOM

#define VALIGN_BOTTOM   2

◆ VALIGN_MIDDLE

#define VALIGN_MIDDLE   1

◆ VALIGN_TOP

#define VALIGN_TOP   0

◆ VALIGN_TR

#define VALIGN_TR   -1

◆ WIDTH_AUTO

#define WIDTH_AUTO   -1

◆ WIDTH_RELATIVE

#define WIDTH_RELATIVE   -2

Function Documentation

◆ free_table()

void free_table ( struct table * table)

◆ new_cell()

struct table_cell * new_cell ( struct table * table,
int dest_col,
int dest_row )

◆ new_columns()

void new_columns ( struct table * table,
int span,
int width,
int align,
int valign,
int group )

◆ new_table()

struct table * new_table ( void )

◆ parse_table()

struct table * parse_table ( char * html,
char * eof,
char ** end,
char * attr,
int sh,
struct html_context * html_context )

◆ set_td_width()

void set_td_width ( struct table * table,
int col,
int width,
int force )