[Y-devel] Re-implement how to draw shapes?
drizzt321 at phpfreaks.com drizzt321 at phpfreaks.com
Wed Feb 25 15:06:49 GMT 2004
Quoting Thomas <spiralman at softhome.net>:
> On Wednesday 25 February 2004 08:44, drizzt321 at phpfreaks.com wrote:
>
> > ok, I know I said I had a debateable insight, but that was before I did
> all
> > the research into how things get painted. Now, its more I have a question.
> > Would it be better to have all the work be put on the theme? or should we
> > have an additional layer that accepts input from a theme, and then paints.
> > I was just thinking it would be easier to write themes, when you don't
> have
> > to worry about how do i paint a button, in the theme all you have to do is
> > say, i want a button here, with this font, with this text, and with these
> > colors/fontsize/etc. Thats just my thought for now, anybody else?
>
> well, the theme is supposed to set more than just colors and fontsize, it is
>
> meant to change how the widgets look, so if you have it just call some other
>
> drawButton function, you are defeating the purpose of having themes at all.
>
> The abstract "this is a button" should stop at the theme, and the theme
> should convert that into graphics primitives (lines, rectangles, points,
> etc).
>
Ah, ok. That does make sense now. So having that extra interface defeats the
purpose, gotcha. Does my understanding of how things currently paint pretty
accurately describe how things actually are being done? Just don't want to have
the wrong understanding of how it works since i'm currently thinking on the
subject.
Aaron
----------------------------------------------------------------------
This mail sent through Toaster-Horde (https://qmailtoaster.clikka.com/)
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved