Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
macros.h
Go to the documentation of this file.
1
3/*************************************************************************
4 * Copyright (c) 2011 AT&T Intellectual Property
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * https://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors: Details at https://graphviz.org
11 *************************************************************************/
12
13#pragma once
14
15#include <stdbool.h>
16
17#define isPinned(n) (ND_pinned(n) == P_PIN)
18#define hasPos(n) (ND_pinned(n) > 0)
19#define isFixed(n) (ND_pinned(n) > P_SET)
20
21#define CL_EDGE_TAG "cl_edge_info"
22#define SET_CLUST_NODE(n) (ND_clustnode(n) = true)
23#define IS_CLUST_NODE(n) (ND_clustnode(n))
24#define HAS_CLUST_EDGE(g) (aggetrec(g, CL_EDGE_TAG, 0))
25#define EDGE_TYPE(g) (GD_flags(g) & (7 << 1))
26
27#define XPAD(d) ((d).x += 4*GAP)
28#define YPAD(d) ((d).y += 2*GAP)
29#define PAD(d) {XPAD(d); YPAD(d);}