mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add Checkbox::without_text
Closes https://github.com/emilk/egui/pull/2508
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user