Add `WidgetType::RadioGroup` (#5081)
Extracted out of #4805 I'm using this widget type in [`egui-theme-switch`] but since it's not built in I have to call `accesskit_node_builder` which is a bit cumbersome :) * [x] I have followed the instructions in the PR template [`egui-theme-switch`]: https://github.com/bash/egui-theme-switch/blob/main/src/lib.rs
This commit is contained in:
parent
6b7f431237
commit
c6375efa22
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -618,6 +618,9 @@ pub enum WidgetType {
|
|||
|
||||
RadioButton,
|
||||
|
||||
/// A group of radio buttons.
|
||||
RadioGroup,
|
||||
|
||||
SelectableLabel,
|
||||
|
||||
ComboBox,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue