2017-09-03 16:59:24 +00:00
|
|
|
/* ========================================================================
|
|
|
|
* PlantUML : a free UML diagram generator
|
|
|
|
* ========================================================================
|
|
|
|
*
|
|
|
|
* Project Info: http://plantuml.com
|
|
|
|
*
|
|
|
|
* If you like this project or if you find it useful, you can support us at:
|
|
|
|
*
|
|
|
|
* http://plantuml.com/patreon (only 1$ per month!)
|
|
|
|
* http://plantuml.com/paypal
|
|
|
|
*
|
|
|
|
* This file is part of Smetana.
|
|
|
|
* Smetana is a partial translation of Graphviz/Dot sources from C to Java.
|
|
|
|
*
|
2020-11-21 17:33:24 +00:00
|
|
|
* (C) Copyright 2009-2022, Arnaud Roques
|
2017-09-03 16:59:24 +00:00
|
|
|
*
|
|
|
|
* This translation is distributed under the same Licence as the original C program:
|
|
|
|
*
|
|
|
|
*************************************************************************
|
|
|
|
* Copyright (c) 2011 AT&T Intellectual Property
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors: See CVS logs. Details at http://www.graphviz.org/
|
|
|
|
*************************************************************************
|
|
|
|
*
|
|
|
|
* THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
|
|
|
|
* LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
|
|
|
|
*
|
|
|
|
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
|
|
|
|
* RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
|
|
*
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package h;
|
|
|
|
|
|
|
|
import smetana.core.HardcodedStruct;
|
|
|
|
import smetana.core.UnsupportedStructAndPtr;
|
|
|
|
import smetana.core.amiga.StarStruct;
|
|
|
|
|
|
|
|
public class ST_GVC_s extends UnsupportedStructAndPtr implements HardcodedStruct {
|
|
|
|
|
|
|
|
// "struct GVC_s",
|
|
|
|
// "{",
|
2018-10-21 19:44:14 +00:00
|
|
|
public final ST_GVCOMMON_t common = new ST_GVCOMMON_t(this);
|
2017-09-03 16:59:24 +00:00
|
|
|
// "char *config_path",
|
2018-10-21 19:44:14 +00:00
|
|
|
public int config_found;
|
2017-09-03 16:59:24 +00:00
|
|
|
// "char **input_filenames",
|
|
|
|
// "GVG_t *gvgs",
|
|
|
|
// "GVG_t *gvg",
|
|
|
|
// "gvplugin_available_t *apis[ +1 +1 +1 +1 +1 ]",
|
|
|
|
// "gvplugin_available_t *api[ +1 +1 +1 +1 +1 ]",
|
|
|
|
// "gvplugin_package_t *packages",
|
|
|
|
// "size_t (*write_fn) (GVJ_t *job, const char *s, size_t len)",
|
|
|
|
// "Dtdisc_t textfont_disc",
|
|
|
|
// "Dt_t *textfont_dt",
|
|
|
|
// "gvplugin_active_textlayout_t textlayout",
|
|
|
|
// "GVJ_t *jobs",
|
|
|
|
// "GVJ_t *job",
|
|
|
|
// "graph_t *g",
|
2018-10-21 19:44:14 +00:00
|
|
|
public final ST_gvplugin_active_layout_t layout = new ST_gvplugin_active_layout_t();
|
2017-09-03 16:59:24 +00:00
|
|
|
// "char *graphname",
|
|
|
|
// "GVJ_t *active_jobs",
|
|
|
|
// "char *pagedir",
|
|
|
|
// "pointf margin",
|
|
|
|
// "pointf pad",
|
|
|
|
// "pointf pageSize",
|
|
|
|
// "point pb",
|
|
|
|
// "boxf bb",
|
|
|
|
// "int rotation",
|
|
|
|
// "boolean graph_sets_pad, graph_sets_margin, graph_sets_pageSize, graph_sets_rotation",
|
|
|
|
// "char *layerDelims",
|
|
|
|
// "char *layerListDelims",
|
|
|
|
// "char *layers",
|
|
|
|
// "char **layerIDs",
|
|
|
|
// "int numLayers",
|
|
|
|
// "int *layerlist",
|
|
|
|
// "char *defaultfontname",
|
|
|
|
// "double defaultfontsize",
|
|
|
|
// "char **defaultlinestyle",
|
|
|
|
// "gvcolor_t bgcolor",
|
|
|
|
// "int fontrenaming",
|
|
|
|
// "}");
|
|
|
|
|
|
|
|
private final StarStruct parent;
|
|
|
|
|
|
|
|
public ST_GVC_s() {
|
|
|
|
this(null);
|
|
|
|
}
|
|
|
|
|
|
|
|
public ST_GVC_s(StarStruct parent) {
|
|
|
|
this.parent = parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setInt(String fieldName, int data) {
|
|
|
|
if (fieldName.equals("config_found")) {
|
|
|
|
this.config_found = data;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.setInt(fieldName, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// struct GVC_s {
|
|
|
|
// GVCOMMON_t common;
|
|
|
|
//
|
|
|
|
// char *config_path;
|
|
|
|
// boolean config_found;
|
|
|
|
//
|
|
|
|
// /* gvParseArgs */
|
|
|
|
// char **input_filenames; /* null terminated array of input filenames */
|
|
|
|
//
|
|
|
|
// /* gvNextInputGraph() */
|
|
|
|
// GVG_t *gvgs; /* linked list of graphs */
|
|
|
|
// GVG_t *gvg; /* current graph */
|
|
|
|
//
|
|
|
|
// /* plugins */
|
|
|
|
//
|
|
|
|
// /* APIS expands to "+1 +1 ... +1" to give the number of APIs */
|
|
|
|
// gvplugin_available_t *apis[ +1 +1 +1 +1 +1 ]; /* array of linked-list of plugins per api */
|
|
|
|
// gvplugin_available_t *api[ +1 +1 +1 +1 +1 ]; /* array of current plugins per api */
|
|
|
|
//
|
|
|
|
// gvplugin_package_t *packages; /* list of available packages */
|
|
|
|
//
|
|
|
|
// /* externally provided write() displine */
|
|
|
|
// size_t (*write_fn) (GVJ_t *job, const char *s, size_t len);
|
|
|
|
//
|
|
|
|
// /* fonts and textlayout */
|
|
|
|
// Dtdisc_t textfont_disc;
|
|
|
|
// Dt_t *textfont_dt;
|
|
|
|
// gvplugin_active_textlayout_t textlayout; /* always use best avail for all jobs */
|
|
|
|
// // void (*free_layout) (void *layout); /* function for freeing layouts (mostly used by pango) */
|
|
|
|
//
|
|
|
|
// /* FIXME - everything below should probably move to GVG_t */
|
|
|
|
//
|
|
|
|
// /* gvrender_config() */
|
|
|
|
// GVJ_t *jobs; /* linked list of jobs */
|
|
|
|
// GVJ_t *job; /* current job */
|
|
|
|
//
|
|
|
|
// graph_t *g; /* current graph */
|
|
|
|
//
|
|
|
|
// /* gvrender_begin_job() */
|
|
|
|
// gvplugin_active_layout_t layout;
|
|
|
|
//
|
|
|
|
// char *graphname; /* name from graph */
|
|
|
|
// GVJ_t *active_jobs; /* linked list of active jobs */
|
|
|
|
//
|
|
|
|
// /* pagination */
|
|
|
|
// char *pagedir; /* pagination order */
|
|
|
|
// pointf margin; /* margins in graph units */
|
|
|
|
// pointf pad; /* pad in graph units */
|
|
|
|
// pointf pageSize; /* pageSize in graph units, not including margins */
|
|
|
|
// point pb; /* page size - including margins (inches) */
|
|
|
|
// boxf bb; /* graph bb in graph units, not including margins */
|
|
|
|
// int rotation; /* rotation - 0 = portrait, 90 = landscape */
|
|
|
|
// boolean graph_sets_pad, graph_sets_margin, graph_sets_pageSize, graph_sets_rotation;
|
|
|
|
//
|
|
|
|
// /* layers */
|
|
|
|
// char *layerDelims; /* delimiters in layer names */
|
|
|
|
// char *layerListDelims; /* delimiters between layer ranges */
|
|
|
|
// char *layers; /* null delimited list of layer names */
|
|
|
|
// char **layerIDs; /* array of layer names */
|
|
|
|
// int numLayers; /* number of layers */
|
|
|
|
// int *layerlist;
|
|
|
|
//
|
|
|
|
// /* default font */
|
|
|
|
// char *defaultfontname;
|
|
|
|
// double defaultfontsize;
|
|
|
|
//
|
|
|
|
// /* default line style */
|
|
|
|
// char **defaultlinestyle;
|
|
|
|
//
|
|
|
|
// /* render defaults set from graph */
|
|
|
|
// gvcolor_t bgcolor; /* background color */
|
|
|
|
//
|
|
|
|
// /* whether to mangle font names (at least in SVG), usually false */
|
|
|
|
// int fontrenaming;
|
|
|
|
// };
|