2
2
3
3
use crate :: {
4
4
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 ,
7
7
} ,
8
8
widget:: { Button , ImageMode } ,
9
9
CalculatedSize , FocusPolicy , Interaction , Node , UiColor , UiImage ,
@@ -36,7 +36,7 @@ pub struct NodeBundle {
36
36
/// The margin, padding and border of the UI node
37
37
pub spacing : Spacing ,
38
38
/// The flexbox layout parameters
39
- pub flexbox_layout : FlexboxLayout ,
39
+ pub flex_layout : FlexLayout ,
40
40
/// The direction of the text
41
41
pub text_direction : TextDirection ,
42
42
/// Controls how the content wraps
@@ -75,7 +75,7 @@ pub struct ImageBundle {
75
75
/// The margin, padding and border of the UI node
76
76
pub spacing : Spacing ,
77
77
/// The flexbox layout parameters
78
- pub flexbox_layout : FlexboxLayout ,
78
+ pub flex_layout : FlexLayout ,
79
79
/// The direction of the text
80
80
pub text_direction : TextDirection ,
81
81
/// Controls how the content wraps
@@ -118,7 +118,7 @@ pub struct TextBundle {
118
118
/// The margin, padding and border of the UI node
119
119
pub spacing : Spacing ,
120
120
/// The flexbox layout parameters
121
- pub flexbox_layout : FlexboxLayout ,
121
+ pub flex_layout : FlexLayout ,
122
122
/// The direction of the text
123
123
pub text_direction : TextDirection ,
124
124
/// Controls how the content wraps
@@ -168,9 +168,9 @@ impl TextBundle {
168
168
self
169
169
}
170
170
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;
174
174
self
175
175
}
176
176
}
@@ -185,7 +185,7 @@ impl Default for TextBundle {
185
185
layout_strategy : Default :: default ( ) ,
186
186
position_type : Default :: default ( ) ,
187
187
size_constraints : Default :: default ( ) ,
188
- flexbox_layout : Default :: default ( ) ,
188
+ flex_layout : Default :: default ( ) ,
189
189
text_direction : Default :: default ( ) ,
190
190
wrap : Default :: default ( ) ,
191
191
overflow : Default :: default ( ) ,
@@ -217,7 +217,7 @@ pub struct ButtonBundle {
217
217
/// The margin, padding and border of the UI node
218
218
pub spacing : Spacing ,
219
219
/// The flexbox layout parameters
220
- pub flexbox_layout : FlexboxLayout ,
220
+ pub flex_layout : FlexLayout ,
221
221
/// The direction of the text
222
222
pub text_direction : TextDirection ,
223
223
/// Controls how the content wraps
0 commit comments