[Y-devel] GUI design docs
Brent Gulanowski brentg at magma.ca
Wed Feb 25 19:13:29 GMT 2004
On Feb 25, 2004, at 11:58 AM, Jay Sprenkle wrote:
> * Allow controls to be 'pinned' to one or more
> edges of the container they are within. This
> makes a control into a 'docking tool bar'. Allow
> a distance from each edge to be specified so
> they can float near the edge.
Depending what you mean by control, I've always thought most U.I.'s
should feature something that Adobe has added to their apps: user
draggable palettes or what might be called floating tab views. It sort
of goes against the idea, fundamental in X (and inherent in OS X) that
child windows (aka canvases or views) cannot extend beyond the borders
of their parents. If this could be violated in a logical way, for a
particular kind of control, it could give the user a lot of flexibility
and power. If the user interface can be partitioned into functional
rectangular areas, they can be layered or separated in different ways,
according to the user's needs. Most users might not want the U.I. to be
changeable (lest they change it by accident and not know how to restore
it), but you could turn the feature on and off per system and per
application (letting individual applications over-ride it).
>
> * Allow controls to be optionally resized if
> their container is resized. (Pass a size
> change event to child controls?)
This is a fundamental part of OS X's user interface -- parent views
send bounds changed messages to children and if the children are set to
respond to these, they grow and shrink (within reason depending on the
type of control/view). These settings are actually set in the Interface
Builder program usually.
BTW, any thoughts on defining interface layout using external
resources, as an alternate to programmatically? The classic Mac OS used
resource files that were parsed by functions in order to generate a
U.I. layout (so, you'd tell the window manager, with a function, to
create a new window with resource ID such and such). OS X actually
creates archives of U.I. objects (they call it "freeze drying") which
are "woken up" when an owner object requests the archive (a "nib" file)
be opened. It's really awesome. Interface Builder is the tool for
constructing user interfaces and it saves these nibs, allowing the
developer to specify "outlets" -- ivars which point to other objects.
Because a nib is an object archive, it can even contain instances of
non-U.I. classes.
>
> * We should add transparency as a property of
> controls/windows. For pretty desktops and shadows.
>
> * If we design it right we can take advantage of
> hardware acceleration and hardware video decoding.
> Push the implementation of the control rendering
> down to modular plugins, it can be done by talking
> to hardware and requesting it to do it, or good
> 'ole software rendering.
You might have sets of U.I. candy that have minimal system resource
requirements, and fallback to a default if the requirements are not
met. Apple does this with features like the fast user switching
rotating box animation. Basically they have the Quartz Extreme version
of some things and the Quartz fallback version.
Brent Gulanowski
--
Fusion power is the energy of the future, and always will be!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2359 bytes
Desc: not available
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040225/ebc009de/smime.bin
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved