mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Remove deprecated functions
This commit is contained in:
@@ -114,18 +114,6 @@ impl ScrollArea {
|
||||
}
|
||||
}
|
||||
|
||||
/// Will make the area be as high as it is allowed to be (i.e. fill the [`Ui`] it is in)
|
||||
#[deprecated = "Use pub ScrollArea::vertical() instead"]
|
||||
pub fn auto_sized() -> Self {
|
||||
Self::vertical()
|
||||
}
|
||||
|
||||
/// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding Ui
|
||||
#[deprecated = "Use pub ScrollArea::vertical().max_height(…) instead"]
|
||||
pub fn from_max_height(max_height: f32) -> Self {
|
||||
Self::vertical().max_height(max_height)
|
||||
}
|
||||
|
||||
/// The maximum width of the outer frame of the scroll area.
|
||||
///
|
||||
/// Use `f32::INFINITY` if you want the scroll area to expand to fit the surrounding `Ui` (default).
|
||||
|
||||
@@ -225,11 +225,6 @@ impl<'open> Window<'open> {
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use .vscroll(…) instead"]
|
||||
pub fn scroll(self, scroll: bool) -> Self {
|
||||
self.vscroll(scroll)
|
||||
}
|
||||
|
||||
/// Constrain the area up to which the window can be dragged.
|
||||
pub fn drag_bounds(mut self, bounds: Rect) -> Self {
|
||||
self.area = self.area.drag_bounds(bounds);
|
||||
|
||||
@@ -218,11 +218,6 @@ impl Ui {
|
||||
self.enabled
|
||||
}
|
||||
|
||||
#[deprecated = "Renamed to is_enabled"]
|
||||
pub fn enabled(&self) -> bool {
|
||||
self.enabled
|
||||
}
|
||||
|
||||
/// Calling `set_enabled(false)` will cause the `Ui` to deny all future interaction
|
||||
/// and all the widgets will draw with a gray look.
|
||||
///
|
||||
@@ -381,11 +376,6 @@ impl Ui {
|
||||
self.placer.max_rect()
|
||||
}
|
||||
|
||||
#[deprecated = "Use .max_rect() instead"]
|
||||
pub fn max_rect_finite(&self) -> Rect {
|
||||
self.max_rect()
|
||||
}
|
||||
|
||||
/// Used for animation, kind of hacky
|
||||
pub(crate) fn force_set_min_rect(&mut self, min_rect: Rect) {
|
||||
self.placer.force_set_min_rect(min_rect);
|
||||
@@ -514,19 +504,9 @@ impl Ui {
|
||||
self.placer.available_rect_before_wrap().size()
|
||||
}
|
||||
|
||||
#[deprecated = "Use .available_size_before_wrap() instead"]
|
||||
pub fn available_size_before_wrap_finite(&self) -> Vec2 {
|
||||
self.available_size_before_wrap()
|
||||
}
|
||||
|
||||
pub fn available_rect_before_wrap(&self) -> Rect {
|
||||
self.placer.available_rect_before_wrap()
|
||||
}
|
||||
|
||||
#[deprecated = "Use .available_rect_before_wrap() instead"]
|
||||
pub fn available_rect_before_wrap_finite(&self) -> Rect {
|
||||
self.available_rect_before_wrap()
|
||||
}
|
||||
}
|
||||
|
||||
/// # `Id` creation
|
||||
|
||||
@@ -190,11 +190,6 @@ impl<'t> TextEdit<'t> {
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use TextEdit::interactive or ui.add_enabled instead"]
|
||||
pub fn enabled(self, enabled: bool) -> Self {
|
||||
self.interactive(enabled)
|
||||
}
|
||||
|
||||
/// Default is `true`. If set to `false` there will be no frame showing that this is editable text!
|
||||
pub fn frame(mut self, frame: bool) -> Self {
|
||||
self.frame = frame;
|
||||
|
||||
Reference in New Issue
Block a user