mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
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:
parent
539dec2962
commit
581533f302
13 changed files with 25 additions and 24 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue