Root/eeshow/gfx/diff.h

1/*
2 * gfx/diff.h - Schematics difference
3 *
4 * Written 2016 by Werner Almesberger
5 * Copyright 2016 by Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef GFX_DIFF_H
15#define GFX_DIFF_H
16
17#include <stdint.h>
18
19#include <cairo/cairo.h>
20
21#include "gfx/gfx.h"
22#include "gfx/cro.h"
23
24
25extern const struct gfx_ops diff_ops;
26
27
28struct area {
29    int xa, ya, xb, yb;
30    uint32_t color;
31    struct area *next;
32};
33
34
35void add_area(struct area **areas, int xa, int ya, int xb, int yb,
36    uint32_t color);
37void free_areas(struct area **areas);
38
39void diff_to_canvas(cairo_t *cr, int cx, int cy, float scale,
40    struct cro_ctx *old, struct cro_ctx *new,
41    const struct area *areas);
42
43#endif /* !GFX_DIFF_H */
44

Archive Download this file

Branches:
master



interactive