hsmet  1.0.0
he-svg.h
gehe zur Dokumentation dieser Datei
1 /*
2  WARNING: This file was generated by dkct.
3  Changes you make here will be lost if dkct is run again!
4  You should modify the original source and run dkct on it.
5  Original source: he-svg.ctr
6 */
7 
8 #ifndef HE_SVG_H_INCLUDED
9 
10 #define HE_SVG_H_INCLUDED 1
11 
12 
13 #line 2 "he-svg.ctr"
14 
69 #include "he-conf.h"
70 
71 #include <stdio.h>
72 
73 
76 typedef enum {
81 
82 
83 
86 typedef enum {
102 
103 
106 typedef enum {
109 } he_svg_unit_t;
110 
111 
112 
115 typedef enum {
121 
122 
123 
126 typedef enum {
132 
133 
134 
137 typedef enum {
138  HE_SVG_COLOR_NONE = 0,
139  HE_SVG_COLOR_ALICEBLUE ,
140  HE_SVG_COLOR_ANTIQUEWHITE ,
141  HE_SVG_COLOR_AQUA ,
142  HE_SVG_COLOR_AQUAMARINE ,
143  HE_SVG_COLOR_AZURE ,
144  HE_SVG_COLOR_BEIGE ,
145  HE_SVG_COLOR_BISQUE ,
146  HE_SVG_COLOR_BLACK ,
147  HE_SVG_COLOR_BLANCHEDALMOND ,
148  HE_SVG_COLOR_BLUE ,
149  HE_SVG_COLOR_BLUEVIOLET ,
150  HE_SVG_COLOR_BROWN ,
151  HE_SVG_COLOR_BURLYWOOD ,
152  HE_SVG_COLOR_CADETBLUE ,
153  HE_SVG_COLOR_CHARTREUSE ,
154  HE_SVG_COLOR_CHOCOLATE ,
155  HE_SVG_COLOR_CORAL ,
156  HE_SVG_COLOR_CORNFLOWERBLUE ,
157  HE_SVG_COLOR_CORNSILK ,
158  HE_SVG_COLOR_CRIMSON ,
159  HE_SVG_COLOR_CYAN ,
160  HE_SVG_COLOR_DARKBLUE ,
161  HE_SVG_COLOR_DARKCYAN ,
162  HE_SVG_COLOR_DARKGOLDENROD ,
163  HE_SVG_COLOR_DARKGRAY ,
164  HE_SVG_COLOR_DARKGREEN ,
165  HE_SVG_COLOR_DARKGREY ,
166  HE_SVG_COLOR_DARKKHAKI ,
167  HE_SVG_COLOR_DARKMAGENTA ,
168  HE_SVG_COLOR_DARKOLIVEGREEN ,
169  HE_SVG_COLOR_DARKORANGE ,
170  HE_SVG_COLOR_DARKORCHID ,
171  HE_SVG_COLOR_DARKRED ,
172  HE_SVG_COLOR_DARKSALMON ,
173  HE_SVG_COLOR_DARKSEAGREEN ,
174  HE_SVG_COLOR_DARKSLATEBLUE ,
175  HE_SVG_COLOR_DARKSLATEGRAY ,
176  HE_SVG_COLOR_DARKSLATEGREY ,
177  HE_SVG_COLOR_DARKTURQUOISE ,
178  HE_SVG_COLOR_DARKVIOLET ,
179  HE_SVG_COLOR_DEEPPINK ,
180  HE_SVG_COLOR_DEEPSKYBLUE ,
181  HE_SVG_COLOR_DIMGRAY ,
182  HE_SVG_COLOR_DIMGREY ,
183  HE_SVG_COLOR_DODGERBLUE ,
184  HE_SVG_COLOR_FIREBRICK ,
185  HE_SVG_COLOR_FLORALWHITE ,
186  HE_SVG_COLOR_FORESTGREEN ,
187  HE_SVG_COLOR_FUCHSIA ,
188  HE_SVG_COLOR_GAINSBORO ,
189  HE_SVG_COLOR_GHOSTWHITE ,
190  HE_SVG_COLOR_GOLD ,
191  HE_SVG_COLOR_GOLDENROD ,
192  HE_SVG_COLOR_GRAY ,
193  HE_SVG_COLOR_GREY ,
194  HE_SVG_COLOR_GREEN ,
195  HE_SVG_COLOR_GREENYELLOW ,
196  HE_SVG_COLOR_HONEYDEW ,
197  HE_SVG_COLOR_HOTPINK ,
198  HE_SVG_COLOR_INDIANRED ,
199  HE_SVG_COLOR_INDIGO ,
200  HE_SVG_COLOR_IVORY ,
201  HE_SVG_COLOR_KHAKI ,
202  HE_SVG_COLOR_LAVENDER ,
203  HE_SVG_COLOR_LAVENDERBLUSH ,
204  HE_SVG_COLOR_LAWNGREEN ,
205  HE_SVG_COLOR_LEMONCHIFFON ,
206  HE_SVG_COLOR_LIGHTBLUE ,
207  HE_SVG_COLOR_LIGHTCORAL ,
208  HE_SVG_COLOR_LIGHTCYAN ,
209  HE_SVG_COLOR_LIGHTGOLDENRODYELLOW ,
210  HE_SVG_COLOR_LIGHTGRAY ,
211  HE_SVG_COLOR_LIGHTGREEN ,
212  HE_SVG_COLOR_LIGHTGREY ,
213  HE_SVG_COLOR_LIGHTPING ,
214  HE_SVG_COLOR_LIGHTSALMON ,
215  HE_SVG_COLOR_LIGHTSEAGREEN ,
216  HE_SVG_COLOR_LIGHTSKYBLUE ,
217  HE_SVG_COLOR_LIGHTSLATEGRAY ,
218  HE_SVG_COLOR_LIGHTSLATEGREY ,
219  HE_SVG_COLOR_LIGHTSTEELBLUE ,
220  HE_SVG_COLOR_LIGHTYELLOW ,
221  HE_SVG_COLOR_LIME ,
222  HE_SVG_COLOR_LIMEGREEN ,
223  HE_SVG_COLOR_LINEN ,
224  HE_SVG_COLOR_MAGENTA ,
225  HE_SVG_COLOR_MAROON ,
226  HE_SVG_COLOR_MEDIUMAQUAMARINE ,
227  HE_SVG_COLOR_MEDIUMBLUE ,
228  HE_SVG_COLOR_MEDIUMORCHID ,
229  HE_SVG_COLOR_MEDIUMPURPLE ,
230  HE_SVG_COLOR_MEDIUMSEAGREEN ,
231  HE_SVG_COLOR_MEDIUMSLATEBLUE ,
232  HE_SVG_COLOR_MEDIUMSPRINGGREEN ,
233  HE_SVG_COLOR_MEDIUMTURQUOISE ,
234  HE_SVG_COLOR_MEDIUMVIOLETRED ,
235  HE_SVG_COLOR_MIDNIGHTBLUE ,
236  HE_SVG_COLOR_MINTCREAM ,
237  HE_SVG_COLOR_MISTYROSE ,
238  HE_SVG_COLOR_MOCCASIN ,
239  HE_SVG_COLOR_NAVAJOWHITE ,
240  HE_SVG_COLOR_NAVY ,
241  HE_SVG_COLOR_OLDLACE ,
242  HE_SVG_COLOR_OLIVE ,
243  HE_SVG_COLOR_OLIVEDRAB ,
244  HE_SVG_COLOR_ORANGE ,
245  HE_SVG_COLOR_ORANGERED ,
246  HE_SVG_COLOR_ORCHID ,
247  HE_SVG_COLOR_PALEGOLDENROD ,
248  HE_SVG_COLOR_PALEGREEN ,
249  HE_SVG_COLOR_PALETURQUOISE ,
250  HE_SVG_COLOR_PALEVIOLETRED ,
251  HE_SVG_COLOR_PAPAYAWHIP ,
252  HE_SVG_COLOR_PEACHPUFF ,
253  HE_SVG_COLOR_PERU ,
254  HE_SVG_COLOR_PINK ,
255  HE_SVG_COLOR_PLUM ,
256  HE_SVG_COLOR_POWDERBLUE ,
257  HE_SVG_COLOR_PURPLE ,
258  HE_SVG_COLOR_RED ,
259  HE_SVG_COLOR_ROSYBROWN ,
260  HE_SVG_COLOR_ROYALBLUE ,
261  HE_SVG_COLOR_SADDLEBROWN ,
262  HE_SVG_COLOR_SALMON ,
263  HE_SVG_COLOR_SANDYBROWN ,
264  HE_SVG_COLOR_SEAGREEN ,
265  HE_SVG_COLOR_SEASHELL ,
266  HE_SVG_COLOR_SIENNA ,
267  HE_SVG_COLOR_SILVER ,
268  HE_SVG_COLOR_SKYBLUE ,
269  HE_SVG_COLOR_SLATEBLUE ,
270  HE_SVG_COLOR_SLATEGRAY ,
271  HE_SVG_COLOR_SLATEGREY ,
272  HE_SVG_COLOR_SNOW ,
273  HE_SVG_COLOR_SPRINGGREEN ,
274  HE_SVG_COLOR_STEELBLUE ,
275  HE_SVG_COLOR_TAN ,
276  HE_SVG_COLOR_TEAL ,
277  HE_SVG_COLOR_THISTLE ,
278  HE_SVG_COLOR_TOMATO ,
279  HE_SVG_COLOR_TURQUOISE ,
280  HE_SVG_COLOR_VIOLET ,
281  HE_SVG_COLOR_WHEAT ,
282  HE_SVG_COLOR_WHITE ,
283  HE_SVG_COLOR_WHITESMOKE ,
284  HE_SVG_COLOR_YELLOW ,
285  HE_SVG_COLOR_YELLOWGREEN
287 
288 
292 typedef struct {
293  char *fo_fam;
294  double fo_sz;
295  double lw;
296  int f_nam;
297  int s_nam;
298  int al_h;
299  int f_r;
300  int f_g;
301  int f_b;
302  int s_r;
303  int s_g;
304  int s_b;
305  int linecap;
306  int linejoin;
307  int fo_weight;
309 
310 
313 typedef struct {
314  FILE *outf;
315  char *file_name;
317  double x_left;
318  double x_right;
319  double y_bottom;
320  double y_top;
321  double x_scale;
322  double y_scale;
323  double x_offset;
324  double y_offset;
325  size_t n_styles;
326  size_t stnol;
327  long w_mm;
328  long h_mm;
329  int st;
330  int css;
331  int debug;
333 } he_svg_t;
334 
335 
336 #ifdef __cplusplus
337 extern "C" {
338 #endif
339 
359 he_svg_t *
361  const char *fn,
362  long w_mm,
363  long h_mm,
364  he_svg_unit_t units,
365  double x_l,
366  double x_r,
367  double y_b,
368  double y_t,
369  size_t n_styles,
370  int debug,
371  int *ec
372 );
373 
374 
381 int
383  he_svg_t *svgptr,
384  int *ec
385 );
386 
387 
395 int
397  he_svg_t *svg,
398  int css,
399  int *ec
400 );
401 
402 
406 void
408  he_svg_style_t *ptr
409 );
410 
411 
420 int
422  he_svg_t *svg,
423  he_svg_style_t *stptr,
424  char const *name,
425  int *ec
426 );
427 
428 
437 int
439  he_svg_t *svg,
440  size_t st,
441  char const *name,
442  int *ec
443 );
444 
445 
454 int
456  he_svg_t *svg,
457  he_svg_style_t *stptr,
458  double fs,
459  int *ec
460 );
461 
462 
471 int
473  he_svg_t *svg,
474  size_t st,
475  double fs,
476  int *ec
477 );
478 
479 
492 int
494  he_svg_t *svg,
495  he_svg_style_t *stptr,
496  he_svg_color_t name,
497  int *ec
498 );
499 
500 
513 int
515  he_svg_t *svg,
516  size_t st,
517  he_svg_color_t name,
518  int *ec
519 );
520 
521 
533 int
535  he_svg_t *svg,
536  he_svg_style_t *stptr,
537  int r,
538  int g,
539  int b,
540  int *ec
541 );
542 
543 
555 int
557  he_svg_t *svg,
558  size_t st,
559  int r,
560  int g,
561  int b,
562  int *ec
563 );
564 
565 
577 int
579  he_svg_t *svg,
580  he_svg_style_t *stptr,
581  he_svg_color_t name,
582  int *ec
583 );
584 
585 
597 int
599  he_svg_t *svg,
600  size_t st,
601  he_svg_color_t name,
602  int *ec
603 );
604 
615 int
617  he_svg_t *svg,
618  he_svg_style_t *stptr,
619  int r,
620  int g,
621  int b,
622  int *ec
623 );
624 
625 
636 int
638  he_svg_t *svg,
639  size_t st,
640  int r,
641  int g,
642  int b,
643  int *ec
644 );
645 
646 
658 int
660  he_svg_t *svg,
661  he_svg_style_t *stptr,
662  he_svg_align_h_t al,
663  int *ec
664 );
665 
666 
678 int
680  he_svg_t *svg,
681  size_t st,
682  he_svg_align_h_t al,
683  int *ec
684 );
685 
686 
695 int
697  he_svg_t *svg,
698  he_svg_style_t *stptr,
699  double lw,
700  int *ec
701 );
702 
703 
712 int
714  he_svg_t *svg,
715  size_t st,
716  double lw,
717  int *ec
718 );
719 
720 
733 int
735  he_svg_t *svg,
736  he_svg_style_t *stptr,
737  he_svg_linecap_t lc,
738  int *ec
739 );
740 
741 
754 int
756  he_svg_t *svg,
757  size_t st,
758  he_svg_linecap_t lc,
759  int *ec
760 );
761 
762 
775 int
777  he_svg_t *svg,
778  he_svg_style_t *stptr,
780  int *ec
781 );
782 
783 
796 int
798  he_svg_t *svg,
799  size_t st,
801  int *ec
802 );
803 
804 
827 int
829  he_svg_t *svg,
830  he_svg_style_t *stptr,
832  int *ec
833 );
834 
835 
858 int
860  he_svg_t *svg,
861  size_t st,
863  int *ec
864 );
865 
866 
879 int
881  he_svg_t *svg,
882  size_t st,
883  he_svg_style_t *ast,
884  double x1,
885  double y1,
886  double x2,
887  double y2,
888  int *ec
889 );
890 
891 
904 int
906  he_svg_t *svg,
907  size_t st,
908  he_svg_style_t *ast,
909  double x1,
910  double y1,
911  double x2,
912  double y2,
913  int *ec
914 );
915 
916 
929 int
931  he_svg_t *svg,
932  size_t st,
933  he_svg_style_t *ast,
934  double x,
935  double y,
936  double degrees,
937  char const *str,
938  int me,
939  int *ec
940 );
941 
942 
954 int
956  he_svg_t *svg,
957  size_t st,
958  he_svg_style_t *ast,
959  double x,
960  double y,
961  double degrees,
962  int *ec
963 );
964 
965 
973 int
975  he_svg_t *svg,
976  char const *str,
977  int me,
978  int *ec
979 );
980 
981 
988 int
990  he_svg_t *svg,
991  int *ec
992 );
993 
994 
1006 int
1008  he_svg_t *svg,
1009  size_t st,
1010  he_svg_style_t *ast,
1011  double x,
1012  double y,
1013  double r,
1014  int *ec
1015 );
1016 
1017 
1031 int
1033  he_svg_t *svg,
1034  size_t st,
1035  he_svg_style_t *ast,
1036  double x,
1037  double y,
1038  double rx,
1039  double ry,
1040  double degrees,
1041  int *ec
1042 );
1043 
1044 
1056 int
1058  he_svg_t *svg,
1059  size_t st,
1060  he_svg_style_t *ast,
1061  int *ec
1062 );
1063 
1064 
1074 int
1076  he_svg_t *svg,
1077  double x,
1078  double y,
1079  int *ec
1080 );
1081 
1082 
1090 int
1092  he_svg_t *svg,
1093  int *ec
1094 );
1095 
1096 
1108 int
1110  he_svg_t *svg,
1111  size_t st,
1112  he_svg_style_t *ast,
1113  int *ec
1114 );
1115 
1116 
1126 int
1128  he_svg_t *svg,
1129  double x,
1130  double y,
1131  int *ec
1132 );
1133 
1134 
1142 int
1144  he_svg_t *svg,
1145  int *ec
1146 );
1147 
1148 
1163 int
1165  he_svg_t *svg,
1166  size_t st,
1167  he_svg_style_t *ast,
1168  int *ec
1169 );
1170 
1171 
1183 int
1185  he_svg_t *svg,
1186  double x,
1187  double y,
1188  int *ec
1189 );
1190 
1191 
1203 int
1205  he_svg_t *svg,
1206  double x,
1207  double y,
1208  int *ec
1209 );
1210 
1211 
1228 int
1230  he_svg_t *svg,
1231  double x1,
1232  double y1,
1233  double x2,
1234  double y2,
1235  double x,
1236  double y,
1237  int *ec
1238 );
1239 
1240 
1255 int
1257  he_svg_t *svg,
1258  int *ec
1259 );
1260 
1261 
1269 int
1271  he_svg_t *svg,
1272  int *ec
1273 );
1274 
1275 
1285 int
1287  he_svg_t *svg,
1288  int *ec
1289 );
1290 
1291 
1306 int
1308  he_svg_t *svg,
1309  char const *str,
1310  int *ec
1311 );
1312 
1313 
1320 int
1322  he_svg_t *svg,
1323  int *ec
1324 );
1325 
1326 
1327 #ifdef __cplusplus
1328 }
1329 #endif
1330 
1331 /* vim: set ai sw=4 ts=4 : */
1332 
1333 #endif
int f_g
Fuellfarbe gruen (0-255).
Definition: he-svg.h:300
int hsm_et_svg_draw_rectangle(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x1, double y1, double x2, double y2, int *ec)
Rechteck zeichnen.
Definition: he-svg.h:94
Inherit line join.
Definition: he-svg.h:130
int s_b
Zeichenfarbe blau (0-255).
Definition: he-svg.h:304
void he_svg_style_init(he_svg_style_t *ptr)
Style initialisieren.
Zentriert.
Definition: he-svg.h:78
he_svg_font_weight_t
Schriftdicke.
Definition: he-svg.h:86
int hsm_et_svg_draw_ellipse(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x, double y, double rx, double ry, double degrees, int *ec)
Ellipse zeichnen.
double y_bottom
Nutzer-Koordinaten, unterer y-Wert.
Definition: he-svg.h:319
int hsm_et_svg_draw_polyline_end(he_svg_t *svg, int *ec)
Zeichnen einer mit hsm_et_svg_draw_polyline_begin() begonnenen Polylinie beenden. ...
int hsm_et_svg_style_set_font_family_name(he_svg_t *svg, size_t st, char const *name, int *ec)
Font-Familie fuer Style festlegen.
int hsm_et_svg_draw_polygon_add(he_svg_t *svg, double x, double y, int *ec)
Punkte zu einem mit hsm_et_svg_draw_polygon_begin() begonnenen Polygon hinzufuegen.
Rechtsbuendig.
Definition: he-svg.h:79
he_svg_style_t * styles
Style-Informationen (dynamisch).
Definition: he-svg.h:316
he_svg_unit_t
Einheit fuer die Abmessungen.
Definition: he-svg.h:106
int hsm_et_svg_draw_line(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x1, double y1, double x2, double y2, int *ec)
Linie zeichnen.
CSS-Style-Information fuer eine Klasse.
Definition: he-svg.h:292
int hsm_et_svg_style_ptr_set_font_family_name(he_svg_t *svg, he_svg_style_t *stptr, char const *name, int *ec)
Font-Familie fuer Style festlegen.
Definition: he-svg.h:97
int hsm_et_svg_draw_polygon_end(he_svg_t *svg, int *ec)
Zeichnen eines mit hsm_et_svg_draw_polygon_begin() begonnenen Polygon beenden.
Definition: he-svg.h:99
int hsm_et_svg_style_ptr_set_stroke_color_rgb(he_svg_t *svg, he_svg_style_t *stptr, int r, int g, int b, int *ec)
Zeichen-Farbe als RGB-Werte festlegen.
Dünner.
Definition: he-svg.h:90
he_svg_t * hsm_et_svg_open(const char *fn, long w_mm, long h_mm, he_svg_unit_t units, double x_l, double x_r, double y_b, double y_t, size_t n_styles, int debug, int *ec)
Neue SVG-Graphik oeffnen.
int hsm_et_svg_draw_polygon_begin(he_svg_t *svg, size_t st, he_svg_style_t *ast, int *ec)
Zeichnen eines Polygon beginnen.
double y_offset
Offset fuer y-Werte.
Definition: he-svg.h:324
double x_left
Nutzer-Koordinaten, linker x-Wert.
Definition: he-svg.h:317
int hsm_et_svg_style_set_linecap(he_svg_t *svg, size_t st, he_svg_linecap_t lc, int *ec)
Stil fuer Linienenden festlegen.
int hsm_et_svg_draw_multi_text_end(he_svg_t *svg, int *ec)
Mehrteiligen Text beenden.
Beveled line join.
Definition: he-svg.h:129
Normal.
Definition: he-svg.h:87
int hsm_et_svg_style_ptr_set_fill_color_name(he_svg_t *svg, he_svg_style_t *stptr, he_svg_color_t name, int *ec)
Fuell-Farbe ueber Namen festlegen.
Millimeters.
Definition: he-svg.h:108
int hsm_et_svg_draw_text(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x, double y, double degrees, char const *str, int me, int *ec)
Text setzen.
int hsm_et_svg_style_ptr_set_horizontal_align(he_svg_t *svg, he_svg_style_t *stptr, he_svg_align_h_t al, int *ec)
Horizontale Textausrichtung festlegen.
int debug
Flag: Kommentare in SVG-Datei.
Definition: he-svg.h:331
double x_scale
Skalierung fuer x-Werte.
Definition: he-svg.h:321
int hsm_et_svg_style_ptr_set_font_size(he_svg_t *svg, he_svg_style_t *stptr, double fs, int *ec)
Font-Groesse fuer style festlegen.
int hsm_et_svg_style_ptr_set_font_weight(he_svg_t *svg, he_svg_style_t *stptr, he_svg_font_weight_t fw, int *ec)
Schriftdicke einstellen.
int hsm_et_svg_style_set_stroke_color_name(he_svg_t *svg, size_t st, he_svg_color_t name, int *ec)
Zeichen-Farbe ueber Namen festlegen.
int hsm_et_svg_draw_multi_text_begin(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x, double y, double degrees, int *ec)
Text aus mehreren Teilen eroeffnen.
char * fo_fam
Font-Familie(n).
Definition: he-svg.h:293
int s_g
Zeichenfarbe gruen (0-255).
Definition: he-svg.h:303
Noch fetter.
Definition: he-svg.h:89
int hsm_et_svg_style_set_horizontal_align(he_svg_t *svg, size_t st, he_svg_align_h_t al, int *ec)
Horizontale Textausrichtung festlegen.
double x_offset
Offset fuer x-Werte.
Definition: he-svg.h:323
int hsm_et_svg_style_set_linewidth(he_svg_t *svg, size_t st, double lw, int *ec)
Linienbreite festlegen.
he_svg_unit_t units
Einheit fuer Bildabmessungen.
Definition: he-svg.h:332
int hsm_et_svg_draw_path_end(he_svg_t *svg, int *ec)
Zeichnen eines Pfades beenden, dies ist fuer jeden mit hsm_et_svg_draw_path_begin() begonnenen Pfad e...
Definition: he-svg.h:96
he_svg_linecap_t
Abschluss einer Linie.
Definition: he-svg.h:115
Linksbuendig.
Definition: he-svg.h:77
int fo_weight
Schriftdicke.
Definition: he-svg.h:307
int hsm_et_svg_style_ptr_set_fill_color_rgb(he_svg_t *svg, he_svg_style_t *stptr, int r, int g, int b, int *ec)
Fuell-Farbe als RGB-Werte festlegen.
Square linecap.
Definition: he-svg.h:118
int hsm_et_svg_comment_text(he_svg_t *svg, char const *str, int *ec)
Text zu Kommentar hinzufuegen.
int hsm_et_svg_draw_path_add_moveto(he_svg_t *svg, double x, double y, int *ec)
Moveto-Operation fuer Start eines Pfad-Segmentes.
FILE * outf
Zu schreibende Datei.
Definition: he-svg.h:314
int f_r
Fuellfarbe rot (0-255).
Definition: he-svg.h:299
int hsm_et_svg_draw_path_add_closepath(he_svg_t *svg, int *ec)
Pfad(-Segment) schliessen, um geschlossenen Kurvenzug zu erzeugen.
Butted linecap.
Definition: he-svg.h:116
int hsm_et_svg_style_ptr_set_linejoin(he_svg_t *svg, he_svg_style_t *stptr, he_svg_linejoin_t lj, int *ec)
Stil fuer Knickpunkte festlegen.
int hsm_et_svg_style_set_font_size(he_svg_t *svg, size_t st, double fs, int *ec)
Font-Groesse fuer Style festlegen.
int hsm_et_svg_style_set_fill_color_rgb(he_svg_t *svg, size_t st, int r, int g, int b, int *ec)
Fuell-Farbe als RGB-Werte festlegen.
char * file_name
Name der zu schreibenden SVG-Datei.
Definition: he-svg.h:315
Definition: he-svg.h:93
int hsm_et_svg_set_use_css(he_svg_t *svg, int css, int *ec)
Nutzung von CSS-Styles erlauben oder verbieten.
Inherit linecap.
Definition: he-svg.h:119
int hsm_et_svg_draw_path_add_curveto(he_svg_t *svg, double x1, double y1, double x2, double y2, double x, double y, int *ec)
Kurvensegment von aktuellem Punkt zu Endpunkt (x,y) unter Angabe von zwei Kontrollpunkten P1(x1...
size_t stnol
Maximale Laenge der Style-Nummern.
Definition: he-svg.h:326
int hsm_et_svg_draw_circle(he_svg_t *svg, size_t st, he_svg_style_t *ast, double x, double y, double r, int *ec)
Kreis zeichnen.
int hsm_et_svg_close(he_svg_t *svgptr, int *ec)
Speichern der SVG-Graphik beenden, Graphik schliessen.
int hsm_et_svg_draw_path_add_lineto(he_svg_t *svg, double x, double y, int *ec)
Linie von aktuellem Punkt zu neuem Punkt ziehen.
Screen pixels.
Definition: he-svg.h:107
int hsm_et_svg_draw_polyline_begin(he_svg_t *svg, size_t st, he_svg_style_t *ast, int *ec)
Zeichnen einer Polylinie beginnen.
double lw
Linienbreite.
Definition: he-svg.h:295
he_svg_color_t
Farbangaben per Namen.
Definition: he-svg.h:137
int hsm_et_svg_style_ptr_set_stroke_color_name(he_svg_t *svg, he_svg_style_t *stptr, he_svg_color_t name, int *ec)
Zeichen-Farbe ueber Namen festlegen.
Konfigurationseinstellungen.
int hsm_et_svg_comment_close(he_svg_t *svg, int *ec)
Kommentar schliessen, der mit hsm_et_svg_comment_open() geoeffnet wurde.
long h_mm
Bildhoehe in mm oder px.
Definition: he-svg.h:328
Definition: he-svg.h:92
int f_nam
Fuellfarbe aus enum.
Definition: he-svg.h:296
int css
Flag: CSS-Styling benutzen.
Definition: he-svg.h:330
size_t n_styles
Anzahl Elemente in styles.
Definition: he-svg.h:325
Geerbt.
Definition: he-svg.h:100
int hsm_et_svg_style_set_font_weight(he_svg_t *svg, size_t st, he_svg_font_weight_t fw, int *ec)
Schriftdicke einstellen.
he_svg_linejoin_t
Knickpunkte.
Definition: he-svg.h:126
int hsm_et_svg_style_set_linejoin(he_svg_t *svg, size_t st, he_svg_linejoin_t lj, int *ec)
Stil fuer Knickpunkte festlegen.
Rounded line join.
Definition: he-svg.h:128
Definition: he-svg.h:91
int s_r
Zeichenfarbe rot (0-255).
Definition: he-svg.h:302
long w_mm
Bildbreite in mm oder px.
Definition: he-svg.h:327
double y_top
Nutzer-Koordinaten, oberer y-Wert.
Definition: he-svg.h:320
he_svg_align_h_t
Horizontale Ausrichtung.
Definition: he-svg.h:76
int hsm_et_svg_comment_open(he_svg_t *svg, int *ec)
Kommentar oeffnen.
Definition: he-svg.h:98
double y_scale
Skalierung fuer y-Werte.
Definition: he-svg.h:322
Struktur zum Erzeugen einer SVG-Datei.
Definition: he-svg.h:313
int hsm_et_svg_draw_polyline_add(he_svg_t *svg, double x, double y, int *ec)
Punkte zu einer mit hsm_et_svg_draw_polyline_begin() begonnenen Polylinie hinzufuegen.
int hsm_et_svg_draw_path_begin(he_svg_t *svg, size_t st, he_svg_style_t *ast, int *ec)
Zeichnen eines zusammengesetzten Pfades beginnen.
double x_right
Nutzer-Koordinaten, rechter x-Wert.
Definition: he-svg.h:318
int hsm_et_svg_draw_multi_text_add(he_svg_t *svg, char const *str, int me, int *ec)
Text-Teil zu mehrteiligem Text hinzufuegen.
Fett.
Definition: he-svg.h:88
int hsm_et_svg_style_set_stroke_color_rgb(he_svg_t *svg, size_t st, int r, int g, int b, int *ec)
Zeichen-Farbe als RGB-Werte festlegen.
int hsm_et_svg_style_ptr_set_linecap(he_svg_t *svg, he_svg_style_t *stptr, he_svg_linecap_t lc, int *ec)
Stil fuer Linienenden festlegen.
int al_h
Horizontale Ausrichtung.
Definition: he-svg.h:298
Rounded linecap.
Definition: he-svg.h:117
int st
Flag: Header schon geschrieben.
Definition: he-svg.h:329
Definition: he-svg.h:95
int hsm_et_svg_style_set_fill_color_name(he_svg_t *svg, size_t st, he_svg_color_t name, int *ec)
Fuell-Farbe ueber Namen festlegen.
int s_nam
Zeichenfarbe aus enum.
Definition: he-svg.h:297
int linecap
Linienenden.
Definition: he-svg.h:305
int f_b
Fuellfarbe blau (0-255).
Definition: he-svg.h:301
Mitered line join.
Definition: he-svg.h:127
double fo_sz
Font-Groesse.
Definition: he-svg.h:294
int linejoin
Knickpunkte.
Definition: he-svg.h:306
int hsm_et_svg_style_ptr_set_linewidth(he_svg_t *svg, he_svg_style_t *stptr, double lw, int *ec)
Linienbreite festlegen.