Am Sonntag, 23. März 2008 17:25:25 schrieb Freddie Witherden: > Here is a short proposal for the new GUI library to replace the > current one in Warzone. As usual, comments are not only welcome, but > mandatory. Buginator just reminded me of this one... And actually I had some comments, no idea why I didnt wrote them down.
> The design which I am proposing (hopefully) solves these problems.
> Broadly:
> * It uses an object oriented system based off of GObject, albeit
> heavily stripped down.
GObject currently sounds awful, but if you can give an example, maybe that
will reduce my objections. ;)
> * Drawing it done using cairo, thus providing vector drawing
> capabilities.
Sounds ok. SVG themes?
> * General design borrowed from Swing.
> * All widgets are containers and so can contain children.
> * Events are passed bottom-up, so if we clicked on a button the
> click event would pass: Form => ... => Button
Root -> Window -> Widget -> Button, etc? Sounds good to me. Like what I would
have done, too.
What I would like to know is what actually *is* the design?
Do you have any API proposals, or workflow usecases?
To give some example, I would propose making the whole GUI scripted.
I.e. like this:
someButton = {
parent = Root,
onInit = function() ... end,
onExit = nil,
onClick = function() showWidget(infoWindow) end,
backgroundColour = ...,
...
}
infoWindow = {...}
--Dennis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
