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