2010-09-25 10:46:16 +03:00
|
|
|
/*
|
2010-09-28 14:58:28 +03:00
|
|
|
* gui_util.c - GUI helper functions
|
2010-09-25 10:46:16 +03:00
|
|
|
*
|
|
|
|
* Written 2010 by Werner Almesberger
|
|
|
|
* Copyright 2010 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2010-09-28 14:58:28 +03:00
|
|
|
#include "gui_util.h"
|
2010-09-25 10:46:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r)
|
|
|
|
{
|
|
|
|
gdk_draw_arc(da, gc, FALSE, x-r, y-r, 2*r, 2*r, 0, 360*64);
|
|
|
|
}
|