aboutsummaryrefslogtreecommitdiff
path: root/ViewController.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 14:05:11 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 14:05:11 +0200
commit165c1ae6e4a4eea35d7ea2f2a6518ff36cf0112f (patch)
tree78ab1efe1154551581808814ff962154b053ae23 /ViewController.h
parent1a30375e369d2d872cb3fd6ecdc6019136c7b1a4 (diff)
separate view and museum thread
Diffstat (limited to 'ViewController.h')
-rw-r--r--ViewController.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/ViewController.h b/ViewController.h
index 54fa529..8cf46d5 100644
--- a/ViewController.h
+++ b/ViewController.h
@@ -5,18 +5,22 @@ class Museum;
class ViewController {
public:
- ViewController(View & v, Museum & m);
+ ViewController(Museum & m);
public:
- void update();
+ void update(View & v);
+
+private:
+ void update_size(View & v);
+ void update_tiles(View & v);
+ void update_artists(View & v);
private:
- View & view;
Museum & museum;
private:
unsigned int scale = 16;
unsigned int line_width = 1;
- unsigned int artist_size = 4;
+ unsigned int artist_size = (scale - line_width) / 2;
};