Skip to content

Commit

Permalink
Rename to with_visual_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Sep 2, 2024
1 parent 467f7ab commit a42ecba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R>(
pub fn with_visual_transform<R>(
&mut self,
transform: emath::TSTransform,
add_contents: impl FnOnce(&mut Self) -> R,
Expand Down

0 comments on commit a42ecba

Please sign in to comment.