mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Better deprecation of SelectableLabel
This commit is contained in:
@@ -1,2 +1,13 @@
|
|||||||
#[deprecated = "SelectableLabel has been removed. Use Button::selectable() instead"]
|
#![expect(deprecated, clippy::new_ret_no_self)]
|
||||||
|
|
||||||
|
use crate::WidgetText;
|
||||||
|
|
||||||
|
#[deprecated = "Use `Button::selectable()` instead"]
|
||||||
pub struct SelectableLabel {}
|
pub struct SelectableLabel {}
|
||||||
|
|
||||||
|
impl SelectableLabel {
|
||||||
|
#[deprecated = "Use `Button::selectable()` instead"]
|
||||||
|
pub fn new(selected: bool, text: impl Into<WidgetText>) -> super::Button<'static> {
|
||||||
|
crate::Button::selectable(selected, text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user