GDS-Render v1.2.1
cairo-renderer.c File Reference

Output renderer for Cairo PDF export. More...

#include <math.h>
#include <stdlib.h>
#include <cairo.h>
#include <cairo-pdf.h>
#include <cairo-svg.h>
#include <glib/gi18n.h>
#include <gds-render/output-renderers/cairo-renderer.h>
#include <sys/wait.h>
#include <unistd.h>
Include dependency graph for cairo-renderer.c:

Go to the source code of this file.

Data Structures

struct  _CairoRenderer
 
struct  cairo_layer
 The cairo_layer struct Each rendered layer is represented by this struct. More...
 

Functions

static void revert_inherited_transform (struct cairo_layer *layers)
 Revert the last transformation on all layers. More...
 
static void apply_inherited_transform_to_all_layers (struct cairo_layer *layers, const struct gds_point *origin, double magnification, gboolean flipping, double rotation, double scale)
 Applies transformation to all layers. More...
 
static void render_cell (struct gds_cell *cell, struct cairo_layer *layers, double scale)
 render_cell Render a cell with its sub-cells More...
 
static int read_line_from_fd (int fd, char *buff, size_t buff_size)
 Read a line from a file descriptor. More...
 
static int cairo_renderer_render_cell_to_vector_file (GdsOutputRenderer *renderer, struct gds_cell *cell, GList *layer_infos, const char *pdf_file, const char *svg_file, double scale)
 Render cell to a PDF file specified by pdf_file. More...
 
static void cairo_renderer_init (CairoRenderer *self)
 
static int cairo_renderer_render_output (GdsOutputRenderer *renderer, struct gds_cell *cell, double scale)
 
static void cairo_renderer_class_init (CairoRendererClass *klass)
 
CairoRenderer * cairo_renderer_new_pdf ()
 Create new CairoRenderer for PDF output. More...
 
CairoRenderer * cairo_renderer_new_svg ()
 Create new CairoRenderer for SVG output. More...
 

Detailed Description

Output renderer for Cairo PDF export.

Author
Mario Hüttel mario.nosp@m..hue.nosp@m.ttel@.nosp@m.gmx..nosp@m.net

Definition in file cairo-renderer.c.