/* 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