1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Add Frame::group for putting a frame around some widgets

Closes https://github.com/emilk/egui/issues/125
This commit is contained in:
Emil Ernerfeldt
2021-01-20 23:26:46 +01:00
parent 3bec7c4f68
commit 9f4c31c0e0
3 changed files with 16 additions and 7 deletions

View File

@@ -104,8 +104,7 @@ impl Widgets {
ui.label(format!("The button has been clicked {} times.", self.count));
});
ui.separator();
{
egui::Frame::group(ui.style()).show(ui, |ui| {
ui.horizontal(|ui| {
ui.label("Drag this value to change it:");
ui.add(DragValue::f64(&mut self.sliders.value).speed(0.01));
@@ -122,7 +121,7 @@ impl Widgets {
.show(ui, |ui| {
self.sliders.ui(ui);
});
}
});
ui.separator();