Re: [dev] SWK: The simple widget kit

From: Szabolcs Nagy <>
Date: Thu, 13 May 2010 11:04:44 +0200

On 5/12/10, Rory Rory <> wrote:
> Right now it's not obvious what the widgets actually are. The
> textboxes look identical to the buttons and it's hard to know where to
> type into.

don't care about the visual representation
that's the last thing you wish to design

the question is if the programming model is simple and powerful enough

* there is "box" and "event"
* each box has an event handler and that's the only thing that
determines the behaviour of the box (visual behaviour and internal
* the event handler gets called with events that occured over the area
of the box.
* there is no parent/child of a box so you cannot pass events around
(as in most toolkits), you have to handle or ignore them
* the area of a box is determined by the toolkit, only the box layout
should be described (boxes per rows), so not just fixed resolution
pixel based representation is possible

btw if there is strictly one window per application (the container of
boxes) then the window can be a global variable, you don't have to
pass it around in every swk function and struct.
Received on Thu May 13 2010 - 09:04:44 UTC

This archive was generated by hypermail 2.2.0 : Thu May 13 2010 - 09:12:02 UTC