Fix C++ compilation

After adding an Image in a builtin struct, some code and include need to
be moved a bit around
This commit is contained in:
Olivier Goffart 2025-05-19 17:52:24 +02:00
parent c09ed19a85
commit de9eb69f60
3 changed files with 11 additions and 20 deletions

View file

@ -212,6 +212,15 @@ Property<float>::set_animated_value(const float &new_value,
&animation_data);
}
template<>
inline void
Property<Color>::set_animated_value(const Color &new_value,
const cbindgen_private::PropertyAnimation &animation_data) const
{
cbindgen_private::slint_property_set_animated_value_color(&inner, value, new_value,
&animation_data);
}
template<typename F>
void set_state_binding(const Property<StateInfo> &property, F binding)
{