Window -- to display gadgets on the screen
class 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(); } };
window
class 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(); } };
window