2016-07-31 06:04:43 +03:00
|
|
|
/*
|
2016-08-02 00:11:42 +03:00
|
|
|
* cro.h - Cairo graphics back-end
|
2016-07-31 06:04:43 +03:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2016-08-02 00:11:42 +03:00
|
|
|
#ifndef CRO_H
|
|
|
|
#define CRO_H
|
2016-08-01 20:38:36 +03:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2016-07-31 06:04:43 +03:00
|
|
|
|
|
|
|
#include "gfx.h"
|
|
|
|
|
|
|
|
|
2016-08-02 00:11:42 +03:00
|
|
|
extern const struct gfx_ops cro_png_ops;
|
|
|
|
extern const struct gfx_ops cro_pdf_ops;
|
2016-07-31 06:04:43 +03:00
|
|
|
|
2016-08-02 00:11:42 +03:00
|
|
|
#define cro_img_ops cro_png_ops /* just don't call cro_img_ops.end */
|
2016-08-01 20:38:36 +03:00
|
|
|
|
|
|
|
|
2016-08-02 00:11:42 +03:00
|
|
|
uint32_t *cro_img_end(void *ctx, int *w, int *h, int *stride);
|
|
|
|
void cro_img_write(void *ctx, const char *name);
|
2016-08-01 20:38:36 +03:00
|
|
|
|
2016-08-02 00:11:42 +03:00
|
|
|
#endif /* !CRO_H */
|