WIP input events

Compile and passes tests. But the mouse event are currently not working
This commit is contained in:
Olivier Goffart 2020-08-06 12:33:07 +02:00
parent 829990f9b1
commit 55ec533c40
11 changed files with 96 additions and 53 deletions

View file

@ -142,12 +142,16 @@ struct Repeater
}
}
void visit(ItemVisitorRefMut visitor) const
intptr_t visit(ItemVisitorRefMut visitor) const
{
for (const auto &x : data) {
for (auto i = 0; i < data.size(); ++i) {
const auto &x = data.at(i);
VRef<ComponentVTable> ref { &C::component_type, x.get() };
ref.vtable->visit_children_item(ref, -1, visitor);
if (ref.vtable->visit_children_item(ref, -1, visitor) == -1) {
return i;
}
}
return -1;
}
};