Re: canvas notes



"muppet" <scott asofyet org> writes:

> Gustavo J. A. M. Carneiro said:
>> On Wed, 2005-09-07 at 16:54 +0200, Alexander Larsson wrote:
>>> On Mon, 2005-08-15 at 02:38 -0400, Havoc Pennington wrote:
>>> > 4. Widget embedding. Absolutely critical to using the canvas
>>> >    for real-world UI. The widget embedding can't be broken
>>> >    as in GnomeCanvas or it isn't useful; layering and events must work
>>> >    properly. Affine transforms probably should work properly, and
>>> >    when you think about animations (minimization, etc.) could even be
>>> >    useful.
>>>
>>> The obvious way to do this is to get a GtkWidget to render into a pixmap
>>> and then draw that pixmap translated on the screen (and translate events
>>> into it).
>>
>>   I don't understand.  Is there a problem creating a gdk subwindow,
>> child of the canvas widget window, and putting it at the right
>> coordinates, effectively sitting on top of the canvas?  Sure, you
>> wouldn't get transparency (shaped widgets, same problem in the gnome
>> panel), this way, but that's a limitation we can live with, I suppose?
>
> I think the point is that the simple approach doesn't deal with arbitrary
> transformations.

Now GTK+ is using Cairo for drawing, couldn't the widgets themselves
be turned into canvas items?  That would be awesome.


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



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