Add component-factory type to Slint language

Add a type "component-factory" to the Slint language.
This commit is contained in:
Tobias Hunger 2023-06-08 17:26:52 +02:00 committed by Olivier Goffart
parent ad2c98937f
commit 2840886d28
14 changed files with 40 additions and 9 deletions

View file

@ -74,6 +74,7 @@ fn rust_primitive_type(ty: &Type) -> Option<proc_macro2::TokenStream> {
Type::Float32 => Some(quote!(f32)),
Type::String => Some(quote!(sp::SharedString)),
Type::Color => Some(quote!(sp::Color)),
Type::ComponentFactory => Some(quote!(slint::ComponentFactory)),
Type::Duration => Some(quote!(i64)),
Type::Angle => Some(quote!(f32)),
Type::PhysicalLength => Some(quote!(sp::Coord)),