@@ -19,7 +19,7 @@ use crate::namedreference::NamedReference;
19
19
use crate :: object_tree:: { Element , ElementRc , PropertyAnimation } ;
20
20
use crate :: {
21
21
expression_tree:: { BuiltinFunction , Expression as tree_Expression} ,
22
- typeregister:: BUILTIN_ENUMS ,
22
+ typeregister:: BUILTIN ,
23
23
} ;
24
24
25
25
pub struct ExpressionContext < ' a > {
@@ -415,7 +415,7 @@ pub fn lower_animation(a: &PropertyAnimation, ctx: &ExpressionContext<'_>) -> An
415
415
( SmolStr :: new_static ( "iteration-count" ) , Type :: Float32 ) ,
416
416
(
417
417
SmolStr :: new_static ( "direction" ) ,
418
- Type :: Enumeration ( BUILTIN_ENUMS . with ( |e| e. AnimationDirection . clone ( ) ) ) ,
418
+ Type :: Enumeration ( BUILTIN . with ( |e| e. enums . AnimationDirection . clone ( ) ) ) ,
419
419
) ,
420
420
( SmolStr :: new_static ( "easing" ) , Type :: Easing ) ,
421
421
( SmolStr :: new_static ( "delay" ) , Type :: Int32 ) ,
@@ -546,7 +546,7 @@ fn solve_layout(
546
546
if let ( Some ( button_roles) , Orientation :: Horizontal ) = ( & layout. dialog_button_roles , o)
547
547
{
548
548
let cells_ty = cells. ty ( ctx) ;
549
- let e = crate :: typeregister:: BUILTIN_ENUMS . with ( |e| e. DialogButtonRole . clone ( ) ) ;
549
+ let e = crate :: typeregister:: BUILTIN . with ( |e| e. enums . DialogButtonRole . clone ( ) ) ;
550
550
let roles = button_roles
551
551
. iter ( )
552
552
. map ( |r| {
@@ -616,8 +616,8 @@ fn solve_layout(
616
616
( "padding" , padding. ty ( ctx) , padding) ,
617
617
(
618
618
"alignment" ,
619
- crate :: typeregister:: BUILTIN_ENUMS
620
- . with ( |e| Type :: Enumeration ( e. LayoutAlignment . clone ( ) ) ) ,
619
+ crate :: typeregister:: BUILTIN
620
+ . with ( |e| Type :: Enumeration ( e. enums . LayoutAlignment . clone ( ) ) ) ,
621
621
bld. alignment ,
622
622
) ,
623
623
( "cells" , bld. cells . ty ( ctx) , bld. cells ) ,
@@ -674,7 +674,7 @@ fn box_layout_data(
674
674
let alignment = if let Some ( expr) = & layout. geometry . alignment {
675
675
llr_Expression:: PropertyReference ( ctx. map_property_reference ( expr) )
676
676
} else {
677
- let e = crate :: typeregister:: BUILTIN_ENUMS . with ( |e| e. LayoutAlignment . clone ( ) ) ;
677
+ let e = crate :: typeregister:: BUILTIN . with ( |e| e. enums . LayoutAlignment . clone ( ) ) ;
678
678
llr_Expression:: EnumerationValue ( EnumerationValue {
679
679
value : e. default_value ,
680
680
enumeration : e,
0 commit comments