Skip to content

Commit f3a6132

Browse files
author
KDecay
committed
Remove margins.rs (#4284)
# Objective - Closes #335. - Part of the splitting process of #3503. ## Solution - Remove the `margins.rs` file containing the `Margins` type. ## Reasons - It is unused inside of `bevy`. - The `Rect`/`UiRect` is identical to the `Margins` type and is also used for margins inside of `bevy` (rename of `Rect` happens in #4276) - Discussion in #3503. ## Changelog ### Removed - The `Margins` type got removed. ## Migration Guide - The `Margins` type got removed. To migrate you just have to change every occurrence of `Margins` to `UiRect`.
1 parent f5e53ba commit f3a6132

2 files changed

Lines changed: 1 addition & 38 deletions

File tree

crates/bevy_ui/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! This UI is laid out with the Flexbox paradigm (see <https://cssreference.io/flexbox/> ) except the vertical axis is inverted
55
mod flex;
66
mod focus;
7-
mod margins;
87
mod render;
98
mod ui_node;
109

@@ -15,14 +14,13 @@ pub mod widget;
1514
use bevy_render::camera::CameraTypePlugin;
1615
pub use flex::*;
1716
pub use focus::*;
18-
pub use margins::*;
1917
pub use render::*;
2018
pub use ui_node::*;
2119

2220
#[doc(hidden)]
2321
pub mod prelude {
2422
#[doc(hidden)]
25-
pub use crate::{entity::*, ui_node::*, widget::Button, Interaction, Margins};
23+
pub use crate::{entity::*, ui_node::*, widget::Button, Interaction};
2624
}
2725

2826
use bevy_app::prelude::*;

crates/bevy_ui/src/margins.rs

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)