22
33use crate :: {
44 layout_components:: {
5- flex:: FlexboxLayout , LayoutStrategy , Offset , Overflow , PositionType , SizeConstraints ,
6- Spacing , TextDirection , Wrap ,
5+ flex:: FlexLayout , LayoutStrategy , Offset , Overflow , PositionType , SizeConstraints , Spacing ,
6+ TextDirection , Wrap ,
77 } ,
88 widget:: { Button , ImageMode } ,
99 CalculatedSize , FocusPolicy , Interaction , Node , UiColor , UiImage ,
@@ -36,7 +36,7 @@ pub struct NodeBundle {
3636 /// The margin, padding and border of the UI node
3737 pub spacing : Spacing ,
3838 /// The flexbox layout parameters
39- pub flexbox_layout : FlexboxLayout ,
39+ pub flex_layout : FlexLayout ,
4040 /// The direction of the text
4141 pub text_direction : TextDirection ,
4242 /// Controls how the content wraps
@@ -75,7 +75,7 @@ pub struct ImageBundle {
7575 /// The margin, padding and border of the UI node
7676 pub spacing : Spacing ,
7777 /// The flexbox layout parameters
78- pub flexbox_layout : FlexboxLayout ,
78+ pub flex_layout : FlexLayout ,
7979 /// The direction of the text
8080 pub text_direction : TextDirection ,
8181 /// Controls how the content wraps
@@ -118,7 +118,7 @@ pub struct TextBundle {
118118 /// The margin, padding and border of the UI node
119119 pub spacing : Spacing ,
120120 /// The flexbox layout parameters
121- pub flexbox_layout : FlexboxLayout ,
121+ pub flex_layout : FlexLayout ,
122122 /// The direction of the text
123123 pub text_direction : TextDirection ,
124124 /// Controls how the content wraps
@@ -168,9 +168,9 @@ impl TextBundle {
168168 self
169169 }
170170
171- /// Returns this [`TextBundle`] with a new [`FlexboxLayout `].
172- pub const fn with_flex_layout ( mut self , layout : FlexboxLayout ) -> Self {
173- self . flexbox_layout = layout;
171+ /// Returns this [`TextBundle`] with a new [`FlexLayout `].
172+ pub const fn with_flex_layout ( mut self , layout : FlexLayout ) -> Self {
173+ self . flex_layout = layout;
174174 self
175175 }
176176}
@@ -185,7 +185,7 @@ impl Default for TextBundle {
185185 layout_strategy : Default :: default ( ) ,
186186 position_type : Default :: default ( ) ,
187187 size_constraints : Default :: default ( ) ,
188- flexbox_layout : Default :: default ( ) ,
188+ flex_layout : Default :: default ( ) ,
189189 text_direction : Default :: default ( ) ,
190190 wrap : Default :: default ( ) ,
191191 overflow : Default :: default ( ) ,
@@ -217,7 +217,7 @@ pub struct ButtonBundle {
217217 /// The margin, padding and border of the UI node
218218 pub spacing : Spacing ,
219219 /// The flexbox layout parameters
220- pub flexbox_layout : FlexboxLayout ,
220+ pub flex_layout : FlexLayout ,
221221 /// The direction of the text
222222 pub text_direction : TextDirection ,
223223 /// Controls how the content wraps
0 commit comments