Re: Canvas shortcomings



On 22 Jun 2001, Lauris Kaplinski wrote:

> One concern still - item->window transformation (albeit only translation
> factor) changes with scrolling. So methods have to take that into
> account, and NOT update items for mere translation changes...

Since GDK in gtk 2.0 gives you a 32-bit coordinate space for GdkWindows,
you could probably just create the canvas as one big GdkWindow.  For
scrolling, just pack it inside a viewport.  This would allow the canvas to
not worry about scrolling.  If it hasn't already been done, the exposure
compression code in canvas should probably be removed, as that is handled
at the GDK level as well now.

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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