drawing lines (help please)
- From: Mike Holme <M Holme mmu ac uk>
- To: gtk-list gnome org
- Subject: drawing lines (help please)
- Date: Wed, 14 Mar 2001 14:58:14 +0000
Hi,
I'm finding it hard to find a simple example of drawing coloured
lines. I have code that draws black
or white lines but I also need green. Another problem is that my drawing
area is grey and I want it to be
white. Could somebody show me how to accomplish this please.
My current code looks like this :-
gdk_draw_line(widget->window, widget->style->black_gc, x1, y1, x2, y2);
where widget is the first parameter to the "expose" callback.
I've tried the obvious, green_gc, but no such luck !
Thank you very much,
Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]