This commit is contained in:
charburgx 2022-12-19 04:46:44 -06:00
parent 57f65b7be6
commit c29b80d41e

View file

@ -1748,6 +1748,7 @@ impl Ui {
}) })
} }
/// Set z-index and layer id at the same time
pub fn with_layer<R>( pub fn with_layer<R>(
&mut self, &mut self,
layer: ZLayer, 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<R>( pub fn with_z<R>(
&mut self, &mut self,
z: layers::ZOrder, z: layers::ZOrder,