From c29b80d41ec2a73f312e07aba723e92d2ce005eb Mon Sep 17 00:00:00 2001 From: charburgx Date: Mon, 19 Dec 2022 04:46:44 -0600 Subject: [PATCH] docs --- crates/egui/src/ui.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 7a4b1b21..a73e4e91 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -1748,6 +1748,7 @@ impl Ui { }) } + /// Set z-index and layer id at the same time pub fn with_layer( &mut self, layer: ZLayer, @@ -1759,6 +1760,10 @@ impl Ui { }) } + /// Set z-index for all shapes drawn on the current layer + /// + /// Note that this z-index is for this layer only. The draw order of area + /// layers takes precedence over this z-index. pub fn with_z( &mut self, z: layers::ZOrder,