diff --git a/.gitignore b/.gitignore index f0ed035..c675b52 100644 --- a/.gitignore +++ b/.gitignore @@ -72,4 +72,5 @@ Thumbs.db *.exe *.user +*.user* *.buildconfig diff --git a/cairo-output/cairo-output.c b/cairo-output/cairo-output.c index 9db1b8e..bdf6f30 100644 --- a/cairo-output/cairo-output.c +++ b/cairo-output/cairo-output.c @@ -178,6 +178,15 @@ static void render_cell(struct gds_cell *cell, struct cairo_layer *layers, doubl } +/** + * @brief Toplevel function of cairo output renderer + * @param cell Cell to render + * @param layer_infos Layer information + * @param pdf_file Destination PDF file + * @param svg_file Destination SVG file + * @param scale Image will be scaled by scale^-1 + * @warning SVG output doesn't behave as expected + */ void cairo_render_cell_to_vector_file(struct gds_cell *cell, GList *layer_infos, char *pdf_file, char *svg_file, double scale) { cairo_surface_t *pdf_surface, *svg_surface; diff --git a/latex-output/latex-output.c b/latex-output/latex-output.c index 2180e25..303b5a7 100644 --- a/latex-output/latex-output.c +++ b/latex-output/latex-output.c @@ -248,6 +248,16 @@ static void render_cell(struct gds_cell *cell, GList *layer_infos, FILE *tex_fil } +/** + * @brief Renders \p cell with its subcells to TikZ code. + * @note Preferences \p create_pdf_layers and \p standalone_document can be changed in LaTeX code afterwards. + * @param cell Cell to render + * @param layer_infos Layer information + * @param tex_file Destination file + * @param scale Scaling factor. Image will be scaled by scale^-1 + * @param create_pdf_layers Default value for pdf OCR layers + * @param standalone_document Default value for standalone document class + */ void latex_render_cell_to_code(struct gds_cell *cell, GList *layer_infos, FILE *tex_file, double scale, gboolean create_pdf_layers, gboolean standalone_document) {