[Y-devel] Proposing an UI module
Niko Iivari eviliivari at saunalahti.fi
Wed Feb 25 17:07:26 GMT 2004
On Wed, 25 Feb 2004 08:51:14 -0500
drizzt321 at phpfreaks.com wrote:
> Hmm...this might go along with something like what I just sent to the
> list. Basically I was wondering if we might put a layer between the
> theme, and the painter which would accept the themes specifics, font,
> fontsize, colors, etc. so the theme itself wouldn't have to worry
> about how to draw them on the screen, merely ask the next layer to do
> it with X, Y, Z specifics. Your idea goes right along with it(I
> think). It would basically have the theme say I want toolbar, with
> this style arrow, at these points. Am i getting this right?
>
> Aaron
I think it should be the other way around. I have no problem with the
theme talking to the painter, as long as the theme does not decide the
exact position or order of the "little bits" (skimming through the
thesis, it seems that these "little bits" should be called gadgets) like
scrollbar trough and the little arrows.
The ui module would be before the theme instead.
ui module --> theme module --> painter
I keep reading your comment and get the feeling we are talking of very
similiar things.
theme module --> 'next layer' --> painter ?
I see the ui module being used for compound widgets which work as bigger
building blocks for the GUI than individual widgets. So a simple 'button
with label' widget in a grid layout could be passed straight to the
theme, while a toolbar would go through the ui module. The ui module
would create a sub grid layout and arrange all toolbar buttons based on
that particular ui modules preferences. Of course an ui module that
reads user preferences from a configuration file could be made.
So the ui module would handle and arrange _user configurable_
"überwidgets" with their own 'sub grid layout' to hold their widgets
and gadgets.
-- Niko
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved