mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Revert "Rename the free_graphics_resources to component_destroyed"
This reverts commit 1b9fee96c16f7a660ed2c14bb3287fceedc72ba7. The MCU backend still need the array of item, so it's too realy for this change
This commit is contained in:
parent
ad2d19165a
commit
fa6be65a04
10 changed files with 60 additions and 17 deletions
|
@ -112,11 +112,11 @@ public:
|
|||
float scale_factor() const { return slint_windowrc_get_scale_factor(&inner); }
|
||||
void set_scale_factor(float value) const { slint_windowrc_set_scale_factor(&inner, value); }
|
||||
|
||||
template<typename Component>
|
||||
void component_destroyed(Component *c) const
|
||||
template<typename Component, typename ItemArray>
|
||||
void free_graphics_resources(Component *c, ItemArray items) const
|
||||
{
|
||||
cbindgen_private::slint_component_destroyed(
|
||||
vtable::VRef<ComponentVTable> { &Component::static_vtable, c }, &inner);
|
||||
cbindgen_private::slint_component_free_item_array_graphics_resources(
|
||||
vtable::VRef<ComponentVTable> { &Component::static_vtable, c }, items, &inner);
|
||||
}
|
||||
|
||||
void set_focus_item(const ComponentRc &component_rc, uintptr_t item_index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue