Rename free_*_graphics_resources to unregister_component

I want a more generic name as I want to do to track component structure
changes in addition to resource freeing and I do not want to add another
call into the generated code.
This commit is contained in:
Tobias Hunger 2022-06-29 14:38:04 +02:00 committed by Tobias Hunger
parent 539dec2962
commit 581533f302
13 changed files with 25 additions and 24 deletions

View file

@ -113,9 +113,9 @@ public:
void set_scale_factor(float value) const { slint_windowrc_set_scale_factor(&inner, value); }
template<typename Component, typename ItemArray>
void free_graphics_resources(Component *c, ItemArray items) const
void unregister_component(Component *c, ItemArray items) const
{
cbindgen_private::slint_component_free_item_array_graphics_resources(
cbindgen_private::slint_unregister_component(
vtable::VRef<ComponentVTable> { &Component::static_vtable, c }, items, &inner);
}