1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-05 12:46:14 +02:00
eda-tools/eeshow/gfx/diff.h
Werner Almesberger 6b901399ce eeshow/gfx/diff.c (diff_to_canvas): draw caller-supplied areas
These are for future highlighting. WIP.
2016-08-19 21:25:48 -03:00

40 lines
796 B
C

/*
* gfx/diff.h - Schematics difference
*
* 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 GFX_DIFF_H
#define GFX_DIFF_H
#include <stdint.h>
#include <cairo/cairo.h>
#include "gfx/gfx.h"
#include "gfx/cro.h"
extern const struct gfx_ops diff_ops;
struct area {
int xa, ya, xb, yb;
uint32_t color;
struct area *next;
};
void diff_to_canvas(cairo_t *cr, int cx, int cy, float scale,
struct cro_ctx *old, struct cro_ctx *new,
const struct area *areas);
#endif /* !GFX_DIFF_H */