From 5a9827094492a80202650cf4b1f5f02b5cf10cf5 Mon Sep 17 00:00:00 2001 From: Jack Mac Date: Fri, 1 Oct 2021 12:35:22 -0400 Subject: [PATCH] added clone so i guess you can interact with it here... --- imgui/src/context.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imgui/src/context.rs b/imgui/src/context.rs index 95c971e..19afb28 100644 --- a/imgui/src/context.rs +++ b/imgui/src/context.rs @@ -503,6 +503,11 @@ impl Context { unsafe { &mut *(self.io_mut().fonts as *mut FontAtlas) } } + /// Attempts to clone the interior shared font atlas **if it exists**. + pub fn clone_shared_font_atlas(&mut self) -> Option { + self.shared_font_atlas.clone() + } + /// Starts a new frame. Use [`new_frame`] instead. /// /// [`new_frame`]: Self::new_frame