|
Boost : |
From: Philippe A. Bouchard (philippe_at_[hidden])
Date: 2003-07-27 06:56:07
Philippe A. Bouchard wrote:
[...]
> // 2d, 3d or even 4d vectors:
> typedef list<int> point;
>
> // Basic widget: LineEdits, PushButtons, ... Accepts operator >> & <<:
> typedef list<point> widget;
>
> // ScrollViews, ButtonGroups, ListBox, ...:
> typedef list<widget> container;
>
> // Window:
> typedef list<container> window;
>
> // Modal windows, popups or MDI window:
> typedef list<window> application;
>
> // Generic system list:
> typedef list<application> desktop;
>
> // Virtual desktops environment:
> typedef list<desktop> server;
Or:
struct point : list<int> { ... };
struct widget : list<point> { ... };
struct container : list<widget> { ... };
struct window : list<container> { ... };
struct application : list<window> { ... };
struct desktop : list<application> { ... };
struct server : list<desktop> { ... };
Philippe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk