From 5b02f1a607414a7e49296b0948f517a311f8a081 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 12 Dec 2024 17:50:18 +0100 Subject: [PATCH] Add helpful docstring --- crates/egui/src/memory/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/memory/mod.rs b/crates/egui/src/memory/mod.rs index dcb5faedf13..06c77685e2f 100644 --- a/crates/egui/src/memory/mod.rs +++ b/crates/egui/src/memory/mod.rs @@ -95,7 +95,12 @@ pub struct Memory { #[cfg_attr(feature = "persistence", serde(skip))] everything_is_visible: bool, - /// Transforms per layer + /// Transforms per layer. + /// + /// Instead of using this directly, use: + /// * [`Context::set_transform_layer`] + /// * [`Context::layer_transform_to_global`] + /// * [`Context::layer_transform_from_global`] pub to_global: HashMap, // -------------------------------------------------