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:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user