mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -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(),
|
text: text.into(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn without_text(checked: &'a mut bool) -> Self {
|
||||||
|
Self::new(checked, WidgetText::default())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Widget for Checkbox<'a> {
|
impl<'a> Widget for Checkbox<'a> {
|
||||||
|
|||||||
Reference in New Issue
Block a user