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

Method Help

src/ui/components/Help/Help.cpp:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "../ScrollableWindow/ScrollableWindow.h"
4
5Help::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
18void Help::show() {
19 wattron(this->window, COLOR_PAIR(COLOR_PAIR_BORDER));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected