Root/solidify/gui_util.h

1/*
2 * gui_util.h - GUI helper functions
3 *
4 * Written 2009 by Werner Almesberger
5 * Copyright 2009 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#ifndef GUI_UTIL_H
14#define GUI_UTIL_H
15
16#include <stdint.h>
17#include <gtk/gtk.h>
18
19
20void hpoint(guchar *rgbbuf, int x, int y, int sx, uint8_t c[3]);
21void vpoint(guchar *rgbbuf, int y, int x, int sx, uint8_t c[3]);
22
23void aa_line(guchar *rgbbuf, int i, double fa, double fb, int max, int sx,
24     uint8_t c[3],
25     void (*point)(guchar *rgbbuf, int f, int i, int sx, uint8_t c[3]));
26
27void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r);
28
29#endif /* !GUI_UTIL_H */
30

Archive Download this file

Branches:
master



interactive