[Y-devel] Toolkits?

Mike Paquette mpaque at mac.com
Fri Feb 20 19:05:35 GMT 2004


On Feb 19, 2004, at 2:11 PM, jared.hanson at helixent.com wrote:

> After sending in my reply, I got to thinking about various widget 
> related
> items.  You are correct in that most applications end up subclassing a
> standard widget and overriding its drawing routines and whatever other
> custom behaviour it might need.  As an example, take a look at the 
> source
> list in iTunes.  The background of the selected row is rendered with a
> gradient as opposed to a solid color.
>

I can't speak for Y, as I'm still poking around in it's code base.

Subclassing and modifying widgets is generally much easier when the 
widget code resides entirely on the client, atop a lower level drawing 
framework.  In a few past window systems where widgets have been done 
in the server, most notably the Sun NeWS window system, widgets were 
handled by a high level language run in the server's interpreter.

NeWS included libraries of user interface widgets written in the NeWS 
environment (a PostScript superset), interacting with the user entirely 
in that environment, and only communicating to the outside environment 
(client app, or other NeWS widgets) when needed.  This produced a very 
high level communications abstraction with the server.   It was also a 
real pain to deal with.  (There's lots of 'Why NeWS failed' commentary 
on the web.)




More information about the Y-devel mailing list









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