mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Add component-factory type to Slint language
Add a type "component-factory" to the Slint language.
This commit is contained in:
parent
ad2c98937f
commit
2840886d28
14 changed files with 40 additions and 9 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue