Remove the solve_layout from the component vtable

no longer required
This commit is contained in:
Olivier Goffart 2021-05-05 11:18:15 +02:00 committed by Olivier Goffart
parent f6b71b36a7
commit 720001a223
27 changed files with 5 additions and 103 deletions

View file

@ -587,15 +587,6 @@ public:
return { &C::static_vtable, const_cast<C *>(&(**x.ptr)) };
}
void compute_layout(cbindgen_private::Rect parent_rect) const
{
if (!inner)
return;
for (auto &x : inner->data) {
(*x.ptr)->apply_layout({ &C::static_vtable, const_cast<C *>(&(**x.ptr)) }, parent_rect);
}
}
float compute_layout_listview(const Property<float> *viewport_width, float listview_width) const
{
float offset = 0;