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

Implement Window as collection of Floating + Frame + Resize

This commit is contained in:
Emil Ernerfeldt
2020-04-25 22:49:57 +02:00
parent 649dcec09c
commit 154424384f
16 changed files with 301 additions and 459 deletions

21
emigui/src/containers.rs Normal file
View File

@@ -0,0 +1,21 @@
pub mod collapsing_header;
pub mod floating;
pub mod frame;
pub mod resize;
pub mod scroll_area;
pub mod window;
pub use {
collapsing_header::CollapsingHeader, floating::Floating, frame::Frame, resize::Resize,
scroll_area::ScrollArea, window::Window,
};
// TODO
// pub trait Container {
// fn show(self, region: &mut Region, add_contents: impl FnOnce(&mut Region));
// }
// pub trait Container {
// fn begin(&mut self, parent: &mut Region) -> Region;
// fn end(self, parent: &mut Region, content: Region);
// }