Graphviz  2.31.20130525.0447
Data Structures | Defines | Functions
lib/common/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

Defines

#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)

Define 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 368 of file htmltable.c.

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

Definition at line 1206 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 713 of file htmltable.c.

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

Referenced by free_html_text().

void free_html_img ( htmlimg_t ip)

Definition at line 764 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 894 of file htmltable.c.

References ND_shape_info, assert, ED_tail_port, ED_head_port, GD_rankdir, GD_flip, BOTTOM, 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 1256 of file htmltable.c.

Referenced by makeGraphs().

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

Definition at line 1429 of file htmltable.c.

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

Referenced by sizeArray().

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