Graphviz  2.35.20130930.0449
Data Structures | Macros | Functions
htmltable.c File Reference
#include <assert.h>
#include "render.h"
#include "htmltable.h"
#include "agxbuf.h"
#include "pointset.h"
#include "intset.h"
Include dependency graph for htmltable.c:

Go to the source code of this file.

Data Structures

struct  htmlenv_t
 
struct  htmlmap_data_t
 

Macros

#define DEFAULT_BORDER   1
 
#define DEFAULT_CELLPADDING   2
 
#define DEFAULT_CELLSPACING   2
 
#define RESET(fld)   if(obj->fld != save->fld) {free(obj->fld); obj->fld = save->fld;}
 
#define SPLIT(x, n, s)   (((x) - ((s)-1)*((n)-1)) / (n))
 

Functions

void emit_html_label (GVJ_t *job, htmllabel_t *lp, textlabel_t *tp)
 
void free_html_font (htmlfont_t *fp)
 
void free_html_data (htmldata_t *dp)
 
void free_html_text (htmltxt_t *t)
 
void free_html_img (htmlimg_t *ip)
 
void free_html_label (htmllabel_t *lp, int root)
 
boxfhtml_port (node_t *n, char *pname, int *sides)
 
int html_path (node_t *n, port *p, int side, boxf *rv, int *k)
 
void sizeLinearArray (htmltbl_t *tbl)
 
char * nToName (int c)
 
void makeGraphs (htmltbl_t *tbl, graph_t *rowg, graph_t *colg)
 
void setSizes (htmltbl_t *tbl, graph_t *rowg, graph_t *colg)
 
void sizeArray (htmltbl_t *tbl)
 
int make_html_label (void *obj, textlabel_t *lp)
 

Macro Definition Documentation

#define DEFAULT_BORDER   1

Definition at line 41 of file htmltable.c.

#define DEFAULT_CELLPADDING   2

Definition at line 42 of file htmltable.c.

#define DEFAULT_CELLSPACING   2

Definition at line 43 of file htmltable.c.

#define RESET (   fld)    if(obj->fld != save->fld) {free(obj->fld); obj->fld = save->fld;}

Definition at line 371 of file htmltable.c.

#define SPLIT (   x,
  n,
 
)    (((x) - ((s)-1)*((n)-1)) / (n))

Definition at line 1296 of file htmltable.c.

Referenced by sizeLinearArray().

Function Documentation

void emit_html_label ( GVJ_t job,
htmllabel_t lp,
textlabel_t tp 
)
void free_html_data ( htmldata_t dp)
void free_html_font ( htmlfont_t fp)

Definition at line 748 of file htmltable.c.

References htmlfont_t::cnt, htmlfont_t::color, free(), and htmlfont_t::name.

Referenced by free_html_text().

void free_html_img ( htmlimg_t ip)

Definition at line 799 of file htmltable.c.

References free(), and htmlimg_t::src.

Referenced by free_html_label().

void free_html_label ( htmllabel_t lp,
int  root 
)
void free_html_text ( htmltxt_t t)
int html_path ( node_t n,
port p,
int  side,
boxf rv,
int *  k 
)

Definition at line 929 of file htmltable.c.

References assert, BOTTOM, ED_head_port, ED_tail_port, GD_flip, GD_rankdir, i, ND_shape_info, and TOP.

boxf* html_port ( node_t n,
char *  pname,
int *  sides 
)
int make_html_label ( void *  obj,
textlabel_t lp 
)
void makeGraphs ( htmltbl_t tbl,
graph_t rowg,
graph_t colg 
)
char* nToName ( int  c)

Definition at line 1346 of file htmltable.c.

Referenced by makeGraphs().

void setSizes ( htmltbl_t tbl,
graph_t rowg,
graph_t colg 
)

Definition at line 1519 of file htmltable.c.

References GD_nlist, htmltbl_t::heights, i, ND_next, ND_rank, and htmltbl_t::widths.

Referenced by sizeArray().

void sizeArray ( htmltbl_t tbl)
void sizeLinearArray ( htmltbl_t tbl)