summaryrefslogtreecommitdiff
path: root/support/dktools/wxd2lout.h
blob: 7c4f90c40f4f90a2e6bd9f653b49e0ef48803725 (plain)
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
/*
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: wxd2lout.ctr
*/

/**	@file wxd2lout.h Header file for the wxd2lout module.
*/

#ifndef WXD2LOUT_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXD2LOUT_H_INCLUDED 1


#line 9 "wxd2lout.ctr"

#ifdef	__cplusplus
extern "C" {
#endif


/**	Produce output for an input file successfully read in.
	@param	drw	Drawing to produce output for.
	@param	job	Job structure, probably modified.
	@param	fn	Input file name
*/

void
wxd2lat_output(
	wxd_drawing_t	*drw,
	wxd2lat_job_t	*job,
	const dkChar	*fn
);


/**	Convert x value from WXD coordinates to bp.
	@param	drw	Drawing structure.
	@param	job	Job structure.
	@param	x	X value to convert.
	@return	Conversion result.
*/

double
wxd2lout_convert_x(wxd_drawing_t *drw, wxd2lat_job_t *job, double x);


/**	Convert y value from WXD coordinates to bp.
	@param	drw	Drawing structure.
	@param	job	Job structure.
	@param	y	Y value to convert.
	@return	Conversion result.
*/

double
wxd2lout_convert_y(wxd_drawing_t *drw, wxd2lat_job_t *job, double y);


/**	Convert a distance from WXD units to bp.
	@param	r	Distance in WXD units to convert.
	@return	Result in bp.
*/

double
wxd2lout_convert_r(double r);

#ifdef	__cplusplus
}
#endif



#endif