mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
marked the platfrom io funcs as pub(crate)
This commit is contained in:
parent
8f636f8057
commit
2360280b64
@ -611,7 +611,7 @@ impl Context {
|
|||||||
#[cfg(feature = "docking")]
|
#[cfg(feature = "docking")]
|
||||||
impl Context {
|
impl Context {
|
||||||
/// Returns an immutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object.
|
/// Returns an immutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object.
|
||||||
pub fn platform_io(&self) -> &crate::PlatformIo {
|
pub(crate) fn platform_io(&self) -> &crate::PlatformIo {
|
||||||
unsafe {
|
unsafe {
|
||||||
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
|
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
|
||||||
// and &self ensures we have shared ownership of PlatformIo.
|
// 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.
|
/// Returns a mutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object.
|
||||||
pub fn platform_io_mut(&mut self) -> &mut crate::PlatformIo {
|
pub(crate) fn platform_io_mut(&mut self) -> &mut crate::PlatformIo {
|
||||||
unsafe {
|
unsafe {
|
||||||
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
|
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
|
||||||
// and &mut self ensures exclusive ownership of PlatformIo.
|
// and &mut self ensures exclusive ownership of PlatformIo.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user