@@ -228,7 +228,7 @@ impl ComplexText {
228228#[ repr( C ) ]
229229#[ derive( FieldOffsets , Default , SlintElement ) ]
230230#[ pin]
231- pub struct StyledText {
231+ pub struct StyledTextItem {
232232 pub width : Property < LogicalLength > ,
233233 pub height : Property < LogicalLength > ,
234234 pub text : Property < api:: StyledText > ,
@@ -251,7 +251,7 @@ pub struct StyledText {
251251 pub cached_rendering_data : CachedRenderingData ,
252252}
253253
254- impl Item for StyledText {
254+ impl Item for StyledTextItem {
255255 fn init ( self : Pin < & Self > , _self_rc : & ItemRc ) { }
256256
257257 fn layout_info (
@@ -371,14 +371,14 @@ impl Item for StyledText {
371371 }
372372}
373373
374- impl ItemConsts for StyledText {
374+ impl ItemConsts for StyledTextItem {
375375 const cached_rendering_data_offset: const_field_offset:: FieldOffset <
376- StyledText ,
376+ StyledTextItem ,
377377 CachedRenderingData ,
378- > = StyledText :: FIELD_OFFSETS . cached_rendering_data . as_unpinned_projection ( ) ;
378+ > = StyledTextItem :: FIELD_OFFSETS . cached_rendering_data . as_unpinned_projection ( ) ;
379379}
380380
381- impl HasFont for StyledText {
381+ impl HasFont for StyledTextItem {
382382 fn font_request ( self : Pin < & Self > , self_rc : & crate :: items:: ItemRc ) -> FontRequest {
383383 crate :: items:: WindowItem :: resolved_font_request (
384384 self_rc,
@@ -391,13 +391,13 @@ impl HasFont for StyledText {
391391 }
392392}
393393
394- impl RenderString for StyledText {
394+ impl RenderString for StyledTextItem {
395395 fn text ( self : Pin < & Self > ) -> PlainOrStyledText {
396396 PlainOrStyledText :: Styled ( self . text ( ) )
397397 }
398398}
399399
400- impl RenderText for StyledText {
400+ impl RenderText for StyledTextItem {
401401 fn target_size ( self : Pin < & Self > ) -> LogicalSize {
402402 LogicalSize :: from_lengths ( self . width ( ) , self . height ( ) )
403403 }
@@ -433,7 +433,7 @@ impl RenderText for StyledText {
433433 }
434434}
435435
436- impl StyledText {
436+ impl StyledTextItem {
437437 pub fn font_metrics (
438438 self : Pin < & Self > ,
439439 window_adapter : & Rc < dyn WindowAdapter > ,
0 commit comments