Add Checkbox::without_text
Closes https://github.com/emilk/egui/pull/2508
This commit is contained in:
parent
8bc88c9bf4
commit
8d6c2580f4
1 changed files with 4 additions and 0 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue