mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-02 19:42:28 +02:00
32 lines
768 B
C
32 lines
768 B
C
/*
|
|
* cairo.h - Cairo graphics back-end
|
|
*
|
|
* Written 2016 by Werner Almesberger
|
|
* Copyright 2016 by Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef MY_CAIRO_H
|
|
#define MY_CAIRO_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "gfx.h"
|
|
|
|
|
|
extern const struct gfx_ops cairo_png_ops;
|
|
extern const struct gfx_ops cairo_pdf_ops;
|
|
|
|
#define cairo_img_ops cairo_png_ops /* just don't call cairo_img_ops.end */
|
|
|
|
|
|
uint32_t *cairo_img_end(void *ctx, int *w, int *h, int *stride);
|
|
void cairo_img_write(void *ctx, const char *name);
|
|
|
|
#endif /* !MY_CAIRO_H */
|