Re: [gtk-list] rubber banding lines - xorput?

>   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="
<a href="
<a href="
<a href="
Trevor Johnson

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