Items
class button : public gadget {public: button( int x, int y ) : _x(x), _y(y) {} void request(window* w) { _w = w; w->allocate(_x , _y, _x + 20, _y + 15); } void draw() { w->rectangle(_x , _y, _x + 20, _y + 15); } private: int _x; int _y; window* _w; };
item