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

Used in data driven table creation. More...

#include <hpdftbl.h>

Data Fields

char * title
 
_Bool use_header
 
_Bool use_labels
 
_Bool use_labelgrid
 
size_t rows
 
size_t cols
 
HPDF_REAL xpos
 
HPDF_REAL ypos
 
HPDF_REAL width
 
HPDF_REAL height
 
hpdftbl_content_callback_t content_cb
 
hpdftbl_content_callback_t label_cb
 
hpdftbl_content_style_callback_t style_cb
 
hpdftbl_callback_t post_cb
 
hpdftbl_cell_spec_tcell_spec
 

Detailed Description

Used in data driven table creation.

This is used together with an array of cell specification hpdftbl_cell_spec_t to specify the layout of a table.

Examples
example01.c, tut_ex13_1.c, and tut_ex13_2.c.

Field Documentation

◆ cell_spec

hpdftbl_cell_spec_t* cell_spec

Array of cell specification

Referenced by hpdftbl_stroke_from_data().

◆ cols

size_t cols

Number of columns in the table

Referenced by hpdftbl_stroke_from_data().

◆ content_cb

Content callback for this table

Referenced by hpdftbl_stroke_from_data().

◆ height

HPDF_REAL height

Height of table

Referenced by hpdftbl_stroke_from_data().

◆ label_cb

Label callback for this table

Referenced by hpdftbl_stroke_from_data().

◆ post_cb

Post table creation callback.

Referenced by hpdftbl_stroke_from_data().

◆ rows

size_t rows

Number of rows in the table

Referenced by hpdftbl_stroke_from_data().

◆ style_cb

Content style callback for table

Referenced by hpdftbl_stroke_from_data().

◆ title

char* title

Table title

Examples
example01.c, tut_ex13_1.c, and tut_ex13_2.c.

Referenced by hpdftbl_stroke_from_data().

◆ use_header

_Bool use_header

Use a header for the table

Referenced by hpdftbl_stroke_from_data().

◆ use_labelgrid

_Bool use_labelgrid

Use label grid in table

Referenced by hpdftbl_stroke_from_data().

◆ use_labels

_Bool use_labels

Use labels in table

Referenced by hpdftbl_stroke_from_data().

◆ width

HPDF_REAL width

Width of table

Referenced by hpdftbl_stroke_from_data().

◆ xpos

HPDF_REAL xpos

X-position for table

Referenced by hpdftbl_stroke_from_data().

◆ ypos

HPDF_REAL ypos

Y-position for table

Referenced by hpdftbl_stroke_from_data().


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