| 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 | import java.util.Arrays; |
| 48 | import java.util.List; |
| 49 | |
| 50 | import smetana.core.__ptr__; |
| 51 | |
| 52 | //2 7rfvc65ygzocig64xmd4vm8m8 |
| 53 | |
| 54 | public interface obj_state_s extends __ptr__ { |
| 55 | public static List<String> DEFINITION = Arrays.asList( |
| 56 | "struct obj_state_s", |
| 57 | "{", |
| 58 | "obj_state_t *parent", |
| 59 | "obj_type type", |
| 60 | "union", |
| 61 | "{", |
| 62 | "graph_t *g", |
| 63 | "graph_t *sg", |
| 64 | "node_t *n", |
| 65 | "edge_t *e", |
| 66 | "}", |
| 67 | "u", |
| 68 | "emit_state_t emit_state", |
| 69 | "gvcolor_t pencolor, fillcolor, stopcolor", |
| 70 | "int gradient_angle", |
| 71 | "float gradient_frac", |
| 72 | "pen_type pen", |
| 73 | "fill_type fill", |
| 74 | "double penwidth", |
| 75 | "char **rawstyle", |
| 76 | "double z, tail_z, head_z", |
| 77 | "char *label", |
| 78 | "char *xlabel", |
| 79 | "char *taillabel", |
| 80 | "char *headlabel", |
| 81 | "char *url", |
| 82 | "char *id", |
| 83 | "char *labelurl", |
| 84 | "char *tailurl", |
| 85 | "char *headurl", |
| 86 | "char *tooltip", |
| 87 | "char *labeltooltip", |
| 88 | "char *tailtooltip", |
| 89 | "char *headtooltip", |
| 90 | "char *target", |
| 91 | "char *labeltarget", |
| 92 | "char *tailtarget", |
| 93 | "char *headtarget", |
| 94 | "int explicit_tooltip:1", |
| 95 | "int explicit_tailtooltip:1", |
| 96 | "int explicit_headtooltip:1", |
| 97 | "int explicit_labeltooltip:1", |
| 98 | "int explicit_tailtarget:1", |
| 99 | "int explicit_headtarget:1", |
| 100 | "int explicit_edgetarget:1", |
| 101 | "int explicit_tailurl:1", |
| 102 | "int explicit_headurl:1", |
| 103 | "map_shape_t url_map_shape", |
| 104 | "int url_map_n", |
| 105 | "pointf *url_map_p", |
| 106 | "int url_bsplinemap_poly_n", |
| 107 | "int *url_bsplinemap_n", |
| 108 | "pointf *url_bsplinemap_p", |
| 109 | "int tailendurl_map_n", |
| 110 | "pointf *tailendurl_map_p", |
| 111 | "int headendurl_map_n", |
| 112 | "pointf *headendurl_map_p", |
| 113 | "}"); |
| 114 | } |
| 115 | |
| 116 | // struct obj_state_s { |
| 117 | // obj_state_t *parent; |
| 118 | // |
| 119 | // obj_type type; |
| 120 | // union { |
| 121 | // graph_t *g; |
| 122 | // graph_t *sg; |
| 123 | // node_t *n; |
| 124 | // edge_t *e; |
| 125 | // } u; |
| 126 | // |
| 127 | // emit_state_t emit_state; |
| 128 | // |
| 129 | // gvcolor_t pencolor, fillcolor, stopcolor; |
| 130 | // int gradient_angle; |
| 131 | // float gradient_frac; |
| 132 | // pen_type pen; |
| 133 | // fill_type fill; |
| 134 | // double penwidth; |
| 135 | // char **rawstyle; |
| 136 | // |
| 137 | // double z, tail_z, head_z; /* z depths for 2.5D renderers such as vrml */ |
| 138 | // |
| 139 | // /* fully substituted text strings */ |
| 140 | // char *label; |
| 141 | // char *xlabel; |
| 142 | // char *taillabel; |
| 143 | // char *headlabel; |
| 144 | // |
| 145 | // char *url; /* if GVRENDER_DOES_MAPS */ |
| 146 | // char *id; |
| 147 | // char *labelurl; |
| 148 | // char *tailurl; |
| 149 | // char *headurl; |
| 150 | // |
| 151 | // char *tooltip; /* if GVRENDER_DOES_TOOLTIPS */ |
| 152 | // char *labeltooltip; |
| 153 | // char *tailtooltip; |
| 154 | // char *headtooltip; |
| 155 | // |
| 156 | // char *target; /* if GVRENDER_DOES_TARGETS */ |
| 157 | // char *labeltarget; |
| 158 | // char *tailtarget; |
| 159 | // char *headtarget; |
| 160 | // |
| 161 | // int explicit_tooltip:1; |
| 162 | // int explicit_tailtooltip:1; |
| 163 | // int explicit_headtooltip:1; |
| 164 | // int explicit_labeltooltip:1; |
| 165 | // int explicit_tailtarget:1; |
| 166 | // int explicit_headtarget:1; |
| 167 | // int explicit_edgetarget:1; |
| 168 | // int explicit_tailurl:1; |
| 169 | // int explicit_headurl:1; |
| 170 | // |
| 171 | // /* primary mapped region - node shape, edge labels */ |
| 172 | // map_shape_t url_map_shape; |
| 173 | // int url_map_n; /* number of points for url map if GVRENDER_DOES_MAPS */ |
| 174 | // pointf *url_map_p; |
| 175 | // |
| 176 | // /* additonal mapped regions for edges */ |
| 177 | // int url_bsplinemap_poly_n; /* number of polygons in url bspline map |
| 178 | // if GVRENDER_DOES_MAPS && GVRENDER_DOES_MAP_BSPLINES */ |
| 179 | // int *url_bsplinemap_n; /* array of url_bsplinemap_poly_n ints |
| 180 | // of number of points in each polygon */ |
| 181 | // pointf *url_bsplinemap_p; /* all the polygon points */ |
| 182 | // |
| 183 | // int tailendurl_map_n; /* tail end intersection with node */ |
| 184 | // pointf *tailendurl_map_p; |
| 185 | // |
| 186 | // int headendurl_map_n; /* head end intersection with node */ |
| 187 | // pointf *headendurl_map_p; |
| 188 | // }; |