1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
/*
Copyright (C) 2012-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/
/*
WARNING: This file was generated by the dkct program (see
http://dktools.sourceforge.net/ for details).
Changes you make here will be lost if dkct is run again!
You should modify the original source and run dkct on it.
Original source: f2lud.ctr
*/
/** @file f2lud.h Header file for the f2lud module.
*/
#ifndef F2LUD_H_INCLUDED
/** Avoid multiple inclusions. */
#define F2LUD_H_INCLUDED 1
#line 10 "f2lud.ctr"
#ifdef __cplusplus
extern "C" {
#endif
/** Produce output.
@param job Job structure.
*/
void
f2lud_output(f2l_job_t *job);
/** Issue "newpath" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
*/
void
f2lud_newpath(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj
);
/** Issue "moveto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param x New point x in output space.
@param y New point y in output space.
*/
void
f2lud_moveto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double x,
double y
);
/** Issue "lineto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param x New point x in output space.
@param y New point y in output space.
*/
void
f2lud_lineto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double x,
double y
);
/** Issue "curveto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param xcs Control point at start x in output space.
@param ycs Control point at start y in output space.
@param xce Control point at end x in output space.
@param yce Control point at end y in output space.
@param xe End point x in output space.
@param ye End point y in output space.
*/
void
f2lud_curveto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double xcs,
double ycs,
double xce,
double yce,
double xe,
double ye
);
/** Issue "moveto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param x New point x in Fig space.
@param y New point y in Fig space.
@param ec Pointer to error code variable, may be NULL.
*/
void
f2lud_fig_moveto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double x,
double y,
int *ec
);
/** Issue "lineto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param x New point x in Fig space.
@param y New point y in Fig space.
@param ec Pointer to error code variable, may be NULL.
*/
void
f2lud_fig_lineto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double x,
double y,
int *ec
);
/** Issue "curveto" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
@param xcs Control point at start x in Fig space.
@param ycs Control point at start y in Fig space.
@param xce Control point at end x in Fig space.
@param yce Control point at end y in Fig space.
@param xe End point x in Fig space.
@param ye End point y in Fig space.
@param ec Pointer to error code variable, may be NULL.
*/
void
f2lud_fig_curveto(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj,
double xcs,
double ycs,
double xce,
double yce,
double xe,
double ye,
int *ec
);
/** Issue "closepath" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
*/
void
f2lud_closepath(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj
);
/** Issue "stroke" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
*/
void
f2lud_stroke(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj
);
/** Issue "fill" command.
@param job Job structure.
@param drw Drawing structure.
@param obj Current object to process.
*/
void
f2lud_fill(
f2l_job_t *job,
dk3_fig_drawing_t *drw,
dk3_fig_obj_t *obj
);
/** Check whether a spline object is an interpolated spline
(only s=-1 and/or s=0 points).
@param obj Object to check.
@return 1 for pure interpolated spline, 0 otherwise.
*/
int
f2lud_is_interpolated_spline(dk3_fig_obj_t *obj);
#ifdef __cplusplus
}
#endif
#endif
|