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
|
/*
Copyright (C) 2018-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: wxd2lah.ctr
*/
/** @file wxd2lah.h Header file for the wxd2lah module.
*/
#ifndef WXD2LAH_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXD2LAH_H_INCLUDED 1
#line 9 "wxd2lah.ctr"
#ifdef __cplusplus
extern "C" {
#endif
/** Calculate offset and cut for one arrowhead.
@param parrow Arrow to calculate.
@param pobj Object the arrow belongs to.
@param pdrw Drawing structure.
@param pjob Job structure.
@return 1 on success, 0 on error.
*/
int
wxd2lah_one_arrowhead(
wxd_arrow_t *parrow,
wxd_object_t *pobj,
wxd_drawing_t *pdrw,
wxd2lat_job_t *pjob
);
/** Calculate arrowhead data.
@param drw Drawing to produce output for.
@param job Job structure, probably modified.
@param fn Input file name
@return 1 on success, 0 on error.
*/
int
wxd2lah_calculate_arrowheads(
wxd_drawing_t *drw,
wxd2lat_job_t *job
);
/** Draw one arrowhead for object.
@param arrow Arrowhead structure.
@param drw Drawing structure.
@param job Job structure.
@param obj Object arrow belongs to.
@param isbck Flag: Is a backward arrow.
@param backptr Address of success variable to reset on error.
@param erp Error report, may be NULL.
*/
void
wxd2lah_arrowhead(
wxd_arrow_t *arrow,
wxd_drawing_t *drw,
wxd2lat_job_t *job,
wxd_object_t *pobj,
int isbck,
int *backptr,
dk4_er_t *erp
);
#ifdef __cplusplus
}
#endif
#endif
|