4
4
use crate :: widget:: TextFlags ;
5
5
use crate :: {
6
6
widget:: { Button , UiImageSize } ,
7
- BackgroundColor , BorderColor , ContentSize , FocusPolicy , Interaction , Node , Style , UiImage ,
8
- UiMaterial , ZIndex ,
7
+ BackgroundColor , Border , BorderColor , BorderRadius , ContentSize , FocusPolicy , Interaction ,
8
+ Node , Style , UiImage , UiMaterial , ZIndex ,
9
9
} ;
10
10
use bevy_asset:: Handle ;
11
11
use bevy_ecs:: bundle:: Bundle ;
@@ -50,6 +50,10 @@ pub struct NodeBundle {
50
50
pub visibility : Visibility ,
51
51
/// Inherited visibility of an entity.
52
52
pub inherited_visibility : InheritedVisibility ,
53
+ /// Describes the border radius of the node
54
+ pub border_radius : BorderRadius ,
55
+ /// Describes the visual properties of the node's border
56
+ pub border : Border ,
53
57
/// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering
54
58
pub view_visibility : ViewVisibility ,
55
59
/// Indicates the depth at which the node should appear in the UI
@@ -70,6 +74,8 @@ impl Default for NodeBundle {
70
74
visibility : Default :: default ( ) ,
71
75
inherited_visibility : Default :: default ( ) ,
72
76
view_visibility : Default :: default ( ) ,
77
+ border_radius : Default :: default ( ) ,
78
+ border : Default :: default ( ) ,
73
79
z_index : Default :: default ( ) ,
74
80
}
75
81
}
@@ -115,6 +121,10 @@ pub struct ImageBundle {
115
121
pub visibility : Visibility ,
116
122
/// Inherited visibility of an entity.
117
123
pub inherited_visibility : InheritedVisibility ,
124
+ /// Describes the border radius of the node
125
+ pub border_radius : BorderRadius ,
126
+ /// Describes the visual properties of the node's border
127
+ pub border : Border ,
118
128
/// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering
119
129
pub view_visibility : ViewVisibility ,
120
130
/// Indicates the depth at which the node should appear in the UI
@@ -386,6 +396,10 @@ pub struct MaterialNodeBundle<M: UiMaterial> {
386
396
pub visibility : Visibility ,
387
397
/// Inherited visibility of an entity.
388
398
pub inherited_visibility : InheritedVisibility ,
399
+ /// Describes the border radius of the node
400
+ pub border_radius : BorderRadius ,
401
+ /// Describes the visual properties of the node's border
402
+ pub border : Border ,
389
403
/// Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering
390
404
pub view_visibility : ViewVisibility ,
391
405
/// Indicates the depth at which the node should appear in the UI
@@ -402,6 +416,8 @@ impl<M: UiMaterial> Default for MaterialNodeBundle<M> {
402
416
transform : Default :: default ( ) ,
403
417
global_transform : Default :: default ( ) ,
404
418
visibility : Default :: default ( ) ,
419
+ border_radius : Default :: default ( ) ,
420
+ border : Default :: default ( ) ,
405
421
inherited_visibility : Default :: default ( ) ,
406
422
view_visibility : Default :: default ( ) ,
407
423
z_index : Default :: default ( ) ,
0 commit comments