[Y-devel] Toolkits?
jared.hanson at helixent.com jared.hanson at helixent.com
Thu Feb 19 22:11:38 GMT 2004
> One of the interesting things in the design of the Mac OS X window
> system is that the window system itself contains no widget sets, and is
> even graphics-model agnostic. Drawing is done by client-side
> frameworks, such as Quartz (PDF-like vectors and images) and QuickDraw
> (Xlib-like raster oriented primitives). Widget sets are built on top
> of the client-side drawing primitives in a higher layer, such as the
> Cocoa AppKit or Carbon ToolBox.
>
> ...
>
> Apple's custom widget sets are built on top of the same client side
> graphics routines as the standard tool sets. In the Cocoa environment,
> customized subclasses of standard UI elements (NSView, NSControl) are
> typically used to gain custom appearance and behavior on top of common
> functionality.
>
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.
Now, I'm planning on looking more into the Y code later tonight, so
forgive me if this question sounds ignorant. Is it feasable to override
certain methods of a base widget with custom ones when the base widget
resides in the server and the custom widget resides in the client? If
not, that could be a big downfall of server side widgets.
It is not reasonable to assume that the server will provide all the little
widget variations that will be used in the "real world." Anyone who has
ever done any GUI work knows that even the provided widgets usually end up
as base classes to what is actually used. That being said, some mechanism
would be nice to let applications override standard widgets with custom
routines.
I could be way off on this, and what I am concerned about is already
possible. If so, I would appreciate it if someone could offer up an
explanation as to how this works. If not, does anyone have any ideas as
to how it could/should work?
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved