mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
Property refactoring
The tests are working and everything seems to be back normal. But there is still some cleanup required
This commit is contained in:
parent
facc18d0eb
commit
9d852f802e
7 changed files with 716 additions and 486 deletions
|
@ -32,10 +32,10 @@ private:
|
|||
};
|
||||
|
||||
template<>
|
||||
void Property<Color>::set_animated_value(const Color &value,
|
||||
void Property<Color>::set_animated_value(const Color &new_value,
|
||||
const internal::PropertyAnimation &animation_data)
|
||||
{
|
||||
internal::sixtyfps_property_set_animated_value_color(&inner, &value, &animation_data);
|
||||
internal::sixtyfps_property_set_animated_value_color(&inner, value, new_value, &animation_data);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
|
|
@ -59,17 +59,17 @@ private:
|
|||
};
|
||||
|
||||
template<>
|
||||
void Property<int32_t>::set_animated_value(const int32_t &value,
|
||||
void Property<int32_t>::set_animated_value(const int32_t &new_value,
|
||||
const internal::PropertyAnimation &animation_data)
|
||||
{
|
||||
internal::sixtyfps_property_set_animated_value_int(&inner, value, &animation_data);
|
||||
internal::sixtyfps_property_set_animated_value_int(&inner, value, new_value, &animation_data);
|
||||
}
|
||||
|
||||
template<>
|
||||
void Property<float>::set_animated_value(const float &value,
|
||||
void Property<float>::set_animated_value(const float &new_value,
|
||||
const internal::PropertyAnimation &animation_data)
|
||||
{
|
||||
internal::sixtyfps_property_set_animated_value_float(&inner, value, &animation_data);
|
||||
internal::sixtyfps_property_set_animated_value_float(&inner, value, new_value, &animation_data);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue