Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2360280

Browse files
committed
marked the platfrom io funcs as pub(crate)
1 parent8f636f8 commit2360280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎imgui/src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,15 @@ impl Context {
611611
#[cfg(feature ="docking")]
612612
implContext{
613613
/// Returns an immutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object.
614-
pubfnplatform_io(&self) ->&crate::PlatformIo{
614+
pub(crate)fnplatform_io(&self) ->&crate::PlatformIo{
615615
unsafe{
616616
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
617617
// and &self ensures we have shared ownership of PlatformIo.
618618
&*(sys::igGetPlatformIO()as*constcrate::PlatformIo)
619619
}
620620
}
621621
/// Returns a mutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object.
622-
pubfnplatform_io_mut(&mutself) ->&mutcrate::PlatformIo{
622+
pub(crate)fnplatform_io_mut(&mutself) ->&mutcrate::PlatformIo{
623623
unsafe{
624624
// safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO
625625
// and &mut self ensures exclusive ownership of PlatformIo.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp