@@ -19,11 +19,11 @@ use std::rc::Rc;
1919#[ doc( inline) ]
2020pub use i_slint_compiler:: diagnostics:: { Diagnostic , DiagnosticLevel } ;
2121pub use i_slint_core:: api:: {
22- self , ComponentHandle , EventLoopError , Global , JoinHandle , PlatformError , SharedString , Weak ,
23- Window ,
22+ ComponentHandle , EventLoopError , Global , JoinHandle , PlatformError , SharedString , Weak , Window ,
2423} ;
2524// keep in sync with api/rs/slint/lib.rs
2625pub use i_slint_backend_selector:: api:: * ;
26+ use i_slint_core:: api;
2727pub use i_slint_core:: graphics:: {
2828 Brush , Color , Image , LoadImageError , Rgb8Pixel , Rgba8Pixel , RgbaColor , SharedPixelBuffer ,
2929} ;
@@ -53,6 +53,7 @@ pub enum ValueType {
5353 Brush ,
5454 /// Correspond to `image` type in .slint.
5555 Image ,
56+ /// Correspond to `styled-text` type in .slint.
5657 StyledText ,
5758 /// The type is not a public type but something internal.
5859 #[ doc( hidden) ]
@@ -78,6 +79,7 @@ impl From<LangType> for ValueType {
7879 LangType :: Struct { .. } => Self :: Struct ,
7980 LangType :: Void => Self :: Void ,
8081 LangType :: Image => Self :: Image ,
82+ LangType :: StyledText => Self :: StyledText ,
8183 _ => Self :: Other ,
8284 }
8385 }
@@ -131,6 +133,7 @@ pub enum Value {
131133 #[ doc( hidden) ]
132134 /// Correspond to the `component-factory` type in .slint
133135 ComponentFactory ( ComponentFactory ) = 12 ,
136+ /// Correspond to the `styled-text` type in .slint
134137 StyledText ( api:: StyledText ) = 13 ,
135138}
136139
0 commit comments