Re: using cairo surfaces

2006-10-18 Thread Tommi Sakari Uimonen
> You are welcome! I also get some help from people here so its nice to give > something in return :). It does give that warm fuzzy feeling, doesn't it :) > Are you sure you need a container and various child widgets? No I'm not sure. To me it also felt very strange, as I just need place to

Re: using cairo surfaces

2006-10-18 Thread Ivan Baldo
Hello Tommi. El 18/10/06 04:41, Tommi Sakari Uimonen escribió: > Hi, thanks for your answer! > You are welcome! I also get some help from people here so its nice to give something in return :). > Yes, this I already did. But I still have problems with gtk regarding > what kind of wid

Re: using cairo surfaces

2006-10-17 Thread Tommi Sakari Uimonen
Hi, thanks for your answer! > If you have a cairo_t obtained from your expose_event callback and you call > it "cr", then on the child widgets you can create a surface with > cairo_surface_create_similar( cairo_get_target(cr), CAIRO_CONTENT_COLOR, > theWidthOfYourChild, theHeightOfYourChild);.

Re: using cairo surfaces

2006-10-17 Thread Ivan Baldo
If you have a cairo_t obtained from your expose_event callback and you call it "cr", then on the child widgets you can create a surface with cairo_surface_create_similar( cairo_get_target(cr), CAIRO_CONTENT_COLOR, theWidthOfYourChild, theHeightOfYourChild);. That surface will have the same for