Question about the GdkGC



When I create a GdkGC, I have to give a GdkDrawable to attach this GC,
But when I draw line or rectangle, I still need the GdkDrawable as
parameter.
Is these because one GdkGC can work on multile GdkDrawable after it
created?

Another question: the CreateGC and releaseGC is a expensive job? Should
I create and release it every time I need to draw or just keep a global
copy for better performance.


Thanks.





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