/* 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: wxdrd.ctr */ /** @file wxdrd.h Header file for the wxdrd module. */ #ifndef WXDRD_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDRD_H_INCLUDED 1 #line 8 "wxdrd.ctr" #ifndef DK4APP_H_INCLUDED #include "dk4app.h" #endif #ifndef WXDTYPES_H_INCLUDED #include "wxdtypes.h" #endif #ifdef __cplusplus extern "C" { #endif /** Open a drawing from file. @param fn File name. @param job Job structure. @return Valid pointer to drawing on success, NULL on error. */ wxd_drawing_t * wxdrd_open_from_file(const dkChar *fn, wxd2lat_job_t *job); /** Open a new empty drawing. @return Valid pointer to drawing on success, NULL on error. */ wxd_drawing_t * wxdrd_open_empty(void); /** Apply file contents to empty drawing. @param drw Drawing to modify. @param fipo File pointer, opened for text reading. @param fn File name, may be NULL. @param job Job structure. @return 1 on success, 0 on error. */ int wxdrd_apply_file( wxd_drawing_t *drw, FILE *fipo, const dkChar *fn, wxd2lat_job_t *job ); /** Close drawing and release resources. @param drw Drawing to close. */ void wxdrd_close(wxd_drawing_t *drw); #ifdef __cplusplus } #endif /* vim: set ai sw=4 ts=4 : */ #endif