how to draw using GtkDrawingArea?
- From: Aaron Phillips <aaron phillips imagesoft fiserv com>
- To: gtk-app-devel-list gnome org
- Subject: how to draw using GtkDrawingArea?
- Date: 10 Sep 2002 11:16:18 -0400
Hello
I'm new to Gtk and need a bit of direction on how to draw (as to a
canvas) in Gtk. The track I'm on now is to use GtkDrawingArea with Gdk
primitives. I am having trouble with this. I am trying to respond to a
GtkImageMenuItem "activate" event by drawing a figure to the drawing
area. Here is the line that does this:
gdk_draw_arc (drawingarea->window,
drawingarea->style->fg_gc[GTK_WIDGET_STATE(drawingarea)],
TRUE,
5, 5,
10, 10, 0, 64 * 360);
The problem is nothing happens on the drawing area. Is there some
refresh-type function I need to call or something, or am i totally on
the wrong track.
Any direction would be much appreciated.
Thanks,
Aaron
--
Aaron Phillips
ImageSoft Technologies
2600 Maitland Center Pkwy
Suite 200
Maitland FL 32751
407-667-3849
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]