> I'd also like my users to be able to draw lines rubber-band style, ie
> drag a line all around without obliterating background. Is there a
> xor-put in gtk?
>
> I've solved this low-level before, by saving all the pixels in a line's
> path to memory before plotting, but if there's something nicer I should
> use it...
Hi, John. Perhaps you could use gdk_draw_line, with the GdkFunction set
to GDK_XOR in the GdkGC. See:
<a href="
http://developer.gnome.org/doc/API/gdk/gdk-graphics-contexts.html#GDKFUNCTION
">GdkFunction</a>
<a href="
http://developer.gnome.org/doc/API/gdk/gdk-graphics-contexts.html#GDK-GC-SET-LINE-ATTRIBUTES
">gdk_gc_set_line_attributes</a>
<a href="
http://developer.gnome.org/doc/API/gdk/gdk-drawing-primitives.html#GDK-DRAW-LINE
">gdk_draw_line</a>
<a href="
http://developer.gnome.org/doc/API/gdk/gdk-graphics-contexts.html#GDKGC
">GdkGC</a>
__
Trevor Johnson
--
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null