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:
Olivier Goffart 2020-07-01 18:46:33 +02:00
parent facc18d0eb
commit 9d852f802e
7 changed files with 716 additions and 486 deletions

View file

@ -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<>

View file

@ -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<>