[Y-devel] shapes?

Casey Winans casey at cwinans.com
Thu Feb 26 14:51:19 GMT 2004


> Also, a thought on that, are we starting 0,0 at the top left of the Y 
> desktop/extended desktop(if we want to do that like X does), or the top 
> left of a given Y window? Maybe we should simplify everything and say 
> 0,0 for _every_ component/object that is display, or bound to x,y 
> somehow has 0,0 as the top left of the Y display. Not sure if there is a 
> good reason to do otherwise, or to do this specifically, except I have 
> dealt with having the top left of each component(in Java) be 0,0 for 
> everything inside of it, instead of a global 0,0 being in effect 
> everywhere. And we should be allowed to go 'off' the screen, aka move 
> things so that at least part of them, or even all of them I suppose are 
> not displayed. this then begs the question, shouldn't there be some way 
> that the user can pull any or all of them back to where they can be 
> seen/manipulated? yes, perhaps, but maybe that is best left up to the 
> windowmanager, all we should do in the lower levels is be able to tell 
> the windowmanager/something above is that we have window x,y,z that are 
> beyond the edge and is not being displayed at all, or something similar 
> to that.

Most toolkits I've have worked with have used the top left as the (0,0)
origin. I prefer this and I feel it's intuitive. IMO I think the origins
should be relative to the objects container be it a window or the
desktop itself.

IMHO the window manager should be the one to bring the windows/objects
that are off screen back into view. For instance, ask the window manager
to cascade all windows, or tile them, etc...

-- 
Casey Winans <casey__AT__cwinans_._com>




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved