minus zoom
This commit is contained in:
+4
-2
@@ -4,6 +4,8 @@
|
||||
#include <vector>
|
||||
#include "person.hpp"
|
||||
|
||||
enum ZoomLevel: U8;
|
||||
|
||||
using person_id = U32;
|
||||
enum: person_id {
|
||||
Nobody = UINT32_MAX
|
||||
@@ -75,7 +77,7 @@ public:
|
||||
|
||||
/* void printRel(person_id id)const; //Prints out close relatives */
|
||||
void printMember(person_id)const;
|
||||
void draw(person_id selected, U8 zoom, I16 offsetY, I16 offsetX);
|
||||
void draw(person_id selected, ZoomLevel, I16 offsetY, I16 offsetX);
|
||||
|
||||
private:
|
||||
// recursion to find common ancestor
|
||||
@@ -97,7 +99,7 @@ private:
|
||||
// 0 is the first person in the tree
|
||||
person_id focused_ = 0; /* the tree was draw based on this person */
|
||||
person_id selected_;
|
||||
U8 zoom_ = 0;
|
||||
ZoomLevel zoom_;
|
||||
|
||||
// todo: figure out what to do with these constants
|
||||
const U8 dist_between_ = 1; /* distance between people */
|
||||
|
||||
Reference in New Issue
Block a user