Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
macros.h File Reference
#include <stdbool.h>
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define isPinned(n)   (ND_pinned(n) == P_PIN)
 
#define hasPos(n)   (ND_pinned(n) > 0)
 
#define isFixed(n)   (ND_pinned(n) > P_SET)
 
#define CL_EDGE_TAG   "cl_edge_info"
 
#define SET_CLUST_NODE(n)   (ND_clustnode(n) = true)
 
#define IS_CLUST_NODE(n)   (ND_clustnode(n))
 
#define HAS_CLUST_EDGE(g)   (aggetrec(g, CL_EDGE_TAG, 0))
 
#define EDGE_TYPE(g)   (GD_flags(g) & (7 << 1))
 
#define XPAD(d)   ((d).x += 4*GAP)
 
#define YPAD(d)   ((d).y += 2*GAP)
 
#define PAD(d)   {XPAD(d); YPAD(d);}
 

Macro Definition Documentation

◆ CL_EDGE_TAG

#define CL_EDGE_TAG   "cl_edge_info"

Definition at line 21 of file macros.h.

◆ EDGE_TYPE

#define EDGE_TYPE (   g)    (GD_flags(g) & (7 << 1))

Definition at line 25 of file macros.h.

◆ HAS_CLUST_EDGE

#define HAS_CLUST_EDGE (   g)    (aggetrec(g, CL_EDGE_TAG, 0))

Definition at line 24 of file macros.h.

◆ hasPos

#define hasPos (   n)    (ND_pinned(n) > 0)

Definition at line 18 of file macros.h.

◆ IS_CLUST_NODE

#define IS_CLUST_NODE (   n)    (ND_clustnode(n))

Definition at line 23 of file macros.h.

◆ isFixed

#define isFixed (   n)    (ND_pinned(n) > P_SET)

Definition at line 19 of file macros.h.

◆ isPinned

#define isPinned (   n)    (ND_pinned(n) == P_PIN)

Definition at line 17 of file macros.h.

◆ PAD

#define PAD (   d)    {XPAD(d); YPAD(d);}

Definition at line 29 of file macros.h.

◆ SET_CLUST_NODE

#define SET_CLUST_NODE (   n)    (ND_clustnode(n) = true)

Definition at line 22 of file macros.h.

◆ XPAD

#define XPAD (   d)    ((d).x += 4*GAP)

Definition at line 27 of file macros.h.

◆ YPAD

#define YPAD (   d)    ((d).y += 2*GAP)

Definition at line 28 of file macros.h.