[cairo] Cairo_t or Cairo_surface_t
Gerdus van Zyl
gerdusvanzyl at gmail.com
Thu Dec 4 22:36:39 PST 2008
As a general rule a context should be short lived with as many
surfaces/sources as you want. That being said there isn't a limit or
restriction that I know of.
~Gerdus
On Fri, Dec 5, 2008 at 8:25 AM, Mohith Manoj <mohithmanoj at gmail.com> wrote:
> Hello,
>
> So far I have been doing that without any problems. I have a class hierarchy
> where the derived classes creates Cairo::Context of a Gdk::Window and pass
> it to the base class without any problem. Clipping may be the only thing u
> need to worry about. Yo clip in one function, make sure that u reset_clip in
> the same function (nothing wrong if you start with a reset_clip in the
> begining of a function), but I say let each function clean its own mess!!!
> and I didnt understand the concept of "half sized context". May be what you
> need is a Cairo::Context for the window and clip a region within it.
>
> On Fri, Dec 5, 2008 at 11:40 AM, abhidhnya sonawane
> <abhidhnya.sonawane at gmail.com> wrote:
>>
>> Hi,
>>
>> This is my first post here...
>> Also I am new to cairo, so if the questions are very simple (silly )
>> please do consider...
>>
>> I want to know if I can have multiple cairo context in one program ,like
>> for example if I create two new context in one function and use it in some
>> other function to get a context of half its size..will this work?
>>
>> Also I need to have multiple context or multiple surfaces? I mean I can
>> use context created in one function in other functions or should I use
>> surfaces.
>>
>> Please do reply,
>>
>> Thanks.
>>
>> _______________________________________________
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
More information about the cairo
mailing list