mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Remove everything that was marked #[deprecated] (#8105)
Simplify. Streamline. Spring cleaning.
This commit is contained in:
@@ -17,9 +17,6 @@ pub struct MarginF32 {
|
||||
pub bottom: f32,
|
||||
}
|
||||
|
||||
#[deprecated = "Renamed to MarginF32"]
|
||||
pub type Marginf = MarginF32;
|
||||
|
||||
impl From<Margin> for MarginF32 {
|
||||
#[inline]
|
||||
fn from(margin: Margin) -> Self {
|
||||
@@ -97,18 +94,6 @@ impl MarginF32 {
|
||||
pub fn is_same(&self) -> bool {
|
||||
self.left == self.right && self.left == self.top && self.left == self.bottom
|
||||
}
|
||||
|
||||
#[deprecated = "Use `rect + margin` instead"]
|
||||
#[inline]
|
||||
pub fn expand_rect(&self, rect: Rect) -> Rect {
|
||||
Rect::from_min_max(rect.min - self.left_top(), rect.max + self.right_bottom())
|
||||
}
|
||||
|
||||
#[deprecated = "Use `rect - margin` instead"]
|
||||
#[inline]
|
||||
pub fn shrink_rect(&self, rect: Rect) -> Rect {
|
||||
Rect::from_min_max(rect.min + self.left_top(), rect.max - self.right_bottom())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<f32> for MarginF32 {
|
||||
|
||||
Reference in New Issue
Block a user