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

Used in data driven table creation. More...

#include <hpdftbl.h>

Data Fields

size_t row
 
size_t col
 
unsigned rowspan
 
unsigned colspan
 
char * label
 
hpdftbl_content_callback_t content_cb
 
hpdftbl_content_callback_t label_cb
 
hpdftbl_content_style_callback_t style_cb
 
hpdftbl_canvas_callback_t canvas_cb
 

Detailed Description

Used in data driven table creation.

A table can be specified by creating a array of this structure together with the hpdftbl_spec_t structure. The array should have one entry for each cell in the table.

See also
hpdftbl_stroke_from_data()
Examples
example01.c, and tut_ex13_2.c.

Field Documentation

◆ canvas_cb

Canvas callback for this cell

Referenced by hpdftbl_stroke_from_data().

◆ col

size_t col

Row for specified cell

Referenced by hpdftbl_stroke_from_data().

◆ colspan

unsigned colspan

Number of columns the specified cell should span

Referenced by hpdftbl_stroke_from_data().

◆ content_cb

Content callback for this cell

Referenced by hpdftbl_stroke_from_data().

◆ label

char* label

The label for this cell

Referenced by hpdftbl_stroke_from_data().

◆ label_cb

Label callback for this cell

Referenced by hpdftbl_stroke_from_data().

◆ row

size_t row

Row for specified cell

Examples
tut_ex13_2.c.

Referenced by hpdftbl_stroke_from_data().

◆ rowspan

unsigned rowspan

Number of rows the specified cell should span

Referenced by hpdftbl_stroke_from_data().

◆ style_cb

Content style callback for this cell

Referenced by hpdftbl_stroke_from_data().


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