mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
Remove deprecated functions (#3692)
This commit is contained in:
@@ -574,20 +574,6 @@ impl Polygon {
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `fill_color`."]
|
||||
#[allow(unused, clippy::needless_pass_by_value)]
|
||||
#[inline]
|
||||
pub fn color(mut self, color: impl Into<Color32>) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
#[deprecated = "Use `fill_color`."]
|
||||
#[allow(unused, clippy::needless_pass_by_value)]
|
||||
#[inline]
|
||||
pub fn fill_alpha(mut self, _alpha: impl Into<f32>) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
/// Fill color. Defaults to the stroke color with added transparency.
|
||||
#[inline]
|
||||
pub fn fill_color(mut self, color: impl Into<Color32>) -> Self {
|
||||
|
||||
@@ -1393,24 +1393,6 @@ impl PlotUi {
|
||||
&self.response
|
||||
}
|
||||
|
||||
/// Returns `true` if the plot area is currently hovered.
|
||||
#[deprecated = "Use plot_ui.response().hovered()"]
|
||||
pub fn plot_hovered(&self) -> bool {
|
||||
self.response.hovered()
|
||||
}
|
||||
|
||||
/// Returns `true` if the plot was clicked by the primary button.
|
||||
#[deprecated = "Use plot_ui.response().clicked()"]
|
||||
pub fn plot_clicked(&self) -> bool {
|
||||
self.response.clicked()
|
||||
}
|
||||
|
||||
/// Returns `true` if the plot was clicked by the secondary button.
|
||||
#[deprecated = "Use plot_ui.response().secondary_clicked()"]
|
||||
pub fn plot_secondary_clicked(&self) -> bool {
|
||||
self.response.secondary_clicked()
|
||||
}
|
||||
|
||||
/// The pointer position in plot coordinates. Independent of whether the pointer is in the plot area.
|
||||
pub fn pointer_coordinate(&self) -> Option<PlotPoint> {
|
||||
// We need to subtract the drag delta to keep in sync with the frame-delayed screen transform:
|
||||
|
||||
Reference in New Issue
Block a user