initial draw

This commit is contained in:
vrd
2022-12-18 00:35:01 +02:00
parent 0da0f98dc9
commit 5e9d2d8501
4 changed files with 43 additions and 11 deletions
+11
View File
@@ -158,3 +158,14 @@ void Person::print()const
/* cout << '\n'; */
}
WINDOW* Person::createPad()const
{
U16 width = name_.size() + 4;
WINDOW* pad = newpad(5, width);
box(pad, 5, width);
mvwaddstr(pad, 2, 2, name_.data());
return pad;
}