mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 13:35:00 +00:00
Rename the free_graphics_resources to component_destroyed
And do not iterate over the items anymore
This commit is contained in:
parent
6cbf2c0609
commit
ad2d19165a
10 changed files with 17 additions and 60 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, typename ItemArray>
|
||||
void free_graphics_resources(Component *c, ItemArray items) const
|
||||
template<typename Component>
|
||||
void component_destroyed(Component *c) const
|
||||
{
|
||||
cbindgen_private::slint_component_free_item_array_graphics_resources(
|
||||
vtable::VRef<ComponentVTable> { &Component::static_vtable, c }, items, &inner);
|
||||
cbindgen_private::slint_component_destroyed(
|
||||
vtable::VRef<ComponentVTable> { &Component::static_vtable, c }, &inner);
|
||||
}
|
||||
|
||||
void set_focus_item(const ComponentRc &component_rc, uintptr_t item_index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue