Re: canvas notes



On Mon, 2005-08-15 at 02:38 -0400, Havoc Pennington wrote:
> Hi,
> 
> Been thinking about canvas widgets a little this weekend, thought I'd
> write down some notes. Some people are doubtless way ahead of me.

Just dropping a note to say I'm planning to work on this. I've started
looking at various canvases (well, I know some pretty well already...)
and thinking about use cases, possible features and implementations
ideas.

In my initial thinking about this and talking to various people about it
i've notived that this is pretty essential for a usable canvas:

> 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).

However, rendering any random widget (not only no-window widgets) to a
pixmap isn't possible right now, so before continuing my work with the
canvas I'll try to come up with a way to do this.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a genetically engineered dishevelled cyborg on a search for his missing 
sister. She's a virginal punk journalist on her way to prison for a murder she 
didn't commit. They fight crime! 




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