libhpdftbl 1.5.0
Table construction library for Haru PDF library
|
Specification of individual cells in the table. More...
#include <hpdftbl.h>
Data Fields | |
size_t | row |
size_t | col |
char * | label |
char * | content |
size_t | colspan |
size_t | rowspan |
HPDF_REAL | height |
HPDF_REAL | width |
HPDF_REAL | delta_x |
HPDF_REAL | delta_y |
HPDF_REAL | textwidth |
hpdftbl_content_callback_t | content_cb |
char * | content_dyncb |
hpdftbl_content_callback_t | label_cb |
char * | label_dyncb |
hpdftbl_content_style_callback_t | style_cb |
char * | content_style_dyncb |
hpdftbl_canvas_callback_t | canvas_cb |
char * | canvas_dyncb |
hpdf_text_style_t | content_style |
struct hpdftbl_cell * | parent_cell |
Specification of individual cells in the table.
This structure contains all information pertaining to each cell in the table. The position of the cell is given as relative position from the lower left corner of the table.
hpdftbl_canvas_callback_t canvas_cb |
Canvas callback. If this is specified then this will override any canvas callback specified for the table
Referenced by hpdftbl_set_cell_canvas_cb(), and hpdftbl_stroke().
char* canvas_dyncb |
Cell canvas dynamic callback name. The name is created vi strdup()
and must be freed on destruction
Referenced by hpdftbl_dumps(), and hpdftbl_set_cell_canvas_dyncb().
size_t col |
When serializing it makes it easier to have row,col in each cell
Referenced by hpdftbl_create_title(), hpdftbl_dumps(), and hpdftbl_loads().
size_t colspan |
Number of column this cell spans
Referenced by hpdftbl_clear_spanning(), hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), and hpdftbl_set_cellspan().
char* content |
String reference for cell content
Referenced by hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), and hpdftbl_set_content().
hpdftbl_content_callback_t content_cb |
Content callback. If this is specified then this will override any content callback specified for the table
Referenced by hpdftbl_set_cell_content_cb().
char* content_dyncb |
Cell content dynamic callback name. The name is created vi strdup()
and must be freed on destruction
Referenced by hpdftbl_dumps(), and hpdftbl_set_cell_content_dyncb().
hpdf_text_style_t content_style |
The style of the text content. If a style callback is specified the callback will override this setting
Referenced by hpdftbl_dumps(), hpdftbl_set_cell_content_style(), and hpdftbl_stroke().
char* content_style_dyncb |
Cell content style dynamic callback name. The name is created vi strdup()
and must be freed on destruction
Referenced by hpdftbl_dumps(), and hpdftbl_set_cell_content_style_dyncb().
HPDF_REAL delta_x |
X-Position of cell from bottom left of table
Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().
HPDF_REAL delta_y |
Y-Position of cell from bottom left of table
Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().
HPDF_REAL height |
Height of cell
Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().
char* label |
String reference for label text
Referenced by hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), and hpdftbl_set_labels().
hpdftbl_content_callback_t label_cb |
Label callback. If this is specified then this will override any content callback specified for the table
Referenced by hpdftbl_set_cell_label_cb().
char* label_dyncb |
Cell label dynamic callback name. The name is created vi strdup()
and must be freed on destruction
Referenced by hpdftbl_dumps(), and hpdftbl_set_cell_label_dyncb().
struct hpdftbl_cell* parent_cell |
Parent cell. If this cell is part of another cells row or column spanning this is a reference to this parent cell. Normal cells without spanning has NULL as parent cell.
Referenced by hpdftbl_clear_spanning(), hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), hpdftbl_set_cell_canvas_cb(), hpdftbl_set_cell_content_cb(), hpdftbl_set_cell_content_style_cb(), hpdftbl_set_cell_label_cb(), hpdftbl_set_cellspan(), and hpdftbl_stroke().
size_t row |
When serializing it makes it easier to have row,col in each cell
Referenced by hpdftbl_create_title(), hpdftbl_dumps(), and hpdftbl_loads().
size_t rowspan |
Number of rows this cell spans
Referenced by hpdftbl_clear_spanning(), hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), hpdftbl_set_cellspan(), and hpdftbl_stroke().
hpdftbl_content_style_callback_t style_cb |
Style for content callback. If this is specified then this will override any style content callback specified for the table
Referenced by hpdftbl_set_cell_content_style_cb(), and hpdftbl_stroke().
HPDF_REAL textwidth |
Width of content string
Referenced by hpdftbl_dumps(), and hpdftbl_loads().
HPDF_REAL width |
Width of cells
Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().