mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Deprecate `CollapsingHeader::selectable/selected
Better to use the more powerful CollapsingState::show_header
This commit is contained in:
@@ -358,7 +358,7 @@ impl CollapsingHeader {
|
||||
}
|
||||
|
||||
/// Can the [`CollapsingHeader`] be selected by clicking it? Default: `false`.
|
||||
///
|
||||
#[deprecated = "Use the more powerful egui::collapsing_header::CollapsingState::show_header"] // Deprecated in 2022-04-28, before egui 0.18
|
||||
pub fn selectable(mut self, selectable: bool) -> Self {
|
||||
self.selectable = selectable;
|
||||
self
|
||||
@@ -379,6 +379,7 @@ impl CollapsingHeader {
|
||||
/// }
|
||||
/// # });
|
||||
/// ```
|
||||
#[deprecated = "Use the more powerful egui::collapsing_header::CollapsingState::show_header"] // Deprecated in 2022-04-28, before egui 0.18
|
||||
pub fn selected(mut self, selected: bool) -> Self {
|
||||
self.selected = selected;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user