Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
globals.h
Go to the documentation of this file.
1
6/*************************************************************************
7 * Copyright (c) 2011 AT&T Intellectual Property
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * https://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors: Details at https://graphviz.org
14 *************************************************************************/
15
16#pragma once
17
18#include <cgraph/list.h>
19#include <stdbool.h>
20#include <stdlib.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#ifdef GVDLL
27#ifdef GVC_EXPORTS
28#define GLOBALS_API __declspec(dllexport)
29#else
30#define GLOBALS_API __declspec(dllimport)
31#endif
32#endif
33
35#ifndef GLOBALS_API
36#define GLOBALS_API /* nothing */
37#endif
38
39#ifndef EXTERN
40#define EXTERN extern
41#endif
43
44DEFINE_LIST_WITH_DTOR(show_boxes, char*, free)
45
46 GLOBALS_API EXTERN const char **Lib; /* from command line */
47 GLOBALS_API EXTERN char *Gvfilepath; /* Per-process path of files allowed in image attributes (also ps libs) */
48 GLOBALS_API EXTERN char *Gvimagepath; /* Per-graph path of files allowed in image attributes (also ps libs) */
49
50 GLOBALS_API EXTERN unsigned char Verbose;
51 GLOBALS_API EXTERN bool Reduce;
52 GLOBALS_API EXTERN char *HTTPServerEnVar;
53 GLOBALS_API EXTERN int graphviz_errors;
54 GLOBALS_API EXTERN int Nop;
55 GLOBALS_API EXTERN double PSinputscale;
56 GLOBALS_API EXTERN show_boxes_t Show_boxes; // emit code for correct box coordinates
57 GLOBALS_API EXTERN int CL_type; /* NONE, LOCAL, GLOBAL */
58 GLOBALS_API EXTERN bool Concentrate;
59 GLOBALS_API EXTERN double Epsilon; /* defined in input_graph */
60 GLOBALS_API EXTERN int MaxIter;
61 GLOBALS_API EXTERN unsigned short Ndim;
62 GLOBALS_API EXTERN int State; /* last finished phase */
63 GLOBALS_API EXTERN int EdgeLabelsDone; /* true if edge labels have been positioned */
64 GLOBALS_API EXTERN double Initial_dist;
65 GLOBALS_API EXTERN double Damping;
66 GLOBALS_API EXTERN bool Y_invert;
67 GLOBALS_API EXTERN int GvExitOnUsage; /* gvParseArgs() should exit on usage or error */
68
69 GLOBALS_API EXTERN Agsym_t
72 GLOBALS_API EXTERN Agsym_t
80 GLOBALS_API EXTERN Agsym_t
92
93 GLOBALS_API extern struct fdpParms_s* fdp_parms;
94
95#undef EXTERN
96#undef GLOBALS_API
97
98#ifdef __cplusplus
99}
100#endif
#define EXTERN
Definition globals.c:16
Agsym_t * E_sametail
Definition globals.h:86
Agsym_t * N_fontsize
Definition globals.h:74
Agsym_t * E_labelfontsize
Definition globals.h:88
Agsym_t * E_fontcolor
Definition globals.h:82
Agsym_t * N_group
Definition globals.h:78
Agsym_t * N_imagescale
Definition globals.h:77
Agsym_t * N_width
Definition globals.h:73
Agsym_t * N_layer
Definition globals.h:77
Agsym_t * E_weight
Definition globals.h:81
int State
Definition globals.h:62
Agsym_t * E_comment
Definition globals.h:85
Agsym_t * N_orientation
Definition globals.h:76
Agsym_t * N_sides
Definition globals.h:76
bool Concentrate
Definition globals.h:58
double Initial_dist
Definition globals.h:64
int MaxIter
Definition globals.h:60
Agsym_t * E_headclip
Definition globals.h:90
unsigned char Verbose
Definition globals.h:50
Agsym_t * G_peripheries
Definition globals.h:70
int GvExitOnUsage
Definition globals.h:67
struct fdpParms_s * fdp_parms
Definition globals.c:33
Agsym_t * E_decorate
Definition globals.h:83
int Nop
Definition globals.h:54
Agsym_t * G_ordering
Definition globals.h:70
Agsym_t * E_headlabel
Definition globals.h:87
Agsym_t * E_style
Definition globals.h:83
Agsym_t * G_margin
Definition globals.h:71
Agsym_t * N_showboxes
Definition globals.h:75
int graphviz_errors
Definition globals.h:53
Agsym_t * N_fontname
Definition globals.h:74
Agsym_t * N_z
Definition globals.h:78
Agsym_t * E_fontname
Definition globals.h:82
Agsym_t * N_comment
Definition globals.h:78
Agsym_t * N_style
Definition globals.h:75
char * HTTPServerEnVar
Definition globals.h:52
int EdgeLabelsDone
Definition globals.h:63
Agsym_t * N_penwidth
Definition globals.h:79
char * Gvimagepath
Definition globals.h:48
Agsym_t * N_gradientangle
Definition globals.h:79
Agsym_t * E_fillcolor
Definition globals.h:81
Agsym_t * E_dir
Definition globals.h:83
Agsym_t * E_label
Definition globals.h:83
Agsym_t * N_skew
Definition globals.h:77
double PSinputscale
Definition globals.h:55
char * Gvfilepath
Definition globals.h:47
Agsym_t * E_minlen
Definition globals.h:81
Agsym_t * N_shape
Definition globals.h:73
Agsym_t * N_xlabel
Definition globals.h:75
show_boxes_t Show_boxes
Definition globals.h:56
int CL_type
Definition globals.h:57
Agsym_t * E_label_float
Definition globals.h:85
Agsym_t * E_samehead
Definition globals.h:86
Agsym_t * N_nojustify
Definition globals.h:75
Agsym_t * E_color
Definition globals.h:81
Agsym_t * E_taillabel
Definition globals.h:87
bool Reduce
Definition globals.h:51
Agsym_t * N_label
Definition globals.h:75
Agsym_t * E_labelangle
Definition globals.h:89
Agsym_t * N_fillcolor
Definition globals.h:73
Agsym_t * E_fontsize
Definition globals.h:82
Agsym_t * E_arrowsz
Definition globals.h:84
Agsym_t * G_gradientangle
Definition globals.h:71
Agsym_t * N_vertices
Definition globals.h:78
unsigned short Ndim
Definition globals.h:61
Agsym_t * N_fixed
Definition globals.h:77
Agsym_t * G_penwidth
Definition globals.h:70
Agsym_t * N_peripheries
Definition globals.h:76
Agsym_t * E_labelfontname
Definition globals.h:88
Agsym_t * N_distortion
Definition globals.h:77
Agsym_t * N_imagepos
Definition globals.h:77
bool Y_invert
invert y in dot & plain output
Definition globals.h:66
Agsym_t * E_xlabel
Definition globals.h:83
Agsym_t * E_penwidth
Definition globals.h:91
Agsym_t * E_layer
Definition globals.h:84
Agsym_t * E_constr
Definition globals.h:84
Agsym_t * N_fontcolor
Definition globals.h:74
Agsym_t * E_labelfontcolor
Definition globals.h:88
Agsym_t * E_tailclip
Definition globals.h:90
double Epsilon
if parallel edges should be merged
Definition globals.h:59
Agsym_t * N_color
Definition globals.h:73
Agsym_t * E_showboxes
Definition globals.h:84
Agsym_t * E_labeldistance
Definition globals.h:89
double Damping
Definition globals.h:65
Agsym_t * N_ordering
Definition globals.h:76
Agsym_t * N_height
Definition globals.h:73
const char ** Lib
Definition globals.h:46
void free(void *)
#define DEFINE_LIST_WITH_DTOR(name, type, dtor)
Definition list.h:34
string attribute descriptor symbol in Agattr_s.dict
Definition cgraph.h:637