Window

{\em -- to display gadgets \c{on the screen}}
  class window { 
\fbox{window}
gadget* g; public: window(gadget* p) : g(p) { g->request(this); } void allocate(int x1, int y1, int x2, int y2) { ... } void damage() { g->draw(); } };

slide: A window class