mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
Add some missing pub in ui_node (#9529)
# Objective - A few of the `const DEFAULT` properties of the grid feature are not marked as pub. This is an issue because it means you can't have a `const` `Style` declaration anymore. Most of the existing properties are already pub. ## Solution - add the missing pub
This commit is contained in:
parent
af0323a55e
commit
546f7fc194
1 changed files with 6 additions and 6 deletions
|
@ -991,7 +991,7 @@ pub enum PositionType {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PositionType {
|
impl PositionType {
|
||||||
const DEFAULT: Self = Self::Relative;
|
pub const DEFAULT: Self = Self::Relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for PositionType {
|
impl Default for PositionType {
|
||||||
|
@ -1013,7 +1013,7 @@ pub enum FlexWrap {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FlexWrap {
|
impl FlexWrap {
|
||||||
const DEFAULT: Self = Self::NoWrap;
|
pub const DEFAULT: Self = Self::NoWrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for FlexWrap {
|
impl Default for FlexWrap {
|
||||||
|
@ -1043,7 +1043,7 @@ pub enum GridAutoFlow {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl GridAutoFlow {
|
impl GridAutoFlow {
|
||||||
const DEFAULT: Self = Self::Row;
|
pub const DEFAULT: Self = Self::Row;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for GridAutoFlow {
|
impl Default for GridAutoFlow {
|
||||||
|
@ -1100,7 +1100,7 @@ pub struct GridTrack {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl GridTrack {
|
impl GridTrack {
|
||||||
const DEFAULT: Self = Self {
|
pub const DEFAULT: Self = Self {
|
||||||
min_sizing_function: MinTrackSizingFunction::Auto,
|
min_sizing_function: MinTrackSizingFunction::Auto,
|
||||||
max_sizing_function: MaxTrackSizingFunction::Auto,
|
max_sizing_function: MaxTrackSizingFunction::Auto,
|
||||||
};
|
};
|
||||||
|
@ -1435,7 +1435,7 @@ pub struct GridPlacement {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl GridPlacement {
|
impl GridPlacement {
|
||||||
const DEFAULT: Self = Self {
|
pub const DEFAULT: Self = Self {
|
||||||
start: None,
|
start: None,
|
||||||
span: Some(1),
|
span: Some(1),
|
||||||
end: None,
|
end: None,
|
||||||
|
|
Loading…
Reference in a new issue