mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00
WIP input events
Compile and passes tests. But the mouse event are currently not working
This commit is contained in:
parent
829990f9b1
commit
55ec533c40
11 changed files with 96 additions and 53 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue