MCPcopy Create free account
hub / github.com/PlankCipher/kabmat / create_input_window

Method create_input_window

src/ui/screens/Board/Board.cpp:519–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519string 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
538bool BoardScreen::create_card_info_window(Card *card) {
539 int max_y, max_x;

Callers 1

handle_key_pressMethod · 0.95

Calls 3

get_valueMethod · 0.80
drawMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected