| 517 | } |
| 518 | |
| 519 | string BoardScreen::create_input_window(string title, string content, |
| 520 | bool focused) { |
| 521 | int max_y, max_x; |
| 522 | getmaxyx(stdscr, max_y, max_x); |
| 523 | |
| 524 | int height = 3; |
| 525 | int width = max_x * 0.4; |
| 526 | int start_y = (max_y / 2) - (height / 2); |
| 527 | int start_x = (max_x / 2) - (width / 2); |
| 528 | |
| 529 | Input input_bar(height, width, start_y, start_x, content, title, focused); |
| 530 | input_bar.show(true); |
| 531 | string input = input_bar.get_value(); |
| 532 | |
| 533 | this->columns_window.draw(); |
| 534 | |
| 535 | return input; |
| 536 | } |
| 537 | |
| 538 | bool BoardScreen::create_card_info_window(Card *card) { |
| 539 | int max_y, max_x; |
no test coverage detected