| 3 | #include "../ScrollableWindow/ScrollableWindow.h" |
| 4 | |
| 5 | Help::Help() { |
| 6 | int max_y, max_x; |
| 7 | getmaxyx(stdscr, max_y, max_x); |
| 8 | |
| 9 | this->height = max_y * 0.5; |
| 10 | this->width = max_x * 0.6; |
| 11 | this->start_y = (max_y / 2) - (height / 2); |
| 12 | this->start_x = (max_x / 2) - (width / 2); |
| 13 | |
| 14 | this->window = |
| 15 | newwin(this->height, this->width, this->start_y, this->start_x); |
| 16 | } |
| 17 | |
| 18 | void Help::show() { |
| 19 | wattron(this->window, COLOR_PAIR(COLOR_PAIR_BORDER)); |
nothing calls this directly
no outgoing calls
no test coverage detected