naming
This commit is contained in:
parent
f0d5b645f2
commit
9ad5356cfa
2 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ impl Painter {
|
||||||
|
|
||||||
/// Redirect where you are painting.
|
/// Redirect where you are painting.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn with_layer(self, z_layer: ZLayer) -> Self {
|
pub fn with_z_layer(self, z_layer: ZLayer) -> Self {
|
||||||
Self {
|
Self {
|
||||||
ctx: self.ctx,
|
ctx: self.ctx,
|
||||||
z_layer,
|
z_layer,
|
||||||
|
@ -56,14 +56,14 @@ impl Painter {
|
||||||
/// Redirect where you are painting with default z-index
|
/// Redirect where you are painting with default z-index
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn with_layer_id(self, layer: AreaLayerId) -> Self {
|
pub fn with_layer_id(self, layer: AreaLayerId) -> Self {
|
||||||
self.with_layer(ZLayer::from_area_layer(layer))
|
self.with_z_layer(ZLayer::from_area_layer(layer))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Redirect z-index
|
/// Redirect z-index
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn with_z(self, z: ZOrder) -> Self {
|
pub fn with_z(self, z: ZOrder) -> Self {
|
||||||
let layer = self.z_layer.area_layer.with_z(z);
|
let layer = self.z_layer.area_layer.with_z(z);
|
||||||
self.with_layer(layer)
|
self.with_z_layer(layer)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a painter for a sub-region of this [`Painter`].
|
/// Create a painter for a sub-region of this [`Painter`].
|
||||||
|
|
|
@ -1770,7 +1770,7 @@ impl Ui {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set z-index and layer id at the same time
|
/// Set z-index and layer id at the same time
|
||||||
pub fn with_layer<R>(
|
pub fn with_z_layer<R>(
|
||||||
&mut self,
|
&mut self,
|
||||||
layer: ZLayer,
|
layer: ZLayer,
|
||||||
add_contents: impl FnOnce(&mut Self) -> R,
|
add_contents: impl FnOnce(&mut Self) -> R,
|
||||||
|
|
Loading…
Reference in a new issue