X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/467f3bcabe798b584e470038c3169c374874b18b..ce1ab82ec072b9acef8021916819b504ed5686f6:/nviewer/window.h?ds=inline diff --git a/nviewer/window.h b/nviewer/window.h index d80871b..ba749ab 100644 --- a/nviewer/window.h +++ b/nviewer/window.h @@ -9,17 +9,23 @@ 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