diff --git a/crates/egui/src/data/output.rs b/crates/egui/src/data/output.rs index 58df5da230a..5d50afec371 100644 --- a/crates/egui/src/data/output.rs +++ b/crates/egui/src/data/output.rs @@ -640,6 +640,7 @@ impl WidgetInfo { WidgetType::Button => "button", WidgetType::Checkbox => "checkbox", WidgetType::RadioButton => "radio", + WidgetType::RadioGroup => "radio group", WidgetType::SelectableLabel => "selectable", WidgetType::ComboBox => "combo", WidgetType::Slider => "slider", diff --git a/crates/egui/src/lib.rs b/crates/egui/src/lib.rs index 9a93a56fa90..78a526c181d 100644 --- a/crates/egui/src/lib.rs +++ b/crates/egui/src/lib.rs @@ -618,6 +618,9 @@ pub enum WidgetType { RadioButton, + /// A group of radio buttons. + RadioGroup, + SelectableLabel, ComboBox, diff --git a/crates/egui/src/response.rs b/crates/egui/src/response.rs index d6a9a8a0c7f..3a415e36961 100644 --- a/crates/egui/src/response.rs +++ b/crates/egui/src/response.rs @@ -992,6 +992,7 @@ impl Response { } WidgetType::Checkbox => Role::CheckBox, WidgetType::RadioButton => Role::RadioButton, + WidgetType::RadioGroup => Role::RadioGroup, WidgetType::SelectableLabel => Role::Button, WidgetType::ComboBox => Role::ComboBox, WidgetType::Slider => Role::Slider,