diff --git a/crates/egui/src/widgets/button.rs b/crates/egui/src/widgets/button.rs index 8f4ad6bb..a7fa6781 100644 --- a/crates/egui/src/widgets/button.rs +++ b/crates/egui/src/widgets/button.rs @@ -269,6 +269,10 @@ impl<'a> Checkbox<'a> { text: text.into(), } } + + pub fn without_text(checked: &'a mut bool) -> Self { + Self::new(checked, WidgetText::default()) + } } impl<'a> Widget for Checkbox<'a> {