fixed methods not made public

This commit is contained in:
Jonathan Spira 2024-10-02 19:27:37 -04:00
parent cf3c01bf0f
commit 79c237cf17

View File

@ -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.