Graphviz  2.29.20120523.0446
Defines | Functions
lib/graph/attribs.c File Reference
#include <limits.h>
#include "libgraph.h"
Include dependency graph for attribs.c:

Go to the source code of this file.

Defines

#define EXTERN

Functions

Agdict_tagdictof (void *obj)
Agsym_tagNEWsym (Agdict_t *dict, char *name, char *value)
Agsym_tagattr (void *obj, char *name, char *value)
Agraph_tagprotograph ()
Agnode_tagprotonode (Agraph_t *g)
Agedge_tagprotoedge (Agraph_t *g)
Agsym_tagraphattr (Agraph_t *g, char *name, char *value)
Agsym_tagnodeattr (Agraph_t *g, char *name, char *value)
Agsym_tagedgeattr (Agraph_t *g, char *name, char *value)
void agFREEdict (Agraph_t *g, Agdict_t *dict)
Agdict_tagNEWdict (char *name)
void agcopydict (Agdict_t *to_dict, Agdict_t *from_dict)
Agsym_tagfindattr (void *obj, char *name)
Agsym_tagfstattr (void *obj)
Agsym_tagnxtattr (void *obj, Agsym_t *a)
Agsym_taglstattr (void *obj)
Agsym_tagprvattr (void *obj, Agsym_t *a)
int aginitlib (int gs, int ns, int es)
char * agget (void *obj, char *attr)
int agset (void *obj, char *attr, char *value)
int agindex (void *obj, char *name)
char * agxget (void *obj, int index)
int agxset (void *obj, int index, char *buf)
int agsafeset (void *obj, char *name, char *value, char *def)
int agcopyattr (void *oldobj, void *newobj)

Define Documentation

#define EXTERN

Definition at line 16 of file attribs.c.


Function Documentation

Agsym_t* agattr ( void *  obj,
char *  name,
char *  value 
)
int agcopyattr ( void *  oldobj,
void *  newobj 
)
void agcopydict ( Agdict_t to_dict,
Agdict_t from_dict 
)
Agdict_t* agdictof ( void *  obj)
Agsym_t* agedgeattr ( Agraph_t g,
char *  name,
char *  value 
)
Agsym_t* agfindattr ( void *  obj,
char *  name 
)
void agFREEdict ( Agraph_t g,
Agdict_t dict 
)

Definition at line 236 of file attribs.c.

References dtclose(), Agdict_t::dict, Agdict_t::list, and free().

Agsym_t* agfstattr ( void *  obj)

Definition at line 301 of file attribs.c.

References agdictof(), dtfirst, and Agdict_t::dict.

char* agget ( void *  obj,
char *  attr 
)
int agindex ( void *  obj,
char *  name 
)

Definition at line 355 of file attribs.c.

References agfindattr(), and Agsym_t::index.

Referenced by agget(), agset(), and scan_graph_mode().

int aginitlib ( int  gs,
int  ns,
int  es 
)
Agsym_t* aglstattr ( void *  obj)

Definition at line 313 of file attribs.c.

References agdictof(), dtlast, and Agdict_t::dict.

Agdict_t* agNEWdict ( char *  name)

Definition at line 252 of file attribs.c.

References offsetof, NEW, Agdict_t::name, Agdict_t::dict, dtopen(), Dttree, Agdict_t::list, and NULL.

Agsym_t* agNEWsym ( Agdict_t dict,
char *  name,
char *  value 
)
Agsym_t* agnodeattr ( Agraph_t g,
char *  name,
char *  value 
)
Agsym_t* agnxtattr ( void *  obj,
Agsym_t a 
)

Definition at line 307 of file attribs.c.

References agdictof(), dtnext, and Agdict_t::dict.

Referenced by firstattr(), and nextattr().

Agedge_t* agprotoedge ( Agraph_t g)

Definition at line 173 of file attribs.c.

References Agraph_t::proto, and Agproto_t::e.

Agraph_t* agprotograph ( void  )

Definition at line 162 of file attribs.c.

References AG, and AG_s::proto_g.

Referenced by dotneato_args_initialize().

Agnode_t* agprotonode ( Agraph_t g)

Definition at line 167 of file attribs.c.

References Agraph_t::proto, and Agproto_t::n.

Agsym_t* agprvattr ( void *  obj,
Agsym_t a 
)

Definition at line 319 of file attribs.c.

References agdictof(), dtprev, and Agdict_t::dict.

Agsym_t* agraphattr ( Agraph_t g,
char *  name,
char *  value 
)
int agsafeset ( void *  obj,
char *  name,
char *  value,
char *  def 
)
int agset ( void *  obj,
char *  attr,
char *  value 
)

Definition at line 350 of file attribs.c.

References agxset(), and agindex().

Referenced by attach_attrs_and_arrows(), setSeed(), and twopi_layout().

char* agxget ( void *  obj,
int  index 
)
int agxset ( void *  obj,
int  index,
char *  buf 
)