2010-09-25 10:46:16 +03:00
|
|
|
/*
|
2010-09-28 14:58:28 +03:00
|
|
|
* gui_util.h - GUI helper functions
|
2010-09-25 10:46:16 +03:00
|
|
|
*
|
2010-09-28 14:58:28 +03:00
|
|
|
* Written 2009 by Werner Almesberger
|
|
|
|
* Copyright 2009 by Werner Almesberger
|
2010-09-25 10:46:16 +03:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2010-09-28 14:58:28 +03:00
|
|
|
#ifndef GUI_UTIL_H
|
|
|
|
#define GUI_UTIL_H
|
2010-09-25 10:46:16 +03:00
|
|
|
|
2010-09-29 01:49:49 +03:00
|
|
|
#include <stdint.h>
|
2010-09-25 10:46:16 +03:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
|
2010-09-29 01:49:49 +03:00
|
|
|
void hpoint(guchar *rgbbuf, int x, int y, int sx, uint8_t c[3]);
|
|
|
|
void vpoint(guchar *rgbbuf, int y, int x, int sx, uint8_t c[3]);
|
|
|
|
|
|
|
|
void aa_line(guchar *rgbbuf, int i, double fa, double fb, int max, int sx,
|
|
|
|
uint8_t c[3],
|
|
|
|
void (*point)(guchar *rgbbuf, int f, int i, int sx, uint8_t c[3]));
|
|
|
|
|
2010-09-28 14:58:28 +03:00
|
|
|
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r);
|
2010-09-25 10:46:16 +03:00
|
|
|
|
2010-09-28 14:58:28 +03:00
|
|
|
#endif /* !GUI_UTIL_H */
|