Grid layout and widget gallery (#106)

* Wrap Layout and Region into a new struct Placer

* [egui] Add a simple grid layout

* Refactor CollapsingHeader code (simplify header painting)

* Fix: allow putting a CollapsingHeader inside of a grid layout

* [demo] Add a widget gallery

Closes https://github.com/emilk/egui/issues/88

* Add optional striped grid background
This commit is contained in:
Emil Ernerfeldt
2021-01-11 20:58:36 +01:00
committed by GitHub
parent d344c9d9a3
commit 0b10fa5c29
12 changed files with 663 additions and 174 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ impl super::Demo for Painting {
impl super::View for Painting {
fn ui(&mut self, ui: &mut Ui) {
ui.add(crate::__egui_github_link_file!("(source code)"));
ui.add(crate::__egui_github_link_file!());
self.ui_control(ui);
ui.label("Paint with your mouse/touch!");
Frame::dark_canvas(ui.style()).show(ui, |ui| {