From 4d419d64f850f80933b38eee732fc019484c2a77 Mon Sep 17 00:00:00 2001 From: acailly Date: Tue, 10 Dec 2024 12:22:19 +0100 Subject: [PATCH] Rename function ChangeWindowFullMonitorWorkArea to UseWindowFullMonitorWorkArea --- src/hello_imgui/hello_imgui.h | 4 ++-- src/hello_imgui/impl/hello_imgui.cpp | 4 ++-- src/hello_imgui/internal/backend_impls/abstract_runner.cpp | 2 +- src/hello_imgui/internal/backend_impls/abstract_runner.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hello_imgui/hello_imgui.h b/src/hello_imgui/hello_imgui.h index 8a920a1c..44f87e53 100644 --- a/src/hello_imgui/hello_imgui.h +++ b/src/hello_imgui/hello_imgui.h @@ -194,9 +194,9 @@ std::string GetBackendDescription(); void ChangeWindowSize(const ScreenSize &windowSize); -// `ChangeWindowFullMonitorWorkArea()`: sets the window size to the monitor work area +// `UseWindowFullMonitorWorkArea()`: sets the window size to the monitor work area // (useful if you want to change the window size during execution) -void ChangeWindowFullMonitorWorkArea(); +void UseWindowFullMonitorWorkArea(); // @@md diff --git a/src/hello_imgui/impl/hello_imgui.cpp b/src/hello_imgui/impl/hello_imgui.cpp index 86971d75..f2e50638 100644 --- a/src/hello_imgui/impl/hello_imgui.cpp +++ b/src/hello_imgui/impl/hello_imgui.cpp @@ -409,10 +409,10 @@ void ChangeWindowSize(const ScreenSize &windowSize) } -void ChangeWindowFullMonitorWorkArea() +void UseWindowFullMonitorWorkArea() { - gLastRunner->ChangeWindowFullMonitorWorkArea(); + gLastRunner->UseWindowFullMonitorWorkArea(); } diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp index 0caf19c1..4ba1a868 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp @@ -220,7 +220,7 @@ void AbstractRunner::ChangeWindowSize(HelloImGui::ScreenSize windowSize) mBackendWindowHelper->SetWindowBounds(mWindow, bounds); } -void AbstractRunner::ChangeWindowFullMonitorWorkArea() +void AbstractRunner::UseWindowFullMonitorWorkArea() { auto screenBounds = mGeometryHelper->GetCurrentMonitorWorkArea(mBackendWindowHelper.get(),mWindow); this->setWasWindowResizedByCodeDuringThisFrame(); diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.h b/src/hello_imgui/internal/backend_impls/abstract_runner.h index 58fc33a1..2ff4d3e0 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.h +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.h @@ -40,7 +40,7 @@ class AbstractRunner ImageBuffer ScreenshotRgb() { return mRenderingBackendCallbacks->Impl_ScreenshotRgb_3D(); } void ChangeWindowSize(ScreenSize windowSize); - void ChangeWindowFullMonitorWorkArea(); + void UseWindowFullMonitorWorkArea(); void LayoutSettings_SwitchLayout(const std::string& layoutName); bool ShouldRemoteDisplay();