class Window {
public:
Window (const std::string &s, int w, int h, int x=0, int y=0, bool box=true);
- ~Window ();
+ Window (Window *parent, const std::string &s, int w, int h, int x=0, int y=0, bool box=true);
+ virtual ~Window ();
void SetText (int x, int y, const std::string &s);
void SetText (int x, int y, int i);
void SetText (int x, int y, uint i);
- void Show ();
+ virtual void Show ();
+ int GetChar ();
+
+ int Width () { return width; }
+ int Height () { return height; }
protected:
int width;
int height;
WINDOW *win;
std::string title;
+ Window *parent;
};
#endif