From 79c237cf17003dde60e2f9cc28c1a648e899c7f0 Mon Sep 17 00:00:00 2001 From: Jonathan Spira Date: Wed, 2 Oct 2024 19:27:37 -0400 Subject: [PATCH] fixed methods not made public --- imgui/src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui/src/context.rs b/imgui/src/context.rs index 4942900..22e0d63 100644 --- a/imgui/src/context.rs +++ b/imgui/src/context.rs @@ -611,7 +611,7 @@ impl Context { #[cfg(feature = "docking")] impl Context { /// Returns an immutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object. - pub(crate) fn platform_io(&self) -> &crate::PlatformIo { + pub fn platform_io(&self) -> &crate::PlatformIo { unsafe { // safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO // and &self ensures we have shared ownership of PlatformIo. @@ -619,7 +619,7 @@ impl Context { } } /// Returns a mutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object. - pub(crate) fn platform_io_mut(&mut self) -> &mut crate::PlatformIo { + pub fn platform_io_mut(&mut self) -> &mut crate::PlatformIo { unsafe { // safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO // and &mut self ensures exclusive ownership of PlatformIo.