This commit is contained in:
vrd
2023-03-06 10:24:32 +02:00
parent cc7a689dc1
commit 9ef74b8283
5 changed files with 70 additions and 28 deletions
+4 -2
View File
@@ -55,12 +55,14 @@ public:
void displayInfo() const;
const EventTime& birth() const { return birth_; };
U16 boxWidth() const;
/* U16 boxWidth(bool wholeName) const; */
/* Draw a Person's box on the terminal
drawY,drawX - top left coordinates where to draw (negative if outside the screen)
hasSpouse, hasSpouse, hasChildren - wheather the person has them on display
returns the width of the box*/
void draw(I16 drawY, I16 drawX, bool selected, bool hasSpouse, bool isSpouse, bool hasChildren=false) const;
U16 draw(I16 drawY, I16 drawX, bool selected, bool hasSpouse,
bool hasParents, bool hasChildren=false, bool wholeName=true) const;
std::string name;
EventTime birth_;