4 Window::Window (const std::string &s, int w, int h, int x, int y, bool use_box)
12 win = newwin (h, w, y, x);
14 if (use_box == true) {
15 wattron (win, COLOR_PAIR (6));
16 box(win, ACS_VLINE, ACS_HLINE);
17 wattroff (win, COLOR_PAIR (6));
21 wattron (win, COLOR_PAIR (1));
22 mvwaddstr(win, 0, 1, title.c_str ());
23 wattroff (win, COLOR_PAIR (1));
26 Window::Window (Window *p, const std::string &s, int w, int h, int x, int y, bool use_box)
34 win = derwin (parent->win, h, w, y, x);
36 if (use_box == true) {
37 wattron (win, COLOR_PAIR (6));
38 box(win, ACS_VLINE, ACS_HLINE);
39 wattroff (win, COLOR_PAIR (6));
43 wattron (win, COLOR_PAIR (1));
44 mvwaddstr(win, 0, 1, title.c_str ());
45 wattroff (win, COLOR_PAIR (1));
53 void Window::SetText (int x, int y, const std::string &s)
55 mvwaddstr (win, y, x, s.c_str ());
59 void Window::SetText (int x, int y, int i)
68 void Window::SetText (int x, int y, uint i)
80 touchwin (parent->win);
84 int Window::GetChar ()