Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some missing pub in ui_node #9529

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ impl Default for FlexDirection {
#[derive(Copy, Clone, PartialEq, Eq, Debug, Reflect, Serialize, Deserialize)]
#[reflect(PartialEq, Serialize, Deserialize)]
pub struct Overflow {
/// Whether to show or clip overflowing items on the x axis
/// Whether to show or clip overflowing items on the x axis
pub x: OverflowAxis,
/// Whether to show or clip overflowing items on the y axis
pub y: OverflowAxis,
Expand Down Expand Up @@ -991,7 +991,7 @@ pub enum PositionType {
}

impl PositionType {
const DEFAULT: Self = Self::Relative;
pub const DEFAULT: Self = Self::Relative;
}

impl Default for PositionType {
Expand All @@ -1013,7 +1013,7 @@ pub enum FlexWrap {
}

impl FlexWrap {
const DEFAULT: Self = Self::NoWrap;
pub const DEFAULT: Self = Self::NoWrap;
}

impl Default for FlexWrap {
Expand Down Expand Up @@ -1043,7 +1043,7 @@ pub enum GridAutoFlow {
}

impl GridAutoFlow {
const DEFAULT: Self = Self::Row;
pub const DEFAULT: Self = Self::Row;
}

impl Default for GridAutoFlow {
Expand Down Expand Up @@ -1100,7 +1100,7 @@ pub struct GridTrack {
}

impl GridTrack {
const DEFAULT: Self = Self {
pub const DEFAULT: Self = Self {
min_sizing_function: MinTrackSizingFunction::Auto,
max_sizing_function: MaxTrackSizingFunction::Auto,
};
Expand Down Expand Up @@ -1435,7 +1435,7 @@ pub struct GridPlacement {
}

impl GridPlacement {
const DEFAULT: Self = Self {
pub const DEFAULT: Self = Self {
start: None,
span: Some(1),
end: None,
Expand Down