Re: HOW use graphics contexts in MULTIPLE drawing areas?!?!?!?



Christian Seberino <seberino spawar navy mil> writes:

> GdkGC* gc = gdk_gc_new(drawingArea->window);
> 
> You'll notice line above needs an argument that is a
> drawing area window.  What if I want to use 
> same graphics context in lots of drawing areas?!?!?!?
> 
> 
> e.g. if I define a graphics context for color
> red then why define HUNDREDs of "reds" one for
> every drawing area?!?!?!

You can use a GdkGC with any other drawable (window or pixmap)
with the same colormap.

Regards,
                                        Owen



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