Debian Codegraph @

src/h/ST_GVC_s.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package h;
47
48 import smetana.core.HardcodedStruct;
49 import smetana.core.UnsupportedStructAndPtr;
50 import smetana.core.amiga.StarStruct;
51
52 public class ST_GVC_s extends UnsupportedStructAndPtr implements HardcodedStruct {
53
54 // "struct GVC_s",
55 // "{",
56 public final ST_GVCOMMON_t common = new ST_GVCOMMON_t(this);
57 // "char *config_path",
58 public int config_found;
59 // "char **input_filenames",
60 // "GVG_t *gvgs",
61 // "GVG_t *gvg",
62 // "gvplugin_available_t *apis[ +1 +1 +1 +1 +1 ]",
63 // "gvplugin_available_t *api[ +1 +1 +1 +1 +1 ]",
64 // "gvplugin_package_t *packages",
65 // "size_t (*write_fn) (GVJ_t *job, const char *s, size_t len)",
66 // "Dtdisc_t textfont_disc",
67 // "Dt_t *textfont_dt",
68 // "gvplugin_active_textlayout_t textlayout",
69 // "GVJ_t *jobs",
70 // "GVJ_t *job",
71 // "graph_t *g",
72 public final ST_gvplugin_active_layout_t layout = new ST_gvplugin_active_layout_t();
73 // "char *graphname",
74 // "GVJ_t *active_jobs",
75 // "char *pagedir",
76 // "pointf margin",
77 // "pointf pad",
78 // "pointf pageSize",
79 // "point pb",
80 // "boxf bb",
81 // "int rotation",
82 // "boolean graph_sets_pad, graph_sets_margin, graph_sets_pageSize, graph_sets_rotation",
83 // "char *layerDelims",
84 // "char *layerListDelims",
85 // "char *layers",
86 // "char **layerIDs",
87 // "int numLayers",
88 // "int *layerlist",
89 // "char *defaultfontname",
90 // "double defaultfontsize",
91 // "char **defaultlinestyle",
92 // "gvcolor_t bgcolor",
93 // "int fontrenaming",
94 // "}");
95
96 private final StarStruct parent;
97
98 public ST_GVC_s() {
99 this(null);
100 }
101
102 public ST_GVC_s(StarStruct parent) {
103 this.parent = parent;
104 }
105
106 @Override
107 public void setInt(String fieldName, int data) {
108 if (fieldName.equals("config_found")) {
109 this.config_found = data;
110 return;
111 }
112 super.setInt(fieldName, data);
113 }
114
115 }
116
117 // struct GVC_s {
118 // GVCOMMON_t common;
119 //
120 // char *config_path;
121 // boolean config_found;
122 //
123 // /* gvParseArgs */
124 // char **input_filenames; /* null terminated array of input filenames */
125 //
126 // /* gvNextInputGraph() */
127 // GVG_t *gvgs; /* linked list of graphs */
128 // GVG_t *gvg; /* current graph */
129 //
130 // /* plugins */
131 //
132 // /* APIS expands to "+1 +1 ... +1" to give the number of APIs */
133 // gvplugin_available_t *apis[ +1 +1 +1 +1 +1 ]; /* array of linked-list of plugins per api */
134 // gvplugin_available_t *api[ +1 +1 +1 +1 +1 ]; /* array of current plugins per api */
135 //
136 // gvplugin_package_t *packages; /* list of available packages */
137 //
138 // /* externally provided write() displine */
139 // size_t (*write_fn) (GVJ_t *job, const char *s, size_t len);
140 //
141 // /* fonts and textlayout */
142 // Dtdisc_t textfont_disc;
143 // Dt_t *textfont_dt;
144 // gvplugin_active_textlayout_t textlayout; /* always use best avail for all jobs */
145 // // void (*free_layout) (void *layout); /* function for freeing layouts (mostly used by pango) */
146 //
147 // /* FIXME - everything below should probably move to GVG_t */
148 //
149 // /* gvrender_config() */
150 // GVJ_t *jobs; /* linked list of jobs */
151 // GVJ_t *job; /* current job */
152 //
153 // graph_t *g; /* current graph */
154 //
155 // /* gvrender_begin_job() */
156 // gvplugin_active_layout_t layout;
157 //
158 // char *graphname; /* name from graph */
159 // GVJ_t *active_jobs; /* linked list of active jobs */
160 //
161 // /* pagination */
162 // char *pagedir; /* pagination order */
163 // pointf margin; /* margins in graph units */
164 // pointf pad; /* pad in graph units */
165 // pointf pageSize; /* pageSize in graph units, not including margins */
166 // point pb; /* page size - including margins (inches) */
167 // boxf bb; /* graph bb in graph units, not including margins */
168 // int rotation; /* rotation - 0 = portrait, 90 = landscape */
169 // boolean graph_sets_pad, graph_sets_margin, graph_sets_pageSize, graph_sets_rotation;
170 //
171 // /* layers */
172 // char *layerDelims; /* delimiters in layer names */
173 // char *layerListDelims; /* delimiters between layer ranges */
174 // char *layers; /* null delimited list of layer names */
175 // char **layerIDs; /* array of layer names */
176 // int numLayers; /* number of layers */
177 // int *layerlist;
178 //
179 // /* default font */
180 // char *defaultfontname;
181 // double defaultfontsize;
182 //
183 // /* default line style */
184 // char **defaultlinestyle;
185 //
186 // /* render defaults set from graph */
187 // gvcolor_t bgcolor; /* background color */
188 //
189 // /* whether to mangle font names (at least in SVG), usually false */
190 // int fontrenaming;
191 // };