egui/widgets/selected_label.rs
1#![expect(deprecated, clippy::new_ret_no_self)]
2
3use crate::WidgetText;
4
5#[deprecated = "Use `Button::selectable()` instead"]
6pub struct SelectableLabel {}
7
8impl SelectableLabel {
9 #[deprecated = "Use `Button::selectable()` instead"]
10 pub fn new(selected: bool, text: impl Into<WidgetText>) -> super::Button<'static> {
11 crate::Button::selectable(selected, text)
12 }
13}