From a42ecbae54f0bb5cf4215a8b6a17fad8274ead49 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Mon, 2 Sep 2024 13:02:25 +0200 Subject: [PATCH] Rename to with_visual_transform --- crates/egui/src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 064a937ab0f..31a3f404803 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -2686,13 +2686,13 @@ impl Ui { (InnerResponse { inner, response }, payload) } - /// Create a new Scope and transform its contents via a [`TSTransform`]. + /// Create a new Scope and transform its contents via a [`emath::TSTransform`]. /// This only affects visuals, inputs will not be transformed. So this is mostly useful /// to create visual effects on interactions, e.g. scaling a button on hover / click. /// /// Check out [`Context::set_transform_layer`] for a persistent transform that also affects /// inputs. - pub fn with_transform( + pub fn with_visual_transform( &mut self, transform: emath::TSTransform, add_contents: impl FnOnce(&mut Self) -> R,