Re: [gtk-list] XOR line




On Mon, 14 Dec 1998, Gustavo Carneiro wrote:
> 	Can anyone please tell me how to do a XORed line with gdk or,
> alternatively, the strategy to implementing a 'rubber-band'?

Create a GC and call gdk_gc_set_function(gc, GDK_XOR); set your color to
the color you want to xor with (probably white is what you want). Then
just draw with that GC.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]