Re: canvas notes
- From: "muppet" <scott asofyet org>
- To: gtk-devel-list gnome org
- Subject: Re: canvas notes
- Date: Thu, 8 Sep 2005 12:33:27 -0400 (EDT)
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.
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]