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

Handle window paint order (click to bring to front etc)

This commit is contained in:
Emil Ernerfeldt
2020-04-17 23:22:28 +02:00
parent f709423809
commit 481af55ce5
6 changed files with 31 additions and 10 deletions

View File

@@ -91,10 +91,14 @@ fn main() {
example_app.ui(&mut region);
emigui.ui(&mut region);
// TODO: Make it simpler to show a window
// TODO: Make it even simpler to show a window
Window::new("Test window").show(region.ctx(), |region| {
region.add(label!("Grab the window and move it around!"));
});
Window::new("Another test window").show(region.ctx(), |region| {
region.add(label!("This might be on top of the other window?"));
region.add(label!("Second line of text"));
});
let mesh = emigui.paint();
painter.paint(&display, mesh, emigui.texture());