mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 21:34:50 +00:00
Add support for looping in animations
This commit is contained in:
parent
c30aa370f3
commit
f8024e6658
3 changed files with 142 additions and 52 deletions
|
@ -337,6 +337,7 @@ impl TypeRegister {
|
|||
let mut property_animation =
|
||||
BuiltinElement { class_name: "PropertyAnimation".into(), ..Default::default() };
|
||||
property_animation.properties.insert("duration".to_owned(), Type::Int32);
|
||||
property_animation.properties.insert("loop_count".to_owned(), Type::Int32);
|
||||
r.property_animation_type = Type::Builtin(Rc::new(property_animation));
|
||||
r.supported_property_animation_types.insert(Type::Float32.to_string());
|
||||
r.supported_property_animation_types.insert(Type::Int32.to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue