[Y-devel] Re: Measuring lengths (pixels or something else?)

Robert Wimmer seppwimmer at hotmail.com
Fri Feb 27 18:08:40 GMT 2004


>From: Mikko Rantalainen <mira at cc.jyu.fi>
>To: y-devel at www.y-windows.org
>Subject: [Y-devel] Re: Measuring lengths (pixels or something else?)
>Date: Fri, 27 Feb 2004 11:27:20 +0200
>
>Chris Amshey <ychris at amshey.net> wrote:
>>On Wed, Feb 25, 2004 at 04:31:57PM -0500, Aaron wrote:
>>
>>>>of what underlying libraries/techniques/etc to display
>>>>things, in terms of the x and y axis, are we measuring in
>>>>pixels? dpi? some other quantity? we should decide this now
>>>>if possible, so we can have internal consistancy in our x,y
>>>>scheme.

i think this really has to be discussed in the beginning - that means now. 
for me measuring in pixels is obsolet  nowadays - espacially for a new 
windowing system. on the one hand screen resolutions differ that much - on 
the other hand, may be one should not only think in terms of computer 
displays. i hope there will be a lot of machines using linux - and maybe 
sometimes Y - with totally different displays.

>Another nice length measurement would be to follow HTML/CSS and use base 
>font size as basic measurement (em). That way, if the user thinks that the 
>UI looks too small, he just adjusts the default font size and everything 
>scales accordingly.

this would be my first choice to define measurements - assumed we have a 
textual context.  presuming this, you can think about a coordinate system : 
left top - left bottom right - top ... for me, and i think most of us,  the 
top left coordinate system is some sort of natural - and i think the reason 
for that is, that  we are writing "latin" (latin - characters) from top left 
to right bottom. but a lot of people are writing  right to left and top down 
or top down left to right and so on ...

to end this theoratical discussion. in the end there will be a layer where 
you have to define coordinates in pixel and on this level the coordinate 
system that is used is normally top left  to bottom right - the only 
exception i know is the OBERON system. BUT it should also be possible to 
define measurements in points (sometimes you want to print), em's etc. and 
the oriantation left right - right left - top down. this relly sound like 
CSS.

so what about styles ? wouldnt it be terrific to define some sort of styles 
? for example every widget has an associated style similar to HTML ? i have 
done some work on this - implementing styles for a widget system (or better 
a TAG system) on X. it's not that complicated. good idea ?

bye sepp



(besides to write Y in OBERON II would be really great)

_________________________________________________________________
Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! 
https://click.atdmt.com/AVE/go/onm00200361ave/direct/01/




More information about the Y-devel mailing list









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