implement input iteraction

This commit is contained in:
j3d1 2018-11-06 18:30:21 +01:00
parent c822a75df0
commit 6af3988056
12 changed files with 229 additions and 110 deletions

View file

@ -11,11 +11,11 @@
class layout {
class Slot {
private:
int pos_;
int size_;
canvas *canvas_ = 0;
int pos_ = 0;
int size_ = 0;
canvas *canvas_ = nullptr;
public:
node *content;
node *content = nullptr;
friend layout;
};
@ -35,6 +35,7 @@ private:
public:
static const int maxslots = 10;
Slot slots[maxslots];
node *cursor;
layout(screen& s) : maxwidth_(s.getWidth()), maxheight_(s.getHeight()), screen_(s) {