libhpdftbl 1.5.0
Table construction library for Haru PDF library
Loading...
Searching...
No Matches
hpdftbl_cell Struct Reference

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_cellparent_cell
 

Detailed Description

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.

Field Documentation

◆ 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().

◆ canvas_dyncb

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().

◆ col

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().

◆ colspan

size_t colspan

◆ content

char* content

String reference for cell content

Referenced by hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), and hpdftbl_set_content().

◆ 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().

◆ content_dyncb

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().

◆ content_style

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().

◆ content_style_dyncb

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().

◆ delta_x

HPDF_REAL delta_x

X-Position of cell from bottom left of table

Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().

◆ delta_y

HPDF_REAL delta_y

Y-Position of cell from bottom left of table

Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().

◆ height

HPDF_REAL height

Height of cell

Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().

◆ label

char* label

String reference for label text

Referenced by hpdftbl_dumps(), hpdftbl_loads(), hpdftbl_set_cell(), and hpdftbl_set_labels().

◆ 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().

◆ label_dyncb

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().

◆ parent_cell

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().

◆ row

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().

◆ rowspan

size_t rowspan

◆ 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().

◆ textwidth

HPDF_REAL textwidth

Width of content string

Referenced by hpdftbl_dumps(), and hpdftbl_loads().

◆ width

HPDF_REAL width

Width of cells

Referenced by hpdftbl_dumps(), hpdftbl_loads(), and hpdftbl_stroke().


The documentation for this struct was generated from the following file: