summaryrefslogtreecommitdiff
path: root/support/dktools/dk3figah.h
blob: a1fb6ce8a84073744c9b3771ac67e891842adac3 (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
/*
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: dk3figah.ctr
*/

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

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


#line 10 "dk3figah.ctr"

#ifdef __cplusplus
extern "C" {
#endif

/**	Check whether an object is a candidate to have arrowheads.
	@param	obj	Object to check.
	@return	1 if the object may have arrowheads, 0 otherwise.
*/
int
dk3figah_candidate(dk3_fig_obj_t *obj);

/**	Calculate arrowheads for open object.
	@param	drw	Drawing of object.
	@param	obj	Object to modify.
	@param	objno	Object number.
	@return	1 on success, 0 on error.
*/
int
dk3figah_calculate_arrowheads(
  dk3_fig_drawing_t	*drw,
  dk3_fig_obj_t		*obj
);

#ifdef __cplusplus
}
#endif


#endif